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 129830 - NullPointerException by attempt to use StrikeIron web service in deployed application
Summary: NullPointerException by attempt to use StrikeIron web service in deployed app...
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-11 19:11 UTC by Roman Mostyka
Modified: 2008-03-18 17:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Deployed application. (73.55 KB, application/octet-stream)
2008-03-11 19:16 UTC, Roman Mostyka
Details
GlassFish log file. (46.12 KB, text/plain)
2008-03-11 19:21 UTC, Roman Mostyka
Details
IDE log file. (49.87 KB, text/plain)
2008-03-11 19:22 UTC, Roman Mostyka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-03-11 19:11:52 UTC
1. Create web application with "Visual Web JSF" framework.
2. Add Button and Static Text components to the page.
3. Rightclick Static Text component and choose "Add Binding Attributes".
4. Expand "Web Services > StrikeIron > USAddressVerification" node.
5. DnD "Web Services > StrikeIron > USAddressVerification > VerifyAddressUSA" web service method to the page.
6. Double click Button component and add following event handler (I've got it from NetBeans 6.0 tutorial):
"
USAddressVerificationSoapVerifyAddressUSA bean =
                this.getUSAddressVerificationSoapVerifyAddressUSA1();
        bean.setUserID("<StrikeIronUserID>");
        bean.setPassword("<StrikeIronUserPassword>");
        bean.setAddressLine1("2520 Meridian Parkway");
        bean.setAddressLine2("");
        bean.setCityStateZip("Durham, NC 27713");
        staticText1.setText(bean.invokeMethod().getAddressStatus());
"
7. Deploy project. Load application in browser and click button.

Result: Message "HTTP Status 500" appears in browser and NullPointerException is thrown by GlassFish.
Comment 1 Roman Mostyka 2008-03-11 19:16:43 UTC
Created attachment 58188 [details]
Deployed application.
Comment 2 Roman Mostyka 2008-03-11 19:21:10 UTC
Created attachment 58189 [details]
GlassFish log file.
Comment 3 Roman Mostyka 2008-03-11 19:22:33 UTC
Created attachment 58190 [details]
IDE log file.
Comment 4 Quy Nguyen 2008-03-11 19:30:58 UTC
I tried testing the method using the parameters in the description, and I got the following exception.  It looks like
the license has expired, so the application will not work.

Invalid license account: Remaining hits used up already
com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187)
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:108)
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254)
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) $Proxy87.verifyAddressUSA(Unknown Source)
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.saas.ui.wizards.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:733)
org.netbeans.modules.websvc.saas.ui.wizards.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:703)
java.lang.Thread.run(Thread.java:619)
Comment 5 Roman Mostyka 2008-03-18 17:06:07 UTC
Fixed.
Comment 6 Roman Mostyka 2008-03-18 17:09:29 UTC
Verified.