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 95771 - Problem with Web Serivce....
Summary: Problem with Web Serivce....
Status: RESOLVED DUPLICATE of bug 87181
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Roderico Cruz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-16 09:23 UTC by tako
Modified: 2013-06-17 09:51 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 tako 2007-02-16 09:24:01 UTC
Hi,

I have lately followed the tutorial on web services to create the following.
This project uses JBoss as an application server.

1) An EJB Project containing a Web Service to return the value s as explained
within the tutorial.
2) Created a web project that contained a web service client for the above
service. I connected by the test operation never works since it always gives me
the errors below and states the the name of the string is "string_1" and not "s"...

 InvocationTargetException
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:518)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:70)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) Next
Exception Layer null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:70)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) Next
Exception Layer com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl
cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
webservice.CoffeeDetailsSEI_Stub.coffeeName(CoffeeDetailsSEI_Stub.java:69)
webservice.CoffeeDetailsClient.coffeedetailsseiportCoffeeName(CoffeeDetailsClient.java:22)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.netbeans.modules.websvc.registry.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:512)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.invokeMethod(TestWebServiceMethodDlg.java:444)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg.access$500(TestWebServiceMethodDlg.java:70)
org.netbeans.modules.websvc.registry.ui.TestWebServiceMethodDlg$3.run(TestWebServiceMethodDlg.java:387)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)

3) When I called the web service operation from the site, it created all the
details but when I run the page I get this error which is being returned by a
catch statement...

Error:java.lang.ClassCastException:
com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to
com.sun.xml.messaging.saaj.soap.MessageImpl

Any help will be highly appreciated!
Comment 1 Lukas Jungmann 2007-02-16 10:19:10 UTC
ad parameter names - see issue 61124

ad exceptions (ClassCastException is the cause in 2&3) - see issue 87181
Comment 2 Lukas Jungmann 2007-10-06 02:21:56 UTC

*** This issue has been marked as a duplicate of 87181 ***