I intend to use mstor in an application on a jboss plattform. The aplication should read a local mail stor on a unix plattform. When processing the read operation in an eclipse local environment as a stand alone application the read operation succeeds. When used in the server environment I got the following error message:
java.lang.VerifyError: (class: net/fortuna/mstor/data/MetaFolderImpl, method: removeMessage signature: (I)Lnet/fortuna/mstor/MetaMessage;) Incompatible argument to function
I found some hints about using -noverifier but this does not help.
Any help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Ben,
the server uses the Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
The local application which runs without any problem do use a 1.4.2 environment.
Kind regards
Markus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From the message it appears that somewhere some code is trying to call MetaFolderImpl.removeMessage(int), but passing a MetaMessage as the argument. I'm not exactly sure how that could happen, as I checked through past version of this class and it has has the same signature for quite a while.
If possible, you should try downloading the source distribution (mstor-0.9.7-src.zip) and try to build a JAR in your local Java environment. You can do this by running the "package" ant target. You will need to rename the "build.properties.sample" to "build.properties" and update the location of your JavaMail and Activation libs.
I have also recently added the option "target=1.4" to the "compile" ant target, so you want to try adding that as well if the initial build doesn't solve the problem.
regards,
ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I intend to use mstor in an application on a jboss plattform. The aplication should read a local mail stor on a unix plattform. When processing the read operation in an eclipse local environment as a stand alone application the read operation succeeds. When used in the server environment I got the following error message:
java.lang.VerifyError: (class: net/fortuna/mstor/data/MetaFolderImpl, method: removeMessage signature: (I)Lnet/fortuna/mstor/MetaMessage;) Incompatible argument to function
I found some hints about using -noverifier but this does not help.
Any help would be appreciated.
Hi Markus,
What Java version are you using on the server? If it's less than 1.4 that might be the cause (I've compiled mstor with Java 1.4 compatibility).
regards,
ben
Hi Ben,
the server uses the Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
The local application which runs without any problem do use a 1.4.2 environment.
Kind regards
Markus
Markus,
From the message it appears that somewhere some code is trying to call MetaFolderImpl.removeMessage(int), but passing a MetaMessage as the argument. I'm not exactly sure how that could happen, as I checked through past version of this class and it has has the same signature for quite a while.
If possible, you should try downloading the source distribution (mstor-0.9.7-src.zip) and try to build a JAR in your local Java environment. You can do this by running the "package" ant target. You will need to rename the "build.properties.sample" to "build.properties" and update the location of your JavaMail and Activation libs.
I have also recently added the option "target=1.4" to the "compile" ant target, so you want to try adding that as well if the initial build doesn't solve the problem.
regards,
ben