swing - Java Runtime Exception -


When I run my application, I receive the following error:

  Exceptions to the thread "Adbluti $ FlowStrategy.layoutRow (FlowView.java:546) javax.swing.text.FlowView on javax.swing.text.FlowView $ FlowStrategy.layout on javax (FlowView.java:460) on -EventQueue-0" java.lang .NullPointerException .swing.text.FlowView.layout on javax.swing.text.BoxView.setSize (BoxView.java:380) on javax.swing.text.BoxView.updateChildSizes (FlowView.java:184) (BoxView.java:349 ) on javax.swing.text.BoxView.setSpanOnAxis javax.swing.text.BoxView.layout (BoxView.java:691) on javax.swing.text.BoxView.setSize (BoxView.java:331) (BoxView.java: 380) javax.swing.text.DefaultCaret.repaintNewCaret at javax.swing.plaf.basic.BasicTextUI $ RootView.setSize (BasicTex tUI.java:1702) on javax.swing.plaf.basic.BasicTextUI.modelToView (BasicTextUI.java:1034) (DefaultCaret.java:1291) $ 1.run (DefaultCaret.java on javax.swing.text.Default: 1270) java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:209) on java.awt.EventQueue.dispatchEvent (EventQueue.java:597) on java.awt.EventDispatchThread.pumpOneEventForFilters (on EventDispatchThread.java:269) Java On .awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy (Event DispatchThread.java:174) on java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:169) at java.awt. EventDispatchThread.pumpEvents (EventDispatchThread.java:161) java.awt.EventDispatchThread.run (EventDispatchThread.java:122) error as  

Do not mention any of my classes, I What is the reason for knowing how it will happen?

If I try: Public Zero NotifiedMatages (String Message) {...} The error goes away (no).

Edit: After further testing it shows that the above error also arises.

But if I try: public void notifyC HatMessage (object message) {...} is an error report.

Please advise.

Edit:

  Public Zero notification message (string message) {AppMessage appMessage = New AppMessage (AppMessage.Target.Chat, Message); SetChanged (); NotifyObservers (appMessage); }  

App message:

  SerialJobile to apply a public-class application {/ ** * Message header for target: Game, Chat * / Public nem target {game, chat} / ** * aims * / public target target; / ** * Message catches the message * / public message; / ** * Using parameter data * @ Ultimate Goal * @ Param Message * / Public App Message (Target Target, Object Message) {this.target = target; This.message = Message; }}  

Edit: Even with the error report the program is running and I can not see the lack of performance. Running error is making the problem of localization more complicated by the problem.

Edit: When I run it via Debbger in Netbeen: Debugger stopped incompatible source code.

Edit: Cross Thread GUI Update is being thrown due to the exception being thrown and invoke the inquiry of Endwight.

Solution:

call javax.swing.text.flowView $ FlowStrategy.layoutRow (FlowView.java less46) is trying to process something that is NULL . Looking at your signature, only one thing which can be NULL FlowView fv because int preferences can not be NULL . So without the code to run and without debugging, I would say that nothing is setting up flovy or setting it to NULL .


Comments