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)
Log InLog in to view more of this document
Was this topic helpful?
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