Hi,
I am not able to resubmit the flat file from TN. When i try to resubmit i get below error.
null
I’ve checked the PDF and there it was mentioned like ‘if you want to resubmit your flat file the add $receivesvc to TN_parms and provide the service name for resubmitting’. I’ve done that and i could see the service is reaching to TN and getting saved to Database as well but still the same error.
Please provide your help to resolve it.
Vikas,
Please check this Advantage article and recheck your process:
[url]http://advantage.webmethods.com/article/?id=SR-1-44292171[/url]
HTH,
RMg
Hi RMG,
Thanks for your reply. I checked that article, there they mentioned about the usage of wm.tn.doc:verify service and $internalDocId and $receiveSvc. I am using $receiveSvc parameter under TN_parms in my gateway service but i am not able to use wm.tn.doc:receive service and $internalDocId. If you have idea then please let me know.
Also in one Advantage i read one article where they mentioned that we can not resubmit flat file from TN. If we want then we have to use monitor to do so.
I am prety confused and as well as i want to get it done. Please help me. I am pasting complete error for your reference.
ErrorMessage:
TRNCONS.000000.000003
ERROR
doc.DocPanel
gResubmitAction.actionPerformed
Fri Feb 05 00:11:30 GMT+05:30 2010
wm.tn.doc:resubmit
com.wm.ui2.UiException: wm.tn.doc:resubmit
java.lang.NullPointerException
null
wm.tn.doc:resubmit
java.lang.NullPointerException
null
null
com.wm.ui2.UiException: wm.tn.doc:resubmit
java.lang.NullPointerException
at com.wm.ui2.UiException.handle(UiException.java:215)
at com.wm.ui2.UiException.handle(UiException.java:184)
at com.wm.app.tn.ui.Server.invoke(Server.java:379)
at com.wm.app.tn.ui.doc.DocPanel$8.actionPerformed(DocPanel.java:535)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:993)
at java.awt.Component.processMouseEvent(Component.java:5517)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5282)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3984)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3819)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
wm.tn.doc:resubmit
java.lang.NullPointerException
java.lang.NullPointerException
at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:89)
at com.wm.app.tn.doc.FFDocType.s_createPipeline(FFDocType.java:195)
at com.wm.app.tn.doc.FFDocType.createPipeline(FFDocType.java:218)
at wm.tn.docimpl.resubmit(docimpl.java:1221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:403)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:631)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:40)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:241)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:228)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:624)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:536)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:381)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:237)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:151)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:186)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:327)
at com.wm.util.pool.PooledThread.run(PooledThread.java:118)
at java.lang.Thread.run(Thread.java:595)
You shouldn’t be using this service:wm.tn.doc:receive.Instead use the gateway service
wm.tn.doc.ff:routeFlatFile and set the (TN_params,ffdata (stream))
HTH,
RMG
Hi RMG,
I am not using service wm.tn.doc:receive. I am using wm.tn.doc.ff:routeFlatFile. But when i am resubmitting then this service is being appeared in the error log. Do you know how we can resubmit flat file from TN? What are the steps?
Is it not working resubmit/reprocess option(right click) the persisted flat file document in Transaction Analysis? What is the error in the activity log at that point?
HTH,
RMG
You raised correct point here. I checked the acivity log and found document is not getting persisted. Message is coming for that step is ‘Inserted with 0 bytes of content’. And i belive resubmit service is not finding content in the database to be resubmitted that is why in the error log it is coming as ‘null’.
If my understanding is correct then can you guide me what step i am missing so that data is not getting inserted to database?
My service goes as below:
Step1: receiving ff as stream.
Step2: passing ffdata to convertToValues
Step3: ffvalues which i am getting from above step is being mapped to the TN_parms doc. (like SenderId, ReceiverId…)
Step4: passing ffdata and TN_parms to wm.tn.doc.ff:routeFlatFile service.
Expecting your quick reply on this.
Thanks in advance.
Please follow these steps and make sure for testing:
Step1: receive ffdata as stream (make sure it is a stream data?? or use conversion)
Step2: Map step - set explicitly TN_params/
DoctypeName - required
SenderID - required
ReceiverID - required
$receiveSvc (fully qualified service path) - optional
Step3: map ffdata and implicitly map TN_params in the wm.tn.doc.ff:routeFlatFile
The above steps should work.
HTH,
RMg
HI RMG,
I did not get time to implement the steps suggested by you. as soon as i’ll do it, i’ll let you know the result.
Take your time and test it thoroughly…
HTH
RMG
Hi RMG,
I am able to resubmit now but can you tell me what is the significance of DoctypeName parameter?
Hi RMG,
Please reply to my above query?