# wm.b2b.edi.tradacoms.compose: startTradacomsTransmission throws NullPointerException

**URL:** <https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [December 18, 2007, 8:36pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463 "2007-12-18T20:36:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 18, 2007, 8:36pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/1 "2007-12-18T20:36:26Z")

</div>

Hi All,

We are trying to create EDI (Tradacoms) data from an internal document. As part of that, the first thing we are using the following service with the right details, but throws NullPointerException. Does anyone encountered the same problem. Your help is much appreciated.

wm.b2b.edi.tradacoms.compose:startTradacomsTransmission

To start with, I have tried with the dummy data set only STX document. Other input variables are not set.

Do we have to set other input fields as well ?

Thanks in adavance

Cheers  
NK

---

<div class="post-metadata">

**Author:** ![Jiten\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jiten\_Gupta](https://techcommunity.softwareag.com/u/Jiten_Gupta)\
**Post date:** [December 18, 2007, 9:04pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/2 "2007-12-18T21:04:31Z")

</div>

This is a know issue.  
Apply webMethods Integration Server 6.5 SP2 FlatFile Fix 3.  
This will solve the problem.

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 18, 2007, 11:06pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/3 "2007-12-18T23:06:56Z")

</div>

Hi Jiten,

Thanks for the quick response. We are running IS 65 SP3. Isn’t SP3 resolve this issue ?

Thanks  
NK

---

<div class="post-metadata">

**Author:** ![Jiten\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jiten\_Gupta](https://techcommunity.softwareag.com/u/Jiten_Gupta)\
**Post date:** [December 19, 2007, 3:01pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/4 "2007-12-19T15:01:45Z")

</div>

This fix is available for SP1 and SP2.  
So I think the same fix will be available for SP3.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [December 19, 2007, 8:16pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/5 "2007-12-19T20:16:01Z")

</div>

NK,

You have to make sure in SP3 release notes or somewhere whether this FlatFile Fix3 also was included or not.Generally it should have all the cumulated fixes in SP3…

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 20, 2007, 3:49pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/6 "2007-12-20T15:49:19Z")

</div>

Hi Jiten/RMG,

I have installed IS65 SP3 FlatFile Fix1 and resolved the issue. But when the service is executed the output of startTradacomsTransmission is “wm.b2b.edi.tradacoms.DefaultComposeInfo” instead of the edi header (STX). Is this correct ? Fyi, I have not supplied the “FormatInfo” and “encoding”.

thanks in advance  
NK

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 20, 2007, 7:22pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/7 "2007-12-20T19:22:22Z")

</div>

Hi Jiten/RMG,

Also, the output is generated with the edi header information if the “outputFileName” is used. The output is written into the file.

It is not working if “outputFileName” is not used.

Thanks  
NK

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 20, 2007, 8:00pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/8 "2007-12-20T20:00:30Z")

</div>

Hi

Any one supply the sample flow service that is to create the tradacoms v9 edi data from an internal document.

Thanks  
NK

---

<div class="post-metadata">

**Author:** ![Jiten\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jiten\_Gupta](https://techcommunity.softwareag.com/u/Jiten_Gupta)\
**Post date:** [December 20, 2007, 10:03pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/9 "2007-12-20T22:03:27Z")

</div>

Hi

See the usage of [FONT=Arial Narrow][SIZE=4]startTradacomsTransmission  
 [/size][/font]serivce. Its states that output is the object Used to write transmission information to disk or to memory. If the  
document exceeds the Large Document threshold, or if the outputFileName is  
specified, it will be written to disk…  
  
Also you have to use wm.b2b.edi.tradacoms.compose:addToTradacomsTransmission service  
to add other segment for TRADACOM document.   
  
and Finaly you will have to use  
wm.b2b.edi.tradacoms.compose:endTradacomsTransmission service   
to create the end segement. This service returns input stream containing the entire document.   
then uses streamtoBytes and BytestoString service to convert it to String.  
  
I hope this works !!!

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 24, 2007, 5:46pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/10 "2007-12-24T17:46:09Z")

</div>

hi jiten, I have followed the steps as it is given above, but inputStream is not available in the pipeline. What built-in service to be used to convert from streamToBytes ?

thanks  
NK

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [December 24, 2007, 10:19pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/11 "2007-12-24T22:19:42Z")

</div>

Its in the WmPublic folder [pub.io](http://pub.io):streamToBytes…

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Naveen\_Kenche](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Naveen\_Kenche](https://techcommunity.softwareag.com/u/Naveen_Kenche)\
**Post date:** [December 27, 2007, 3:36pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/12 "2007-12-27T15:36:14Z")

</div>

Hi Jiten,

I got it working now. Many thanks for the responses. I was using the wrong encoding. First of all I didn’t have to use encoding.

Cheers  
NK

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-tradacoms-compose-starttradacomstransmission-throws-nullpointerexception/109463/13 "2021-04-02T15:05:42Z")

</div>


