PDA

Visualizza la versione completa : [java] JScrollPane crea uno strano errore


rinosan_76
06-11-2002, 12:01
Ciao a tutti, ho usato un JEditorPane per fare una chat. Mi succede una cosa strana, mi da errori di esecuzione dopo che io scrollo troppo nell'area di testo. La JEditorPane è alta 3 righe, e se scrollo di un paio di righe mi da questo errore:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D340031
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:
at javax.swing.RepaintManager.addDirtyRegion(RepaintM anager.java:263)
- locked <03178B50> (a javax.swing.RepaintManager)
at javax.swing.JComponent.repaint(JComponent.java:432 0)
at javax.swing.JViewport.repaint(JViewport.java:1345)
at java.awt.Component.repaint(Component.java:2391)
at javax.swing.JComponent.reshape(JComponent.java:348 9)
at java.awt.Component.setBounds(Component.java:1644)
at java.awt.Component.move(Component.java:1521)
at java.awt.Component.setLocation(Component.java:1513 )
at javax.swing.JViewport.setViewPosition(JViewport.ja va:1060)
at javax.swing.plaf.basic.BasicScrollPaneUI$VSBChange Listener.stateChanged(BasicScrollPaneUI.java:475)
at javax.swing.DefaultBoundedRangeModel.fireStateChan ged(DefaultBoundedRangeModel.java:346)
at javax.swing.DefaultBoundedRangeModel.setRangePrope rties(DefaultBoundedRangeModel.java:283)
at javax.swing.DefaultBoundedRangeModel.setValue(Defa ultBoundedRangeModel.java:149)
at javax.swing.JScrollBar.setValue(JScrollBar.java:43 5)
at javax.swing.plaf.basic.BasicScrollBarUI.scrollByUn its(BasicScrollBarUI.java:830)
at javax.swing.plaf.basic.BasicScrollBarUI.scrollByUn it(BasicScrollBarUI.java:834)
at javax.swing.plaf.basic.BasicScrollBarUI$ScrollList ener.actionPerformed(BasicScrollBarUI.java:1130)
at javax.swing.Timer.fireActionPerformed(Timer.java:2 71)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 443)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:98)

Dynamic libraries:
0x7D240000 - 0x7D26D000 C:\WINDOWS\SYSTEM\DBGHELP.DLL

Local Time = Tue Nov 05 11:34:21 2002
Elapsed Time = 11
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b91 mixed mode)
#
--------------------------------------------------------------------

ne sapete qualcosa?

l.golinelli
06-11-2002, 12:16
Questo è un baco della JVM. Se sei sicuro di aver scritto del buon codice prova a reistallarla. io non riuscivo a connettermi ad un Database perchè mi dava un errore del genere. Dove aver finito le best@@@@@ ho reinstallato l'SDK completo ho ricompilato il progetto ed è andato tutto a posto! :gren:

rinosan_76
06-11-2002, 15:14
Proverò a fare come mi dici!!!
Grazie

Loading