Error while accessing the getContentPartBytes service

Hi,

Our project involves communication between webMethods trading networks and VAN using HTTP/S.

So we have written a custom service which will get the EDIINT value from VAN in the form of bizdoc record, which is been processed to get the internal id.

After that, we are using a in built service called “getContentPartBytes” which resides in “wm.tnweb.querySvc:” folder, to retrive the EDI data from the EDIINT data.

This service accepts five parameters namely,

docid - this information is taken from the bizdoc and passed as input parameter
partName - this is been hardcoded as “payload”
direction - this is been hardcoded as “Next”
startIndex - this is been hardcoded as “0”
displaySize - this is been hardcoded as “2000”

After giving all these informations, when we call this service, we are getting an error stating that:

a) Error encountered in invoking service wm.tnweb.querySvc:getDocDetails
b) wm.tnweb.querySvc:getQueryRestriction: could not get document query restriction for document id = null

We tried in altering the

a) ACL user priveleges
b) Hard code all the relevant values for the getContentPartBytes service

But in vain. The entire error information that we got when this service is executed is as follows:

TRNSERV.000018.000066
Error encountered in invoking service wm.tnweb.querySvc:getDocDetails

  com.wm.app.tn.err.EXMLException 

TRNSERV.000018.000025
wm.tnweb.querySvc:getQueryRestriction: could not get document query restriction for document id = null

  java.lang.NullPointerException 
   
  java.lang.NullPointerException 

at wm.tnweb.querySvc.getQueryRestriction(querySvc.java:549)
at wm.tnweb.querySvc.getContentPartBytes(querySvc.java:1147)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:450)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
at com.wm.app.b2b.server.Service.doInvoke(Service.java:392)
at com.wm.app.tn.delivery.DeliveryUtils.invokeLocal(DeliveryUtils.java:928)
at com.wm.app.tn.delivery.DeliveryUtils.invokeService(DeliveryUtils.java:567)
at com.wm.app.tn.delivery.GuaranteedJob.invoke(GuaranteedJob.java:203)
at com.wm.app.tn.delivery.JobMgr$JobExecutor.run(JobMgr.java:970)
at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
at java.lang.Thread.run(Thread.java:484)

It would probably be helpful if you displayed the code of your service, somehow.

Presumably you’re setting the docId parameter of getContentPartBytes to bizdoc.InternalID. If this is null, then the bizdoc object you have in your service isn’t valid.

“…will get the EDIINT value from VAN in the form of bizdoc record…”

Can you post this portion of your service?