INFO: 24282683.1215596449256.JavaMail.det_webmethods@DEAPT074: Digital signature verified successful.
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
at java.util.Vector.elementAt(Unknown Source)
at javax.mail.Multipart.getBodyPart(Multipart.java:157)
at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:256)
at org.bouncycastle.mail.smime.SMIMESigned.(Unknown Source)
at de.mendelson.util.security.BCCryptoHelper.getDigestAlgOIDFromSignature(BCCryptoHelper.java:282)
at de.mendelson.comm.as2.message.AS2MessageParser.computeReceivedContentMIC(AS2MessageParser.java:255)
at de.mendelson.comm.as2.message.AS2MessageParser.createMessageFromRequest(AS2MessageParser.java:190)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.newMessageArrived(AS2ServerRemoteImpl.java:121)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.computeServerSite(AS2ServerRemoteImpl.java:253)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.execute(AS2ServerRemoteImpl.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
09-Jul-2008 10:40:50 de.mendelson.comm.as2.server.AS2ServerRemoteImpl computeServerSite
SEVERE: AS2ServerRemoteImpl: 1 >= 1
in this case m-e-c as2 is unable to parse the MIME structure, it looks for a MIME part where none exists. Could you please send me the message (dir _rawincoming), I will have a closer look at it.
we are currently integrating with a client that uses webmethods.
When they send us a message we see this in the logs
[10:40:50 AM] 24282683.1215596449256.JavaMail.det_webmethods@DEAPT074: Digital signature verified successful.
[10:40:50 AM] AS2ServerRemoteImpl: 1 >= 1
We also see the following exception in the logs.
INFO: 24282683.1215596449256.JavaMail.det_webmethods@DEAPT074: Digital signature verified successful.
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
at java.util.Vector.elementAt(Unknown Source)
at javax.mail.Multipart.getBodyPart(Multipart.java:157)
at javax.mail.internet.MimeMultipart.getBodyPart(MimeMultipart.java:256)
at org.bouncycastle.mail.smime.SMIMESigned.(Unknown Source)
at de.mendelson.util.security.BCCryptoHelper.getDigestAlgOIDFromSignature(BCCryptoHelper.java:282)
at de.mendelson.comm.as2.message.AS2MessageParser.computeReceivedContentMIC(AS2MessageParser.java:255)
at de.mendelson.comm.as2.message.AS2MessageParser.createMessageFromRequest(AS2MessageParser.java:190)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.newMessageArrived(AS2ServerRemoteImpl.java:121)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.computeServerSite(AS2ServerRemoteImpl.java:253)
at de.mendelson.comm.as2.server.AS2ServerRemoteImpl.execute(AS2ServerRemoteImpl.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
09-Jul-2008 10:40:50 de.mendelson.comm.as2.server.AS2ServerRemoteImpl computeServerSite
SEVERE: AS2ServerRemoteImpl: 1 >= 1