Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several exceptions when opening "ceylon-dddsampple" #11

Open
negora opened this issue Oct 9, 2017 · 0 comments
Open

Several exceptions when opening "ceylon-dddsampple" #11

negora opened this issue Oct 9, 2017 · 0 comments

Comments

@negora
Copy link

negora commented Oct 9, 2017

Hello:

I'm trying to open a project called ceylon-dddsample. It appears in the section Example programs and applications of the Ceylon website. Unfortunately, NetBeans throws several exceptions when opening it.

I didn't know whether to open a report for each exception or if to put all them in the same report. Finally, I've chosen the 2nd option, even though I don't like it much, because I haven't been able to find a good title for each report.

Although there are lots of exceptions, I believe that there are only 2 types or categories involved in this issue. So I'm going to publish the stack trace of one of each type. I hope it's of help to you:

SEVERE [global]
ceylon.language.AssertionError "Assertion failed
	violated is Color color = attributes.getAttribute(StyleConstants.foreground)
		expression has type ceylon.language::null which is not a subtype of java.awt::Color"
	at com.redhat.ceylon.ide.netbeans.util.color_.color(highlight.ceylon:125)
	at com.redhat.ceylon.ide.netbeans.util.highlight_.highlight(highlight.ceylon:111)
	at com.redhat.ceylon.ide.netbeans.util.highlightQuotedMessage_$1.$call$(highlight.ceylon:48)
	at com.redhat.ceylon.ide.netbeans.util.iterateTokens_.iterateTokens(highlight.ceylon:91)
	at com.redhat.ceylon.ide.netbeans.util.highlightQuotedMessage_.highlightQuotedMessage(highlight.ceylon:45)
	at com.redhat.ceylon.ide.netbeans.util.highlightQuotedMessage_.highlightQuotedMessage(highlight.ceylon:40)
	at com.redhat.ceylon.ide.netbeans.problems.ProblemsTree$1anonymous_5_.getTreeCellRendererComponent(ProblemsModel.ceylon:136)
	at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2807)
	at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1360)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getXOrigin(VariableHeightLayoutCache.java:1143)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.getNodeBounds(VariableHeightLayoutCache.java:1130)
	at javax.swing.tree.VariableHeightLayoutCache.getBounds(VariableHeightLayoutCache.java:220)
	at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:529)
	at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1192)
	at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:169)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
	at javax.swing.JComponent.paintComponent(JComponent.java:780)
	at javax.swing.JComponent.paint(JComponent.java:1056)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JViewport.paint(JViewport.java:728)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:994)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at org.netbeans.core.windows.view.ui.MainWindow$1.paint(MainWindow.java:189)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

SEVERE [nbIdeUtils]: Cannot convert type name "javax.ws.rs.Produces" to a Declaration
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$VarSymbol cannot be cast to java.lang.String
	at org.eclipse.ceylon.model.loader.model.AnnotationTarget.getAnnotationTarget(AnnotationTarget.java:97)
	at org.eclipse.ceylon.model.loader.model.AnnotationTarget.annotationTargets(AnnotationTarget.java:114)
	at org.eclipse.ceylon.model.loader.model.AnnotationTarget.outputTargets(AnnotationTarget.java:146)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.makeInteropAnnotation(AbstractModelLoader.java:915)
	at org.eclipse.ceylon.model.loader.model.LazyPackage$3.run(LazyPackage.java:242)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$2.call(AbstractModelLoader.java:430)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:415)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.embeddingSync(AbstractModelLoader.java:406)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:411)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedRun(AbstractModelLoader.java:427)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.addCompiledMember(LazyPackage.java:234)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.setContainer(AbstractModelLoader.java:830)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:797)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.access$400(AbstractModelLoader.java:103)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$7.call(AbstractModelLoader.java:2021)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$7.call(AbstractModelLoader.java:1910)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:415)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.embeddingSync(AbstractModelLoader.java:406)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:411)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:1910)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:1905)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader.access$1801(IdeModelLoader.ceylon:93)
[catch] at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader$12.$call$(IdeModelLoader.ceylon:497)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader$12.$call$(IdeModelLoader.ceylon:488)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader$2.$call$(IdeModelLoader.ceylon:121)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader$2.call(IdeModelLoader.ceylon:121)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:415)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.embeddingSync(AbstractModelLoader.java:406)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:411)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader.callWithLock(IdeModelLoader.ceylon:121)
	at org.eclipse.ceylon.ide.common.model.BaseIdeModelLoader.convertToDeclaration(IdeModelLoader.ceylon:506)
	at org.eclipse.ceylon.model.loader.model.LazyPackage$1.call(LazyPackage.java:126)
	at org.eclipse.ceylon.model.loader.model.LazyPackage$1.call(LazyPackage.java:101)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:415)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.embeddingSync(AbstractModelLoader.java:406)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:411)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getDirectMemberMemoised(LazyPackage.java:101)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getDirectMember(LazyPackage.java:86)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.access$200(LazyPackage.java:38)
	at org.eclipse.ceylon.model.loader.model.LazyPackage$1.call(LazyPackage.java:154)
	at org.eclipse.ceylon.model.loader.model.LazyPackage$1.call(LazyPackage.java:101)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:415)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.embeddingSync(AbstractModelLoader.java:406)
	at org.eclipse.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:411)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getDirectMemberMemoised(LazyPackage.java:101)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getDirectMember(LazyPackage.java:86)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getDirectMember(LazyPackage.java:70)
	at org.eclipse.ceylon.model.loader.model.LazyPackage.getMember(LazyPackage.java:64)
	at org.eclipse.ceylon.compiler.typechecker.analyzer.ImportVisitor.importMember(ImportVisitor.java:344)
	at org.eclipse.ceylon.compiler.typechecker.analyzer.ImportVisitor.visit(ImportVisitor.java:108)
	at org.eclipse.ceylon.compiler.typechecker.tree.Tree$Import.visit(Tree.java:282)
	at org.eclipse.ceylon.compiler.typechecker.tree.Walker.walkImportList(Walker.java:101)
	at org.eclipse.ceylon.compiler.typechecker.tree.Tree$ImportList.visitChildren(Tree.java:262)
	at org.eclipse.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:24)
	at org.eclipse.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:31)
	at org.eclipse.ceylon.compiler.typechecker.tree.Tree$ImportList.visit(Tree.java:254)
	at org.eclipse.ceylon.compiler.typechecker.tree.Walker.walkCompilationUnit(Walker.java:16)
	at org.eclipse.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visitChildren(Tree.java:30)
	at org.eclipse.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:24)
	at org.eclipse.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:26)
	at org.eclipse.ceylon.compiler.typechecker.analyzer.ImportVisitor.visit(ImportVisitor.java:69)
	at org.eclipse.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visit(Tree.java:22)
	at org.eclipse.ceylon.compiler.typechecker.context.PhasedUnit.scanTypeDeclarations(PhasedUnit.java:389)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild$15$2.$call$(CeylonProjectBuild.ceylon:651)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild$12.$call$(CeylonProjectBuild.ceylon:625)
	at org.eclipse.ceylon.compiler.java.Util.apply(Util.java:1671)
	at ceylon.language.unflatten_$1.$call$(unflatten_.java:46)
	at ceylon.language.Iterable$impl.each(Iterable.ceylon:366)
	at ceylon.language.impl.BaseIterable.each(bases.ceylon)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild.typecheck$priv$(CeylonProjectBuild.ceylon:663)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild.access$1700(CeylonProjectBuild.ceylon:117)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild$27$1$1.$call$(CeylonProjectBuild.ceylon:952)
	at org.eclipse.ceylon.ide.common.model.BaseCeylonProject.withSourceModel$canonical$(CeylonProject.ceylon:502)
	at org.eclipse.ceylon.ide.common.model.BaseCeylonProject.withSourceModel(CeylonProject.ceylon:494)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild$27$1.$call$(CeylonProjectBuild.ceylon:918)
	at org.eclipse.ceylon.ide.common.model.withCeylonModelCaching_.withCeylonModelCaching(CeylonProjects.ceylon:50)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild$27.$call$(CeylonProjectBuild.ceylon:917)
	at ceylon.interop.java.internal.synchronize_.synchronize(synchronize_.java:33)
	at ceylon.interop.java.synchronize_.synchronize(misc.ceylon:88)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild.updateCeylonModel(CeylonProjectBuild.ceylon:916)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild.performBuild$canonical$(CeylonProjectBuild.ceylon:610)
	at org.eclipse.ceylon.ide.common.model.CeylonProjectBuild.performBuild(CeylonProjectBuild.ceylon:580)
	at com.redhat.ceylon.ide.netbeans.model.CeylonModelManager$3.$call$(CeylonModelManager.ceylon:95)
	at com.redhat.ceylon.ide.netbeans.model.CeylonModelManager$2.$call$(CeylonModelManager.ceylon)
	at com.redhat.ceylon.ide.netbeans.model.CeylonModelManager$2.run(CeylonModelManager.ceylon)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant