#2 java.lang.ArrayIndexOutOfBoundsException: Generated Randomly

closed
nobody
None
5
2014-08-12
2011-06-16
No

We have been using the JWebrowser to capture web pages for some time now and have had no problems however several of our users are now complaining that there images are mostly blacked out after being attached to a client in our system. After some debugging on the users machine I see that when this error occurs in nativeComponent.paintComponent(image); Stack trace is below. Again this is not happening with the majority of the users but we are a bit stumped by this one.
Thanks,

Stack Trace
java.lang.ArrayIndexOutOfBoundsException: 3072
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeComponent.paintComponent
(SWTNativeComponent.java:1570)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeComponent.paintComponent
(SWTNativeComponent.java:1466)
at com.tyler.utils.web.dashBrowser$saveImages.save(dashBrowser.java:342)

    at com.tyler.utils.web.dashBrowser$ExportListener.propertyChange(dashBro

wser.java:277)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.awt.Component.firePropertyChange(Unknown Source)
at com.tyler.utils.web.BrowserExportToolBar.FireSave(BrowserExportToolBa
r.java:49)
at com.tyler.utils.web.BrowserExportToolBar.access$0(BrowserExportToolBa
r.java:48)
at com.tyler.utils.web.BrowserExportToolBar$1.mouseClicked(BrowserExport
ToolBar.java:64)
at java.awt.AWTEventMulticaster.mouseClicked(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.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
NativeSwing[1]: java.net.SocketException: Software caused connection abort: sock
et write error
NativeSwing[1]: at java.net.SocketOutputStream.socketWrite0(Native Metho
d)
NativeSwing[1]: at java.net.SocketOutputStream.socketWrite(Unknown Sourc
e)
NativeSwing[1]: at java.net.SocketOutputStream.write(Unknown Source)
NativeSwing[1]: at java.io.BufferedOutputStream.flushBuffer(Unknown Sour
ce)
NativeSwing[1]: at java.io.BufferedOutputStream.write(Unknown Source)
NativeSwing[1]: at java.io.FilterOutputStream.write(Unknown Source)
NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.core.SWTNativeComponen
t$CMN_getComponentImage.sendImageData(SWTNativeComponent.java:1430)
NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.core.SWTNativeComponen
t$CMN_getComponentImage.access$1(SWTNativeComponent.java:1390)
NativeSwing[1]: at chrriis.dj.nativeswing.swtimpl.core.SWTNativeComponen
t$CMN_getComponentImage$3.run(SWTNativeComponent.java:1395)

Discussion

  • Christopher Deckers

    Hi Corey,

    Which version of DJ NativeSwing are you using?

    Cheers,
    -Christopher

     
  • Corey L Stilton

    Corey L Stilton - 2011-06-20

    We where originally using version 0.9.9 but i have tried version 1.0.1 as well on the affected machines.

     
  • Christopher Deckers

    I looked more closely at the code and I found something that may explain the issue.

    Could you try the 1.0.2 preview "DJNativeSwing-SWT-1-0-2-20110620.zip" and let me know if you have any issue with it?

    Cheers,
    -Christopher

     
  • Corey L Stilton

    Corey L Stilton - 2011-06-21

    Unfortunantly the 1.0.2 release did not solve the problem. Still receiving the error and getting partial images. Also since this is only happening on some machines is there anything outsite of native swing that could be causing this?

     
  • Christopher Deckers

    I made another small modification that may improve the situation. Could you try the "DJNativeSwing-SWT-1-0-2-20110622.zip" version that I just uploaded?
    If you get the issue again, could you send me the trace for that new version?

    Cheers,
    -Christopher

     
  • Corey L Stilton

    Corey L Stilton - 2011-06-22

    Thanks, Christopher I will push this out to the affected machines and I will let you know the results.

     
  • Nobody/Anonymous

    I meant to post this yesterday but I am happy to say the last release fixed the problem and everything is now working great. Thanks for all of your help Christopher!

     
  • Christopher Deckers

    Thanks for having reported the issue, spending time testing the fix and reporting the results!

    Cheers,
    -Christopher

     

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

Sign up for the SourceForge newsletter:





No, thanks