|
|
|
vgillestad
|
System:
Windows XP SP3 Full Glassfish ESB installation (Glassfish 2.1, and Netbeans 6.5.1) I'm trying to write a custom encoder to prosess a CSV file. But first I simply wanted to test out the example (TestCustomEncoderProjects2_and_Data.zip) that is provided on this page: "http://wiki.open-esb.java.net/Wiki.jsp?page=CustomDefined" I've downloaded, extracted, imported into netbeans, build and deployed the example. When I put the CSV file (TestCustom_Input.txt) to the "c:/data" directory the import starts, but fails with the following errormessage: Decode from input byte array, total bytes=8. FILEBC-E00716: Input file [C:\Data\TestCustomEncoderCompApp_FileInboundService_TestC1150570403\IBf30883f6-f9b0-31d1-ab1b-44c95dd15f30\filebc-in-processing\TestCustom_input.txte6a9afa7-948d-4b08-b154-5782e401dbfb] failed processing, an exception was raised: FILEBC-E00713: Error occured while transforming the normalized message: java.lang.Exception: FILEBC-E00713: Error occured while transforming the normalized message: at com.sun.jbi.filebc.FileNormalizer.getRootElement(FileNormalizer.java:347) at com.sun.jbi.filebc.FileNormalizer.buildMessagePayload(FileNormalizer.java:273) at com.sun.jbi.filebc.FileNormalizer.normalize(FileNormalizer.java:168) at com.sun.jbi.filebc.IBFileWorker.processMessage(IBFileWorker.java:356) at com.sun.jbi.filebc.IBFileWorker.run(IBFileWorker.java:151) at java.lang.Thread.run(Thread.java:619) FILEBC-E00717: Input file [C:\Data\TestCustomEncoderCompApp_FileInboundService_TestC1150570403\IBf30883f6-f9b0-31d1-ab1b-44c95dd15f30\filebc-in-processing\TestCustom_input.txte6a9afa7-948d-4b08-b154-5782e401dbfb] failed processing, has been moved to: C:\Data\TestCustomEncoderCompApp_FileInboundService_TestC1150570403\IBf30883f6-f9b0-31d1-ab1b-44c95dd15f30\errors\TestCustom_input.txte6a9afa7-948d-4b08-b154-5782e401dbfb. Error details have been written to: C:\Data\TestCustomEncoderCompApp_FileInboundService_TestC1150570403\IBf30883f6-f9b0-31d1-ab1b-44c95dd15f30\errors\TestCustom_input.txte6a9afa7-948d-4b08-b154-5782e401dbfb_error. Does anybody know why I get this errormessage? I've googled around, but I have not yet found anybody with a simular problem. |
||||||||||||||||
|
hrishi09
|
I don't know what the error exactly means.
It may be with ur encoder configuration or the csv file structure. Just try a simple things. Create a csv file as col1,col2,col3 with some records. create a xsd with a complex element containing three elements for three columns. apply encoding in encoder properties select Node Type as group select Top checkbox. In delimiter list create a delimiter for , Create a wsdl with File Binding component and select the complex element u just created in xsd as XSD element. This should work.
|
||||
|
vgillestad
|
Hi and thanks for the reply.
I tried what you just said, but got a very simular errormessage: Decode from input byte array, total bytes=11. FILEBC-E00716: Input file [C:\Temp\TempCasa_FileInboundService_temp_InboundPort_-1942114006\IBfd5fa36d-05e1-3093-8755-12459e6c33c7\filebc-in-processing\input.xml15cfc66f-f5e7-4566-803d-8bb99fae80a5] failed processing, an exception was raised: FILEBC-E00713: Error occured while transforming the normalized message: java.lang.Exception: FILEBC-E00713: Error occured while transforming the normalized message: at com.sun.jbi.filebc.FileNormalizer.getRootElement(FileNormalizer.java:347) at com.sun.jbi.filebc.FileNormalizer.buildMessagePayload(FileNormalizer.java:273) at com.sun.jbi.filebc.FileNormalizer.normalize(FileNormalizer.java:168) at com.sun.jbi.filebc.IBFileWorker.processMessage(IBFileWorker.java:356) at com.sun.jbi.filebc.IBFileWorker.run(IBFileWorker.java:151) at java.lang.Thread.run(Thread.java:619) FILEBC-E00717: Input file [C:\Temp\TempCasa_FileInboundService_temp_InboundPort_-1942114006\IBfd5fa36d-05e1-3093-8755-12459e6c33c7\filebc-in-processing\input.xml15cfc66f-f5e7-4566-803d-8bb99fae80a5] failed processing, has been moved to: C:\Temp\TempCasa_FileInboundService_temp_InboundPort_-1942114006\IBfd5fa36d-05e1-3093-8755-12459e6c33c7\errors\input.xml15cfc66f-f5e7-4566-803d-8bb99fae80a5. Error details have been written to: C:\Temp\TempCasa_FileInboundService_temp_InboundPort_-1942114006\IBfd5fa36d-05e1-3093-8755-12459e6c33c7\errors\input.xml15cfc66f-f5e7-4566-803d-8bb99fae80a5_error. Maybe there is something wrong with my system. The encoder works when I use the test-tool for encoders. I have attached the simple project that I created. Maybe you could try to run it on your system? NetBeansProjects.rar
|
||||||||||||||||
|
hrishi09
|
Hi,
I had look at ur project i think ur trying to read a XML file <file:message fileName="input.xml" and ur applying csv encoder. Have tried with input.csv with rec11,rec12 rec21,rec22 Like records as ur xsd structure is. Thanks n Regards , Hrishi On Mon, Oct 26, 2009 at 3:13 PM, vgillestad [via OpenESB Users] <[hidden email]> wrote: Hi and thanks for the reply. |
|||||||||||||||
|
hrishi09
|
In reply to this post
by vgillestad
I modified ur temp.wsdl as follows,
<input name="input1"> <file:message fileName="input.csv" pollingInterval="1000" encodingStyle="customencoder-1.0" use="encoded" part="part1" multipleRecordsPerFile="true" recordDelimiter="LINE FEED"/> </input> <output name="output1"> <file:message fileName="output.csv" encodingStyle="customencoder-1.0" use="encoded" part="part1" multipleRecordsPerFile="true" recordDelimiter="LINE FEED"/> </output> It worked for me. May be u should try with above Thanks n Regards, Hrishi On Mon, Oct 26, 2009 at 3:33 PM, Hrishikesh Joshi <[hidden email]> wrote: Hi, |
|||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |