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.

Bug 83342 - java.lang.ClassCastException: org.netbeans.jmi.javamodel.StringLiteral$Impl
Summary: java.lang.ClassCastException: org.netbeans.jmi.javamodel.StringLiteral$Impl
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
: 85087 (view as bug list)
Depends on: 95534
Blocks:
  Show dependency tree
 
Reported: 2006-08-24 08:57 UTC by pscholz
Modified: 2007-07-04 12:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file ater the error occured (19.28 KB, text/plain)
2006-08-24 08:58 UTC, pscholz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pscholz 2006-08-24 08:57:20 UTC
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)
Comment 1 pscholz 2006-08-24 08:58:46 UTC
Created attachment 33227 [details]
Log file ater the error occured
Comment 2 Jiri Kovalsky 2006-08-31 13:29:41 UTC
Okay, reassigning to j2ee module for further investigation.
Thanks for your report!
Comment 3 Daniel Prusa 2006-09-07 09:47:51 UTC
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.
Comment 4 Daniel Prusa 2006-09-21 16:50:48 UTC
*** Issue 85087 has been marked as a duplicate of this issue. ***
Comment 5 Petr Jiricka 2007-01-05 13:31:05 UTC
Should be fixed by the annotation merged model redesign.
Comment 6 Andrei Badea 2007-07-04 12:31:37 UTC
The model is in trunk, so marking as fixed.