LibraryVersionMismatchException in JRE 1.7

51 views
Skip to first unread message

anon

unread,
Dec 12, 2012, 6:36:09 AM12/12/12
to jniwrapp...@teamdev.com
Hi,

I'm using JNIWrapper version 3.8.2, JDK 1.7 (64 bit) in Windows 7 (64bit). When my webstart application starts, I get a com.jniwrapper.LibraryVersionMismatchException error. Following is a portion of my console log:

=====================================================================================================================================================

Match: digest selected JREDesc: JREDesc[version 1.7.0_06+, heap=-1--1, args=-Xms128m -Xmx256m, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_10
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Java\jre7_32bit\bin\javaw.exe
    args is: null
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.4 found at C:\Java\jre7_32bit\
    enabled is: true
    registered is: true
    system is: true

    Match: ignoring maxHeap: -1
    Match: ignoring InitHeap: -1
    Match: digesting vmargs: -Xms128m -Xmx256m
    Match: digested vmargs: [JVMParameters: isSecure: true, args: -Xms128m]
    Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: -Xms128m]
    Match: digest LaunchDesc: http://localhost:8080/studio/studio.jnlp
    Match: digest properties: [-Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir, -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir, -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog, -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml, -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir, -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir, -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error]
    Match: JVM args: [JVMParameters: isSecure: true, args: -Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error]
    Match: digest LaunchDesc: http://localhost:8080/studio/plugin/vcpeditor.jnlp
    Match: digest properties: []
    Match: JVM args: [JVMParameters: isSecure: true, args: -Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error]
    Match: digest LaunchDesc: http://localhost:8080/studio/plugin/video-trunk-SNAPSHOT.jnlp
    Match: digest properties: []
    Match: JVM args: [JVMParameters: isSecure: true, args: -Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error]
    Match: endTraversal ..
    Match: JVM args final: -Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error
    Match: Running JREInfo Version    match: 1.7.0.10 == 1.7.0.10
     Match: Running JVM args match: have:<-Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error>  satisfy want:<-Xms128m -Djnlp.com.escenic.studio.cache.directory.windowsvista=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.linux=java.io.tmpdir -Djnlp.org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Djnlp.com.escenic.client.webservice.url=http://localhost:8080/webservice/index.xml -Djnlp.com.escenic.studio.cache.directory.windowsxp=java.io.tmpdir -Djnlp.com.escenic.studio.cache.directory.macosx=java.io.tmpdir -Djnlp.org.apache.commons.logging.simplelog.defaultlog=error>
    Match: beginTraversal
......
......
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/studio/studio/plugin/vcpeditor/lib/vcpeditor-studio-trunk-SNAPSHOT.jar
security: Istrusted: http://localhost:8080/studio/plugin/vcpeditor.jnlp true
security: JAVAWS AppPolicy Permission requested for: http://localhost:8080/studio/studio/plugin/vcpeditor/lib/vcpeditor-activex-binding-trunk-SNAPSHOT.jar
security: Istrusted: http://localhost:8080/studio/plugin/vcpeditor.jnlp true
Dec 12, 2012 11:14:37 AM com.escenic.video.studio.VideoPropertyEditorUI initVCPDialog
SEVERE: Error while creating vcp dialog: java.lang.ClassNotFoundException : com.jniwrapper.LibraryVersionMismatchException
Dec 12, 2012 11:14:37 AM com.escenic.video.studio.VideoPropertyEditorUI initLayout
WARNING: Could not intialize VCP Message:Error while creating vcp dialog: java.lang.ClassNotFoundException : com.jniwrapper.LibraryVersionMismatchException
Dec 12, 2012 11:14:37 AM com.escenic.video.studio.VideoPropertyEditorUI initLayout
WARNING: Could not intialize VCP Exception:java.lang.reflect.InvocationTargetException

=====================================================================================================================================================

Can you please tell me how to fix this problem?

Sergei Piletsky

unread,
Dec 12, 2012, 7:10:56 AM12/12/12
to anon, jniwrapp...@teamdev.com
Hi Anon,

According to the log the real cause of the exception is:


 SEVERE: Error while creating vcp dialog: java.lang.ClassNotFoundException : com.jniwrapper.LibraryVersionMismatchException

which means that Java could not find the required LibraryVersionMismatchException class in your application class path. In fact we have added this class in JNIWrapper 3.8.3: https://sites.google.com/a/teamdev.com/jniwrapper-support/updates/jniwrapper383releasenotes 

The possible explanation of the issue is that you included a new version of ComfyJ (or any other product that uses JNIWrapper) with an old version of JNIWrapper (3.8.2 in your case), where such class is not present.

The solution in this case is to include the proper version of JNIWrapper library (3.8.3 or higher) from the same distribution archive, or even better the new version of JNIWrapper 3.8.4: https://sites.google.com/a/teamdev.com/jniwrapper-support/download-latest-version

Please let me know if you have any further questions.

Sincerely,
Serge





--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To post to this group, send email to jniwrapp...@teamdev.com.
To unsubscribe from this group, send email to jniwrapper-for...@teamdev.com.
Visit this group at http://groups.google.com/a/teamdev.com/group/jniwrapper-forum/?hl=en.
For more options, visit https://groups.google.com/a/teamdev.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages