NPE in FX code

Phil Race philip.race at oracle.com
Mon Nov 26 10:37:32 PST 2012


I am fairly certain this is 
http://javafx-jira.kenai.com/browse/RT-23826: ignored NPE loading jre 
font into font factory tables
which is fixed in the FX8 release.

-phil.

On 11/26/2012 10:23 AM, Werner Lehmann wrote:
> Hi,
>
> using an Eclipse exception breakpoint on NullPointerException I am 
> getting a lot of internal NPE. They are catched somewhere and I am 
> seeing them in the debugger only. It is not a big problem because I 
> can simply filter everything in com.sun.* and javafx.* (and that's 
> what I have to do).
>
> Question is, should this be happening in the first place? See below 
> for an example of what I am getting right now on FX 2.2.2.
>
> Rgds
> Werner
>
>> Thread [JavaFX Application Thread] (Suspended (exception 
>> NullPointerException))
>>     T2KFontFactory.addToMaps(T2KFontFile) line: 1506
>>     T2KFontFactory.populateFontFileNameMapGeneric(String) line: 1548
>>     T2KFontFactory$5.run() line: 1433
>>     T2KFontFactory$5.run() line: 1431
>>     AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: 
>> not available [native method]
>>     T2KFontFactory.getFullNameToFileMap() line: 1430
>>     T2KFontFactory.getFontFamilyNames() line: 1063
>>     WCFontImpl.getFont(String, boolean, boolean, float) line: 37
>>     FXGraphicsManager.getWCFont(String, boolean, boolean, float) 
>> line: 56
>>     URLLoader.twkDidFail(int, String, String, long) line: not 
>> available [native method]
>>     URLLoader.access$1400(int, String, String, long) line: 42
>>     URLLoader$7.run() line: 669
>>     WinApplication._runLoop(String[], Launchable) line: not available 
>> [native method]
>>     WinApplication.access$100(WinApplication, String[], Launchable) 
>> line: 29
>>     WinApplication$2$1.run() line: 67
>>     Thread.run() line: not available
>
>> Thread [AWT-EventQueue-0] (Suspended (exception NullPointerException))
>>     SystemProperties.setVersions() line: 81
>>     SystemProperties.access$200() line: 31
>>     SystemProperties$1.run() line: 66
>>     AccessController.doPrivileged(PrivilegedAction<T>) line: not 
>> available [native method]
>>     SystemProperties.<clinit>() line: 62
>>     PlatformImpl.runLater(Runnable, boolean) line: 159
>>     PlatformImpl.runLater(Runnable) line: 148
>>     Platform.runLater(Runnable) line: 52
>>     MintSwingLoginScreen.<init>() line: 39
>>     MintWebAssistantApplication.<init>() line: 100
>>     MintWebAssistantApplication.<clinit>() line: 79
>>     MintWebAssistantStart$1.startApplication() line: 133
>>     MintWebAssistantStart$1.run() line: 53
>>     InvocationEvent.dispatch() line: not available
>>     EventQueue.dispatchEventImpl(AWTEvent, Object) line: not available
>>     EventQueue.access$000(EventQueue, AWTEvent, Object) line: not 
>> available
>>     EventQueue$1.run() line: not available
>>     EventQueue$1.run() line: not available
>>     AccessController.doPrivileged(PrivilegedAction<T>, 
>> AccessControlContext) line: not available [native method]
>>     AccessControlContext$1.doIntersectionPrivilege(PrivilegedAction<T>, 
>> AccessControlContext, AccessControlContext) line: not available
>>     EventQueue.dispatchEvent(AWTEvent) line: not available
>>     EventDispatchThread.pumpOneEventForFilters(int) line: not available
>>     EventDispatchThread.pumpEventsForFilter(int, Conditional, 
>> EventFilter) line: not available
>>     EventDispatchThread.pumpEventsForHierarchy(int, Conditional, 
>> Component) line: not available
>>     EventDispatchThread.pumpEvents(int, Conditional) line: not available
>>     EventDispatchThread.pumpEvents(Conditional) line: not available
>>     EventDispatchThread.run() line: not available
>
>> Thread [JavaFX Application Thread] (Suspended (exception 
>> NullPointerException))
>>     PropertyHelper$1.run() line: 41
>>     PropertyHelper$1.run() line: 37
>>     AccessController.doPrivileged(PrivilegedAction<T>) line: not 
>> available [native method]
>>     PropertyHelper.getBooleanProperty(String) line: 36
>>     Parent.<clinit>() line: 88
>>     MintSwingLoginScreen$1.run() line: 43
>>     PlatformImpl$4.run() line: 173
>>     WinApplication._runLoop(String[], Launchable) line: not available 
>> [native method]
>>     WinApplication.access$100(WinApplication, String[], Launchable) 
>> line: 29
>>     WinApplication$2$1.run() line: 67
>>     Thread.run() line: not available
>
>> Thread [JavaFX Application Thread] (Suspended (exception 
>> NullPointerException))
>>     SelectBinding$SelectBindingHelper.getObservableValue() line: 422
>>     SelectBinding$SelectBindingHelper.access$200(SelectBinding$SelectBindingHelper) 
>> line: 372
>>     SelectBinding$AsDouble.computeValue() line: 171
>>     SelectBinding$AsDouble(DoubleBinding).get() line: 202
>>     SelectBinding$AsDouble(DoubleExpression).getValue() line: 68
>>     SelectBinding$AsDouble(DoubleBinding).getValue() line: 111
>>     ExpressionHelper<T>.addListener(ExpressionHelper<T>, 
>> ObservableValue<T>, InvalidationListener) line: 73
>>     SelectBinding$AsDouble(DoubleBinding).addListener(InvalidationListener) 
>> line: 121
>>     Region$7(DoublePropertyBase).bind(ObservableValue<Number>) line: 202
>>     MintApplicationBar.initialize(URL, ResourceBundle) line: 153
>>     FXMLLoader.load(InputStream) line: 2152
>>     MintFXUtils.loadFXML(FXMLLoader, URL) line: 154
>>     MintFXUtils.initializeCustomControl(Node, Class<Node>) line: 138
>>     MintFXUtils.initializeCustomControl(Node) line: 118
>>     MintApplicationBar.<init>() line: 147
>>     MintSwingApplicationBar$1.run() line: 59
>>     PlatformImpl$4.run() line: 173
>>     WinApplication._runLoop(String[], Launchable) line: not available 
>> [native method]
>>     WinApplication.access$100(WinApplication, String[], Launchable) 
>> line: 29
>>     WinApplication$2$1.run() line: 67
>>     Thread.run() line: not available
>



More information about the openjfx-dev mailing list