ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » NullPointerException whn collab object expose as webservice

Post new topic  Reply to topic
 NullPointerException whn collab object expose as webservice « View previous topic :: View next topic » 
Author Message
lax
PostPosted: Tue Sep 16, 2008 10:08 am    Post subject: NullPointerException whn collab object expose as webservice Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 19

When I try to expose collab object as as web services I got following exception javascript:emoticon('')

!ENTRY com.ibm.btools.csm 4 4 Sep 16, 2008 13:56:43.585
!MESSAGE null
java.lang.NullPointerException
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createSimpleElement(CWBusObjSpecXMLWriter.java:981)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.findSchemaObjectForElement(CWBusObjSpecXMLWriter.java:925)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForSimpleType(CWBusObjSpecXMLWriter.java:1397)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1763)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.findSchemaObjectForComplexType(CWBusObjSpecXMLWriter.java:818)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1538)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1691)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1691)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1691)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1691)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createElementForComplexType(CWBusObjSpecXMLWriter.java:1691)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createBusObjComplexTypeWithASIs(CWBusObjSpecXMLWriter.java:1766)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.findSchemaObjectForComplexType(CWBusObjSpecXMLWriter.java:809)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.createTLOBusObjSchemas(CWBusObjSpecXMLWriter.java:508)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.processTLOBusObj(CWBusObjSpecXMLWriter.java:381)
at com.ibm.btools.itools.wsdlgen.CWBusObjSpecXMLWriter.write(CWBusObjSpecXMLWriter.java:301)
at com.ibm.btools.itools.wsdlgen.CWCollabWSDLWriter.createSchemaFile(CWCollabWSDLWriter.java:2432)
at com.ibm.btools.csm.ui.wizards.CWCollabWebServiceWizard.performFinish(CWCollabWebServiceWizard.java:311)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Inlined Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code))
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.ibm.btools.csm.ui.actions.CWCollabWebServiceAction.openWebServicesDialogBox(CWCollabWebServiceAction.java:126)
at com.ibm.btools.csm.ui.actions.CWCollabWebServiceAction.run(CWCollabWebServiceAction.java:5
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Inlined Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code))
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Back to top
View user's profile Send private message
lax
PostPosted: Wed Sep 17, 2008 6:11 am    Post subject: Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 19

Folks,

Plz help me, any jar's need to added, I added following jar's

webservices.jar,
csm.jar
activation.jar
wsdl4j.jar

In connector configure properties

ContetxtPath, host, port, mimetype and other fields are added
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 6:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why would a NullPointerException be solved by changing anything on the classpath?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 17, 2008 7:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Are you trying to perform an operation (method call) on an object/element that is defined as nillable in your schema without first checking wether it is null??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lax
PostPosted: Wed Sep 17, 2008 7:26 am    Post subject: Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 19

All BO's are having ASI 's and Object is bind to connectors. As my soucre is webservice connector I added context path, host and port details.

Template contains operations (logic). which is also bind to object. could you tell where would be null.

This is the first time I doing exposing collab as webserivce, so I may left out some where. Could you guide/ suggest me.

fjb_saper wrote:
Are you trying to perform an operation (method call) on an object/element that is defined as nillable in your schema without first checking wether it is null??
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 17, 2008 8:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

A NullPointerException means that you tried to access something that did not exist.

Now you need to figure out what you tried to access, why it was did not exist, whether that was allowable or not, how to detect it, and what to do about it.

This is called "programming". If you wish to be a "programmer", then you need to learn this.
Back to top
View user's profile Send private message
lax
PostPosted: Mon May 10, 2010 3:45 am    Post subject: Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 19

Thanks all,

issue resloved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » NullPointerException whn collab object expose as webservice
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.