#46 JWebBrowser cause VM Problem


Hi Christopher,

I tested the JWebBrowser for displaying a pdf document, erverything works fine. Very nice solution, but when I close the frame
I get the following error most of the time. Open a pdf document with the programm, scroll or search and close it, over the ide, than you get the error.

I included the following jars.

The console error:

NativeSwing[1]: #
NativeSwing[1]: # A fatal error has been detected by the Java Runtime Environment:
NativeSwing[1]: #
NativeSwing[1]: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d99c0a5, pid=4148, tid=5344
NativeSwing[1]: #
NativeSwing[1]: # JRE version: 6.0_24-b07
NativeSwing[1]: # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing windows-x86 )
NativeSwing[1]: # Problematic frame:
NativeSwing[1]: # V [jvm.dll+0xfc0a5]
NativeSwing[1]: #
NativeSwing[1]: # An error report file with more information is saved as:
NativeSwing[1]: # C:\workspace\NativeSwingTest\hs_err_pid4148.log
NativeSwing[1]: #
NativeSwing[1]: # If you would like to submit a bug report, please visit:
NativeSwing[1]: # http://java.sun.com/webapps/bugreport/crash.jsp
NativeSwing[1]: #
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248)
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:440)
at chrriis.dj.nativeswing.swtimpl.core.OutProcessSocketsMessagingInterface.readMessageFromChannel(OutProcessSocketsMessagingInterface.java:116)
at chrriis.dj.nativeswing.swtimpl.core.MessagingInterface$2.run(MessagingInterface.java:388)

The application and errlog, you can find in the attachment.

Thanks in advance for supporting




  • Sven Blendien

    Sven Blendien - 2011-08-05

    Application and Log

  • Christopher Deckers

    Hi Sven,

    I use a recent 1.0.2 DJNativeSwing version, 32bit SWT 3.7M5, Adobe Reader 9.4.5 (which I guess is the plugin that renders the PDF), Internet Explorer 9 on a Win 7 computer. I could not reproduce the error.

    It is likely to be a problem at that native level either in IE or in the PDF plugin and I doubt there is anything I can do. All I can suggest is to try with different versions.

    Generally speaking, there are no guarantees that on target computers there is a plugin that renders the PDF files. It is also possible that the file opens externally to the browser.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks