cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

ObjectWebject.invoke() exception

DerekBotfield
1-Newbie

ObjectWebject.invoke() exception

I am trying to invoke a webject, using SAK classes from a Java program. Like so:

com.infoengine.SAK.ObjectWebject ow = new com.infoengine.SAK.ObjectWebject();
ow.setService(ieService);
ow.setUserName("xx");
ow.setPassword("xx");
ow.setName("Query-Objects");
ow.setParam("INSTANCE", "xx");
ow.addParam("DBUSER", "xx");
ow.addParam("PASSWD", "xx");
ow.setParam("TYPE", "WCTYPE|wt.doc.WTDocument|com.abc.def");
ow.setParam("WHERE", "Name=*");
ow.setParam("ATTRIBUTE", "name, number, Assy_or_Part_or_Fixture_Reference");
ow.setParam("GROUP_OUT", "RDocs");
ow.invoke();

This gives the following exception:

2010/08/13-20:40:42.338#:#INS002922#:#-IE-#:#java.lang.NullPointerException
at com.infoengine.procunit.adapter.Adapter.receive(Adapter.java:480)
at com.infoengine.procunit.webject.WebjectProcessor.routeWebject(WebjectProcessor.java:495)
at com.infoengine.procunit.webject.WebjectProcessor.processTask(WebjectProcessor.java:106)
at com.infoengine.SAK.Webject.invoke(Webject.java:324)
at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:96)
at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:69)
at dab.TestWebjects.main(TestWebjects.java:60)


I gather, from looking at the code that Windchill is looking for an object input stream from which to read BLOBS. I am guessing it has something to do with the webject being invoked from an external program.
Can anyone tell me how to fix this problem?

Thanks,

Derek
1 REPLY 1
Top Tags