CADK/WM4.5/Bug in publishing ?

Hi,

Since I’m using webMethods 4.5, my adapter doesn’t work anymore.

In fact in my ScriptInvoke() I publish document by myself using :
AdapterScriptAcess.publishEvent(BrokerEvent event)

It works fine with webMethods 4.0 but with 4.5 I’ve got :

java.lang.NullPointerException
at com.wm.adapter.intdevkit.AdapterMain.setEnvelope(AdapterMain.java:3360)
at com.wm.adapter.intdevkit.AdapterMain.setEnvelope(AdapterMain.java, Compiled Code)
at com.wm.adapter.intdevkit.Operation.publishEvents(Operation.java:1146)
at COM.activesw.adapter.MyAdapter.MyAdapterTemplate.scriptInvoke(MyAdapterTemplate.java, Compiled Code)
at com.wm.adapter.intdevkit.Operation$1.run(Operation.java:559)
at java.security.AccessController.doPrivileged(Native Method)
at com.wm.adapter.intdevkit.Operation.doPrivileged(Operation.java:546)
at com.wm.adapter.intdevkit.Operation.scriptInvoke(Operation.java:416)
at com.wm.adapter.intdevkit.AdapterMain.processPublication1(AdapterMain.java, Compiled Code)
at com.wm.adapter.intdevkit.AdapterMain.processPublication(AdapterMain.java:1488)
at com.wm.adapter.intdevkit.ThreadRunner.run(ThreadRunner.java, Compiled Code)

I checked my BrokerEvent, all is fine (it seems !), not null…

If someone has an idea… Thanks in advance

Matthieu Boujonnier
mboujonnier@slb.com

hi,

With wm4.5 version webMethods added few more variables in the envelope… Pl check that you have taken care of all those variables…

this may be areason for null pointer exception…

regards,
sampath

Thanks Sampath !

I’m studying the diffences between env fields in 4.1 & 4.5… I hope to find something.

But in 4.1 the BrokerEvent event = access.newOutputEvent(transaction) call create a fully filled event ready to be sent and it’s not the case in 4.5 (the same error occurs), don’t you think it’s a bug ?

Regards

Matt
mboujonnier@slb.com