I try to send a file to my custom server (based on accord) and get an error after EFPA and ESID. I have the file data at the custom server in a working directory. Also a virutal file is created. But the file is not created in the inbox. It is possible that the problem is at the custom server. Because I get the error message in Mendelson I ask here for help. Please have a look at the logs:
- (idea) I am new to OFTP but as far as I understand the specification it is not allowed to send ESID without error after receiving EFPA. Maybe this leads to the error?
### Mendelson Log ###
[May 27, 2015 10:27:22 AM] [Transmission 47] Starting data preprocessing [C:\mendelson\opensource\oftp2\temp\20150527\upload_oftp.bin], size: 946 bytes
[May 27, 2015 10:27:22 AM] [Transmission 47] The user defined transmission id is set to "--"
[May 27, 2015 10:27:22 AM] [Transmission 47] Record format of the transmission: U
[May 27, 2015 10:27:22 AM] [Transmission 47] [Transmission preprocessing]: Unsigned data transmission requested, signature not required
[May 27, 2015 10:27:22 AM] [Transmission 47] [Transmission preprocessing]: Uncompressed data transmission requested, compression not required
[May 27, 2015 10:27:22 AM] [Transmission 47] [Transmission preprocessing]: Unencrypted data transmission requested, encryption not required
[May 27, 2015 10:27:22 AM] [Transmission 47] [Transmission preprocessing]: Unsigned EERP requested, no file hash generation required
[May 27, 2015 10:27:22 AM] [Transmission 47] Set state from "picked up" to "preprocessed"
[May 27, 2015 10:27:22 AM] [Transmission 47] Ensured existing target dir "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending"
[May 27, 2015 10:27:22 AM] [Transmission 47] Will move file from "C:\mendelson\opensource\oftp2\temp\20150527\upload_oftp.bin" to "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001"
[May 27, 2015 10:27:22 AM] [Transmission 47] File move performed
[May 27, 2015 10:27:22 AM] [Transmission 47] Moved preprocessed data to [C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001]
[May 27, 2015 10:27:22 AM] [Transmission 47] Data preprocessing finished successfully, waiting for outbound transmission
[May 27, 2015 10:27:26 AM] Initializing outgoing connection to PartnerEclipse [/0.0.0.0:13305]
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Mode" to B
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Restart" to false
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Authentication" to false
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Buf-size" to 2048
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Compression" to false
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting session var "Caller" to true
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Setting state machine Session Connection State Machine
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Session state: I_WF_NC
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Session state: I_WF_NC --> I_WF_RM
[May 27, 2015 10:27:26 AM] [Session 14327152464743] Connection established [/0.0.0.0:13305]
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Received command SSRM
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Received command
o-------------------------------------------------------
| SSRM Start Session Ready Message
o-------------------------------------------------------
| 0 | X(1) | SSRMCMD | SSRM Command | 'I' | [49]
| 1 | X(17) | SSRMMSG | Ready Message | 'ODETTE FTP READY ' | [4f 44 45 54 54 45 20 46 54 50 20 52 45 41 44 59 20]
| 18 | X(1) | SSRMCR | Carriage Return | '
' | [0d]
o-------------------------------------------------------
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Statemachine "Session Connection State Machine" received signal "SSRM", state is "I_WF_RM"
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Session state: I_WF_RM --> I_WF_SSID
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Send command: SSID
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Send command:
o-------------------------------------------------------------------------------
| SSID Start Session
o-------------------------------------------------------------------------------
| 0 | X(1) | SSIDCMD | SSID Command | 'X' | [58]
| 1 | 9(1) | SSIDLEV | Protocol Release Level | '5' | [35]
| 2 | X(25) | SSIDCODE | Initiators Identification Code | 'O2010CUSTOMER ' | [4f 32 30 31 30 43 55 53 54 4f 4d 45 52 20 20 20 20 20 20 20 20 20 20 20 20]
| 27 | X(8) | SSIDPSWD | Initiators Password | 'ESEL ' | [45 53 45 4c 20 20 20 20]
| 35 | 9(5) | SSIDSDEB | Data Exchange Buffer Size | '02048' | [30 32 30 34 38]
| 40 | X(1) | SSIDSR | Send/Receive Capabilities | 'B' | [42]
| 41 | X(1) | SSIDCMPR | Buffer Compression Indicator | 'N' | [4e]
| 42 | X(1) | SSIDREST | Restart Indicator | 'N' | [4e]
| 43 | X(1) | SSIDSPEC | Special Logic Indicator | 'N' | [4e]
| 44 | 9(3) | SSIDCRED | Credit | '099' | [30 39 39]
| 47 | X(1) | SSIDAUTH | Secure Authentication | 'N' | [4e]
| 48 | X(4) | SSIDRSV1 | Reserved | '' | [20 20 20 20]
| 52 | X(8) | SSIDUSER | User Data | '' | [20 20 20 20 20 20 20 20]
| 60 | X(1) | SSIDCR | Carriage Return | '
' | [0d]
o-------------------------------------------------------------------------------
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Received command SSID
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Received command
o-------------------------------------------------------------------------------
| SSID Start Session
o-------------------------------------------------------------------------------
| 0 | X(1) | SSIDCMD | SSID Command | 'X' | [58]
| 1 | 9(1) | SSIDLEV | Protocol Release Level | '5' | [35]
| 2 | X(25) | SSIDCODE | Initiators Identification Code | 'O0055MYSERVERID ' | [4f 30 30 35 35 4d 59 53 45 52 56 45 52 49 44 20 20 20 20 20 20 20 20 20 20]
| 27 | X(8) | SSIDPSWD | Initiators Password | 'MYPASSWD' | [4d 59 50 41 53 53 57 44]
| 35 | 9(5) | SSIDSDEB | Data Exchange Buffer Size | '02048' | [30 32 30 34 38]
| 40 | X(1) | SSIDSR | Send/Receive Capabilities | 'B' | [42]
| 41 | X(1) | SSIDCMPR | Buffer Compression Indicator | 'N' | [4e]
| 42 | X(1) | SSIDREST | Restart Indicator | 'N' | [4e]
| 43 | X(1) | SSIDSPEC | Special Logic Indicator | 'N' | [4e]
| 44 | 9(3) | SSIDCRED | Credit | '064' | [30 36 34]
| 47 | X(1) | SSIDAUTH | Secure Authentication | 'N' | [4e]
| 48 | X(4) | SSIDRSV1 | Reserved | '' | [20 20 20 20]
| 52 | X(8) | SSIDUSER | User Data | '' | [20 20 20 20 20 20 20 20]
| 60 | X(1) | SSIDCR | Carriage Return | '
' | [0d]
o-------------------------------------------------------------------------------
[May 27, 2015 10:27:27 AM] [Session 14327152464743] SSID negotiation: Buf-size negotiated to 2048
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Buf-size" to 2048
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Compression" to false
[May 27, 2015 10:27:27 AM] [Session 14327152464743] SSID negotiation: Compression negotiated to false
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Window" to 64
[May 27, 2015 10:27:27 AM] [Session 14327152464743] SSID negotiation: Window negotiated to 64
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Authentication" to false
[May 27, 2015 10:27:27 AM] [Session 14327152464743] SSID negotiation: Authentication negotiated to false
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Processing unit received signal "F_CONNECT_CF", state is "I_WF_SSID"
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Session state: I_WF_SSID --> IDLESP
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting state machine Speaker State Machine
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Processing unit received signal "SYSTEM_IS_IDLE_SPEAKER", state is "IDLESP"
[May 27, 2015 10:27:27 AM] [Session 14327152464743] The remote partner has been identified as PartnerEclipse(O0055MYSERVERID)
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Statemachine "Session Connection State Machine" received signal "SSID", state is "I_WF_SSID"
[May 27, 2015 10:27:27 AM] [Session 14327152464743] SSID negotiation: Mode (own) negotiated to B
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Mode" to B
[May 27, 2015 10:27:27 AM] [Transmission 47] Set state from "preprocessed" to "in transfer"
[May 27, 2015 10:27:27 AM] [Transmission 47] Ensured existing target dir "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending"
[May 27, 2015 10:27:27 AM] [Transmission 47] Will move file from "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001" to "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001"
[May 27, 2015 10:27:27 AM] [Transmission 47] File move NOT performed, source file and target file are the same for this processing step
[May 27, 2015 10:27:27 AM] [Transmission 47] [Session 14327152464743] Outbound transmission started [ customer - PartnerEclipse ]
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Statemachine "Speaker State Machine" received signal "F_START_FILE_RQ_OUTBOUND", state is "IDLESP"
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Setting session var "Restart-pos" to 0
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Send command: SFID
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Send command:
o----------------------------------------------------------------------------------
| SFID Start File
o----------------------------------------------------------------------------------
| 0 | X(1) | SFIDCMD | SFID Command | 'H' | [48]
| 1 | X(26) | SFIDDSN | Virtual File Dataset Name | 'NOT-CATEGORIZED ' | [4e 4f 54 2d 43 41 54 45 47 4f 52 49 5a 45 44 20 20 20 20 20 20 20 20 20 20 20]
| 27 | X(3) | SFIDCDSV1 | Reserved | '' | [20 20 20]
| 30 | 9(8) | SFIDDATE | Virtual File Date Stamp | '20150527' | [32 30 31 35 30 35 32 37]
| 38 | 9(10) | SFIDTIME | Virtual File Time Stamp | '1027220001' | [31 30 32 37 32 32 30 30 30 31]
| 48 | X(8) | SFIDUSER | User Data | '' | [20 20 20 20 20 20 20 20]
| 56 | X(25) | SFIDDEST | Destination | 'O0055MYSERVERID ' | [4f 30 30 35 35 4d 59 53 45 52 56 45 52 49 44 20 20 20 20 20 20 20 20 20 20]
| 81 | X(25) | SFIDORIG | Originator | 'O2010CUSTOMER ' | [4f 32 30 31 30 43 55 53 54 4f 4d 45 52 20 20 20 20 20 20 20 20 20 20 20 20]
| 106 | X(1) | SFIDFMT | File Format | 'U' | [55]
| 107 | 9(5) | SFIDLRECL | Maximum Record Size | '00000' | [30 30 30 30 30]
| 112 | 9(13) | SFIDFSIZ | File Size, 1K Blocks | '0000000000001' | [30 30 30 30 30 30 30 30 30 30 30 30 31]
| 125 | 9(13) | SFIDOSIZ | Original File Size, 1K Blocks | '0000000000000' | [30 30 30 30 30 30 30 30 30 30 30 30 30]
| 138 | 9(17) | SFIDREST | Restart Position | '00000000000000000' | [30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30]
| 155 | 9(2) | SFIDSEC | Security Level | '00' | [30 30]
| 157 | 9(2) | SFIDCIPH | Cipher Suite Selection | '00' | [30 30]
| 159 | 9(1) | SFIDCOMP | File Compression Algorithm | '0' | [30]
| 160 | 9(1) | SFIDENV | File Enveloping Format | '0' | [30]
| 161 | X(1) | SFIDSIGN | Signed EERP Request | 'N' | [4e]
| 162 | 9(3) | SFIDDESCL | Virtual File Description Length | '181' | [31 38 31]
| 165 | T(n) | SFIDDESC | Virtual File Description | 'Thank you for exchanging messages with mendelson opensource OFTP2 1.0 build 31. Please download your free copy of mendelson opensource OFTP2 today at http://oftp2.mendelson-e-c.com.' | [54 68 61 6e 6b 20 79 6f 75 20 66 6f 72 20 65 78 63 68 61 6e 67 69 6e 67 20 6d 65 73 73 61 67 65 73 20 77 69 74 68 20 6d 65 6e 64 65 6c 73 6f 6e 20 6f 70 65 6e 73 6f 75 72 63 65 20 4f 46 54 50 32 20 31 2e 30 20 62 75 69 6c 64 20 33 31 2e 20 50 6c 65 61 73 65 20 64 6f 77 6e 6c 6f 61 64 20 79 6f 75 72 20 66 72 65 65 20 63 6f 70 79 20 6f 66 20 6d 65 6e 64 65 6c 73 6f 6e 20 6f 70 65 6e 73 6f 75 72 63 65 20 4f 46 54 50 32 20 74 6f 64 61 79 20 61 74 20 68 74 74 70 3a 2f 2f 6f 66 74 70 32 2e 6d 65 6e 64 65 6c 73 6f 6e 2d 65 2d 63 2e 63 6f 6d 2e]
o----------------------------------------------------------------------------------
[May 27, 2015 10:27:27 AM] [Session 14327152464743] Session state: IDLESP --> OPOP
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Received command SFPA
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Statemachine "Speaker State Machine" received signal "SFPA", state is "OPOP"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Received command
o-----------------------------------------------------
| SFPA Start File Positive Answer
o-----------------------------------------------------
| 0 | X(1) | SFPACMD | SFPA Command | '2' | [32]
| 1 | 9(17) | SFPAACNT | Answer Count | '00000000000000000' | [30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30]
o-----------------------------------------------------
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Processing unit received signal "F_START_FILE_CF_OUTBOUND", state is "OPO"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Session state: OPOP --> OPO
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Setting session var "Credit_S" to 64
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Statemachine "Speaker State Machine" received signal "F_DATA_RQ", state is "OPO"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Setting session var "Credit_S" to 63
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Processing unit received signal "F_DATA_CF", state is "OPO"
[May 27, 2015 10:27:28 AM] [Transmission 47] [Session 14327152464743] Data fully transmitted. Sent 946 bytes in 0.3s (3.3 kb/s)
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Session state: OPO --> OPO
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Send data exchange buffer, length: 963
[May 27, 2015 10:27:28 AM] [Transmission 47] [Session 14327152464743] Waiting for receipt acknowledgement (EERP/NERP)
[May 27, 2015 10:27:28 AM] [Transmission 47] Set state from "in transfer" to "transmitted"
[May 27, 2015 10:27:28 AM] [Transmission 47] Ensured existing target dir "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending"
[May 27, 2015 10:27:28 AM] [Transmission 47] Will move file from "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001" to "C:\mendelson\opensource\oftp2\messages\PartnerEclipse\outbox\pending\NOT-CATEGORIZED201505271027220001"
[May 27, 2015 10:27:28 AM] [Transmission 47] File move NOT performed, source file and target file are the same for this processing step
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Statemachine "Speaker State Machine" received signal "F_CLOSE_FILE_RQ_OUTBOUND", state is "OPO"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Session state: OPO --> CLOP
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Setting session var "Credit_S" to 0
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Send command:
o-----------------------------------------------------
| EFID End File
o-----------------------------------------------------
| 0 | X(1) | ESIDCMD | EFID Command | 'T' | [54]
| 1 | 9(17) | EFITRCNT | Record Count | '00000000000000000' | [30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30]
| 18 | 9(17) | EFIDUCNT | Unit Count | '00000000000000946' | [30 30 30 30 30 30 30 30 30 30 30 30 30 30 39 34 36]
o-----------------------------------------------------
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Send command: EFID
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Received command EFPA
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Received command
o--------------------------------------------------
| EFPA End File Positive Answer
o--------------------------------------------------
| 0 | X(1) | EFPACMD | EFPA Command | '4' | [34]
| 1 | X(1) | EFPACD | Change Direction Indicator | 'N' | [4e]
o--------------------------------------------------
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Statemachine "Speaker State Machine" received signal "EFPA", state is "CLOP"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Processing unit received signal "F_CLOSE_FILE_CF_OUTBOUND", state is "CLOP"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Session state: CLOP --> IDLESPCD
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Statemachine "Error and Abort State Machine" received signal "F_ABORT_IND", state is "IDLESPCD"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Send command:
o----------------------------------------------
| ESID End Session
o----------------------------------------------
| 0 | X(1) | ESIDCMD | ESID Command | 'F' | [46]
| 1 | 9(2) | ESIDREAS | Reason Code | '00' | [30 30]
| 3 | 9(3) | ESIDREASL | Reason Text Length | '000' | [30 30 30]
| 6 | T(n) | ESIDREAST | Reason Text | '' | []
| 6 | X(1) | ESIDCR | Carriage Return | '
' | [0d]
o----------------------------------------------
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Processing unit received signal "SYSTEM_IS_IDLE_SPEAKER", state is "IDLESPCD"
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Send command: ESID
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Session terminated [customer - PartnerEclipse] ("Normal session termination", internal code 0)
[May 27, 2015 10:27:28 AM] A processing problem occured. This could have several reasons, for further information please have a look at "C:\mendelson\opensource\oftp2\log\20150527\systemactivity.log".
[May 27, 2015 10:27:28 AM] [Session 14327152464743] java.lang.ArrayIndexOutOfBoundsException: 0 (Hexdump: 10 00 00 04)
[May 27, 2015 10:27:28 AM] [Session 14327152464743] Connection closed [customer - PartnerEclipse, /0.0.0.0:13305]. Established for 1.9s, 1552 bytes transfered
### systemactivity.log ###
[10:18:20 AM] mendelson opensource OFTP2 1.0 build 31: startup
[10:18:23 AM] DB Server: startup
[10:18:24 AM] DB Server: startup complete
[10:18:26 AM] mendelson opensource OFTP2 1.0 build 31: startup complete
[10:27:28 AM]
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.ArrayIndexOutOfBoundsException: 0 (Hexdump: 10 00 00 04)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:241)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at de.mendelson.comm.oftp2.server.codec.CommandDecoder.doDecode(CommandDecoder.java:88)
at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(CumulativeProtocolDecoder.java:176)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:233)
... 15 more
psilvao,
Please try setting up a 64bit VM, increase the heap to 4GB and setup the system maintenance process to delete transmissions to a point that you keep no more than 20k transmissions.
Regards