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 118299 - Google service DnD doesnt work
Summary: Google service DnD doesnt work
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-09 22:49 UTC by Srividhya Narayanan
Modified: 2008-01-19 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srividhya Narayanan 2007-10-09 22:49:25 UTC
I have the dev build. I got the REST plugin modules which I installed. I see the google services in palette. When I try
to DnD I get this exception. I tried DnD of Strikeiron emailverification service and also get an exception. here is the
stack from console. Before I did the DnD I expanded the service in web services node in services tab.

INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalStateException: There might have been earlier errors in initializing Web Services
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.initWsdlModelInfo(JaxwsOperationInfo.java:130)
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.getOperation(JaxwsOperationInfo.java:163)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.deriveMimeTypes(WsdlComponentBean.java:98)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:76)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:64)
        at org.netbeans.modules.websvc.rest.codegen.WsdlComponentGenerator.<init>(WsdlComponentGenerator.java:92)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:95)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalStateException: There might have been earlier errors in initializing Web Services
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.initWsdlModelInfo(JaxwsOperationInfo.java:130)
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.getOperation(JaxwsOperationInfo.java:163)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.deriveMimeTypes(WsdlComponentBean.java:98)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:76)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:64)
        at org.netbeans.modules.websvc.rest.codegen.WsdlComponentGenerator.<init>(WsdlComponentGenerator.java:92)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:95)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalStateException: There might have been earlier errors in initializing Web Services
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.initWsdlModelInfo(JaxwsOperationInfo.java:130)
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.getOperation(JaxwsOperationInfo.java:163)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.deriveMimeTypes(WsdlComponentBean.java:98)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:76)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:64)
        at org.netbeans.modules.websvc.rest.codegen.WsdlComponentGenerator.<init>(WsdlComponentGenerator.java:92)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:95)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalStateException: There might have been earlier errors in initializing Web Services
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.initWsdlModelInfo(JaxwsOperationInfo.java:130)
        at org.netbeans.modules.websvc.rest.codegen.model.JaxwsOperationInfo.getOperation(JaxwsOperationInfo.java:163)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.deriveMimeTypes(WsdlComponentBean.java:98)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:76)
        at org.netbeans.modules.websvc.rest.codegen.model.WsdlComponentBean.<init>(WsdlComponentBean.java:64)
        at org.netbeans.modules.websvc.rest.codegen.WsdlComponentGenerator.<init>(WsdlComponentGenerator.java:92)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:95)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.lang.IllegalStateException: Cannot call getCompilationInfo() if current phase < JavaSource.Phase.PARSED. You must
call toPhase(Phase.PARSED) first.
        at org.netbeans.api.java.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:133)
        at org.netbeans.api.java.source.CompilationController.getCompilationUnit(CompilationController.java:129)
        at org.netbeans.modules.websvc.rest.support.JavaSourceHelper.getTopLevelClassTree(JavaSourceHelper.java:222)
        at org.netbeans.modules.websvc.rest.support.JavaSourceHelper.getTopLevelClassElement(JavaSourceHelper.java:241)
        at org.netbeans.modules.websvc.rest.support.JavaSourceHelper$8.run(JavaSourceHelper.java:859)
        at org.netbeans.modules.websvc.rest.support.JavaSourceHelper$8.run(JavaSourceHelper.java:858)
        at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:601)
        at
org.netbeans.modules.websvc.rest.support.JavaSourceHelper.getAnnotationValuesForAllMethods(JavaSourceHelper.java:856)
        at
org.netbeans.modules.websvc.rest.codegen.RestComponentGenerator.getExistingUriTemplates(RestComponentGenerator.java:547)
        at
org.netbeans.modules.websvc.rest.codegen.RestComponentGenerator.getAvailableUriTemplate(RestComponentGenerator.java:555)
        at
org.netbeans.modules.websvc.rest.codegen.RestComponentGenerator.getSubresourceLocatorUriTemplate(RestComponentGenerator.java:416)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:108)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Srividhya Narayanan 2007-10-09 22:51:50 UTC
When I DnD the IPaddresslookup service I get this exception. NOTE: This service is not expanded in the services tab.
seems like a different exception than the previous one:

INFO [org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler]: handleTransfer
java.util.MissingResourceException: Can't find resource for bundle org.openide.util.NbBundle$PBundle, key
LBL_SubresourceLocator
        at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
        at java.util.ResourceBundle.getString(ResourceBundle.java:285)
        at org.openide.util.NbBundle.getMessage(NbBundle.java:629)
        at
org.netbeans.modules.websvc.rest.component.palette.RestComponentSetupPanel.initComponents(RestComponentSetupPanel.java:250)
        at
org.netbeans.modules.websvc.rest.component.palette.RestComponentSetupPanel.<init>(RestComponentSetupPanel.java:43)
        at org.netbeans.modules.websvc.rest.component.palette.RestComponentHandler$1.run(RestComponentHandler.java:108)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
CONFIG [null]: Missing resource from class: org.openide.util.NbBundle$PBundle
CONFIG [null]: Key which was not found: LBL_SubresourceLocator
Comment 2 Nam Nguyen 2007-10-09 23:28:37 UTC
This should be some regression from changes in last few weeks.
Comment 3 Nam Nguyen 2007-10-10 04:17:47 UTC
I could not see the IllegalStateException's.
Note that the ResourceNotFoundException usually happen when we overwrite one of the module jars while the IDE is still
running.

I do however, see the exception from JavaSourceHelper.getAnnotationValuesForAllMethods.
This is timing issue due to existing Retouch utility lacking toPhase call to synchronize.
I have fixed this and tested this scenario (expand service tab fully or half-way) on all components.  All worked fine.
Close as fixed.
Comment 4 Lukas Jungmann 2008-01-19 15:54:30 UTC
v.