IBM Support

Application Client for multithreaded application fails with a NullPointerException error in BundleLoader

Troubleshooting


Problem

When launching an Application Client configuration from IBM® Rational® Application Developer or IBM Rational Software Architect, targeting IBM WebSphere® Application Server v. 6.1 or 7, you may get a NullPointerException in an OSGI BundleLoader method, even if the same Application Client can be launched succesfully using the launchClient.bat batch file provided by WebSphere Application Server. This only occurs when the Application Client launches a multithreaded application, and typically happens if you are invoking a framework such as JUnit or Swing.

Symptom

When launching an Application Client configuration from Rational Application Developer or Rational Software Architect, targeting WebSphere Application Server v. 6.1 or 7, you will see errors like the following in the Console:

WSCL0014I: Invoking the Application Client class com.ibm.support.Main
java.lang.NullPointerException
at org.eclipse.osgi.framework.internal.core.BundleLoader.findDynamicSource(BundleLoader.java:874)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:623)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at com.ibm.support.Main.run(Main.java:18)

[{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Application Server Tooling (AST)","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7;7.5","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Server Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Server Tooling","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
Rational Application Developer for WebSphere Software

Software version:
7.0, 7.0.0.1, 7.0.0.2, 7.0.0.3, 7.0.0.4, 7.0.0.5, 7.0.0.6, 7.0.0.7, 7.5

Operating system(s):
Windows, Linux

Document number:
366541

Modified date:
10 September 2020

UID

swg21328339

Manage My Notification Subscriptions