This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Sep 9, 2008 12:24 PM by Vladimir Ikryanov  
lucist   1 posts since
Oct 30, 2007
Currently Being Moderated

Oct 30, 2007 11:39 PM

ExceptionInInitializerError-com.jniwrapper.win32.system.Kernel32.isUnicode

Hello,

 

I am able to use and load the jexplorer.jar and the Browser widget in my Swing application started from Eclipse.

However when I start it from command-line it fails

 

Caused by: java.lang.ExceptionInInitializerError

        at com.jniwrapper.win32.system.Kernel32.isUnicode(Kernel32.java:74)

        at com.jniwrapper.win32.FunctionName.(SourceFile:22)

        ... 42 more

 

 

 

I have a

run.bat which

 

java -classpath .\;lib\aopalliance-1.0.jar;a_long_list_of_jars_subdirectory_lib MyMainApp

 

In the long list of jars the jexplorer jars are there :

lib\comfyj-2.4.jar;lib\jexplorer-1.8.jar;lib\jniwrap-3.6.1.jar;lib\mshtml-1.0.jar;lib\winpack-3.6.jar

in alphabetical order

 

In the same directory as the run.bat I have the jniwrap.dll. It loads it,

I erased it and it complained with a specific error (kind of : could not load jniwrap.dll).

 

Any advice would be appreciated

Lucian

Vladimir Ikryanov TeamDev Ltd. 402 posts since
Apr 24, 2006
Currently Being Moderated
1. Oct 31, 2007 4:59 PM in response to: lucist
Re: ExceptionInInitializerError-com.jniwrapper.win32.system.Kernel32.isUnic

Hello,

 

Such error message usually indicates that the JNIWrapper native library couldnÂ’t be loaded. Please make sure you put the required license files (jniwrap.lic, comfyj.lic and jexplorer.lic) in the same folder where jniwrap.dll file is located. If it doesnÂ’t solve the issue, then please send me the full stack trace you receive.

 

Regards,

Vladimir

 

Message was edited by: Vladimir Ikryanov

smercier   1 posts since
Sep 5, 2008
Currently Being Moderated
2. Sep 5, 2008 4:26 PM in response to: Vladimir Ikryanov
Re: ExceptionInInitializerError-com.jniwrapper.win32.system.Kernel32.isUnic

 

Hello,

 

 

I'm working on a swing application using JExcel and all is ok when the application is started from Eclispe (RAD).

 

 

When the application is packaged with InstallAnywhere, we have exactly the same problem described by lucist.

 

 

If i remove the dll, the message is different and if i remove the licence files the message explicitly ask the removed files. Then I suppose that all files are found in the classpath but something is missing.

 

 

Here is my complete stacktrace :

 

 

CAUSE :java.lang.ExceptionInInitializerError

 

 

at com.jniwrapper.win32.system.Kernel32.isUnicode(Kernel32.java:74)

 

 

at com.jniwrapper.win32.FunctionName.<clinit>(FunctionName.java:27)

 

 

at com.jniwrapper.win32.MessageLoopThread.<clinit>(MessageLoopThread.java:27)

 

 

at com.jniwrapper.win32.jexcel.ui.JWorkbook.getOleMessageLoop(JWorkbook.java:297)

 

 

at com.jniwrapper.win32.jexcel.ui.JWorkbook.<init>(JWorkbook.java:185)

 

 

at com.jniwrapper.win32.jexcel.ui.JWorkbook.<init>(JWorkbook.java:171)

 

 

at com.tmme.tsm2.ui.jpanel.excel.ExcelPanel.fillKPIWorkbook(ExcelPanel.java:129)

 

 

at com.tmme.tsm2.ui.jpanel.excel.ExcelPanel.<init>(ExcelPanel.java:74)

 

 

at com.tmme.tsm2.report.KPIReport.fillReport(KPIReport.java:100)

 

 

at com.tmme.tsm2.report.KPIReport.showReport(KPIReport.java:123)

 

 

at com.tmme.tsm2.ui.jpanel.report.ReportingPanel$ReportAction.actionPerformed(ReportingPanel.java:180)

 

 

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

 

 

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

 

 

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

 

 

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

 

 

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

 

 

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

 

 

at java.awt.Component.processMouseEvent(Unknown Source)

 

 

at javax.swing.JComponent.processMouseEvent(Unknown Source)

 

 

at java.awt.Component.processEvent(Unknown Source)

 

 

at java.awt.Container.processEvent(Unknown Source)

 

 

at java.awt.Component.dispatchEventImpl(Unknown Source)

 

 

at java.awt.Container.dispatchEventImpl(Unknown Source)

 

 

at java.awt.Component.dispatchEvent(Unknown Source)

 

 

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

 

 

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

 

 

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

 

 

at java.awt.Container.dispatchEventImpl(Unknown Source)

 

 

at java.awt.Window.dispatchEventImpl(Unknown Source)

 

 

at java.awt.Component.dispatchEvent(Unknown Source)

 

 

at java.awt.EventQueue.dispatchEvent(Unknown Source)

 

 

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

 

 

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

 

 

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

 

 

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

 

 

at java.awt.EventDispatchThread.run(Unknown Source)

 

 

Caused by: com.jniwrapper.n

 

 

at com.jniwrapper.J.b(SourceFile:145)

 

 

at com.jniwrapper.J.<init>(SourceFile:32)

 

 

at com.jniwrapper.Parameter.<clinit>(SourceFile:22)

 

 

... 36 more

 

 

Could you help us to solve this problem?

 

 

Thanks in advance,

 

 

Sébastien.

 

 

 

 

Vladimir Ikryanov TeamDev Ltd. 402 posts since
Apr 24, 2006
Currently Being Moderated
3. Sep 9, 2008 12:24 PM in response to: smercier
Re: ExceptionInInitializerError-com.jniwrapper.win32.system.Kernel32.isUnic

Hello,

 

This issue was fixed in one of the latest update of JNIWrapper. Please try to use the latest update that you can download from our ftp: ftp://ftp.teamdev.com/updates/jniwrapper-3.6.1.902-all.zip

 

Regards,

Vladimir Ikryanov

More Like This

  • Retrieving data ...