This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This happens after a fresh install, having gone through the web service examples (CalculatorWSApplication, CalculatorWS_Client_Application, CalculatorWSServletClient). Then after a close oand restart of the IDE, the error is persistent: java.lang.ClassCastException: org.netbeans.jmi.javamodel.StringLiteral$Impl at org.netbeans.modules.j2ee.dd.impl.web.WebNNListener.webServiceRefNNAdded(WebNNListener.java:216) at org.netbeans.modules.j2ee.dd.impl.web.WebNNListener.addMemberAnnotation(WebNNListener.java:161) at org.netbeans.modules.j2ee.metadata.NNMDRListener.memberAnnotationAdded(NNMDRListener.java:482) at org.netbeans.modules.j2ee.metadata.NNMDRListener.annotationAdded(NNMDRListener.java:517) at org.netbeans.modules.j2ee.metadata.NNMDRListener.access$500(NNMDRListener.java:66) at org.netbeans.modules.j2ee.metadata.NNMDRListener$2.run(NNMDRListener.java:121) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Created attachment 33227 [details] Log file ater the error occured
Okay, reassigning to j2ee module for further investigation. Thanks for your report!
To reproduce the issue, can you zip and attach the whole project, please? By inspecting the stack trace, annotation.getAttributeValues() returns StringLiteral among the list elements, but there should be AttributeValues only and StringLiteral should be returned by AttributeValue.getInitialValue(). Seems like a bug in javacore when creating jmi data from a parse tree.
*** Issue 85087 has been marked as a duplicate of this issue. ***
Should be fixed by the annotation merged model redesign.
The model is in trunk, so marking as fixed.