PQ76107: Problem with J2EE client samples launchAPI and classLoader

 Fixes are available

5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for AIX
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for HP-UX
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Linux
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for AIX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for HP-UX
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Solaris
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Windows
PQ76107; 5.0.2: Problem with J2EE client samples launchAPI and classLoader
5.1.1.18: WebSphere Application Server V5.1.1 Cumulative Fix 18 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Linux
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Solaris
5.1.1.17: WebSphere Application Server V5.1.1 Cumulative Fix 17 for Windows
5.0.2.7: WebSphere Application Server Express 5.0.2 Cumulative Fix 7
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Solaris
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Windows
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Solaris
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Windows
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for AIX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for AIX
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for Windows
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Windows
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Solaris
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for AIX
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for Linux
5.0.2.12: WebSphere Application Server 5.0.2 Cumulative Fix 12
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for HP-UX
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for AIX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Windows
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for HP-UX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for AIX
5.0.2.17: WebSphere Application Server 5.0.2 Cumulative Fix 17 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for HP-UX
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Linux
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for HP-UX
5.1.1.9: WebSphere Application Server V5.1.1 Cumulative Fix 9 for Linux
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Solaris
5.0.2.8: WebSphere Application Server V5.0.2 Cumulative Fix 8
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Windows
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for AIX
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Windows
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Solaris
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Linux
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Windows
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for HP-UX
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for AIX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Windows
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Solaris
5.0.2.14: WebSphere Application Server 5.0.2 Cumulative Fix 14 for Windows
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for AIX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Linux
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for HP-UX
5.1.1.12: WebSphere Application Server V5.1.1 Cumulative Fix 12 for Solaris
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for AIX
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Windows
5.0.2.13: WebSphere Application Server 5.0.2 Cumulative Fix 13
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for HP-UX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Solaris
5.1.1.13: WebSphere Application Server V5.1.1 Cumulative Fix 13 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for AIX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Linux
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for Windows
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Windows
5.0.2.5: WebSphere Application Server 5.0.2 Cumulative Fix 5
5.0.2.18: WebSphere Application Server 5.0.2 Cumulative Fix 18 for Linux
5.1.1.11: WebSphere Application Server V5.1.1 Cumulative Fix 11 for HP-UX
5.1.1.14: WebSphere Application Server V5.1.1 Cumulative Fix 14 for HP-UX
5.0.2.15: WebSphere Application Server 5.0.2 Cumulative Fix 15 for HP-UX
5.0.2.16: WebSphere Application Server 5.0.2 Cumulative Fix 16 for Linux
5.1.1.10: WebSphere Application Server V5.1.1 Cumulative Fix 10 for Solaris
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for AIX
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for HP-UX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for HP-UX
5.1.1.16: WebSphere Application Server V5.1.1 Cumulative Fix 16 for Linux
5.1.1.15: WebSphere Application Server V5.1.1 Cumulative Fix 15 for Linux
5.1.1.19: WebSphere Application Server V5.1.1 Cumulative Fix 19 for HP-UX



APAR status
Closed as program error.

Error description
When running the classLoader sample, a ResourceLoadException
is received.
When running the classLoader sample, the application output
looks like:
--------------------------------------------------------------
Running ClassLoaderClientMain from the
J2EEAppClientClassLoader.ear file
--------------------------------------------------------------
IBM WebSphere Application Server, Release 5.0
J2EE Application Client Tool
Copyright IBM Corp., 1997-2002
WSCL0012I: Processing command line arguments.
WSCL0013I: Initializing the J2EE Application Client Environment.
WSCL0100E: Exception received: com.ibm.etools.archive.exception.
ArchiveWrappedException
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException:
IWAE0007E Could not load resource
"META-INF/ibm-application-client-bnd.xmi" in archive
"J2EEAppClientClassLoaderClient.jar"
Stack trace of nested exception:
java.lang.NullPointerException
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  getDDResourceURIIfProxy(InternalModuleHelper.java:60)
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  getDDResourceIfProxy(InternalModuleHelper.java:64)
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  appClientBindingsLoaded(InternalModuleHelper.java:146)
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  fixupBndOrExtRootsIfNecessary(InternalModuleHelper.java:44)
   ... more
When running the launchAPI sample, the application output looks
like:
--------------------------------------------------------------
Running LaunchAPIClientMain from the LaunchAPI.ear file
using launch API
--------------------------------------------------------------
IBM WebSphere Application Server, Release 5.0
J2EE Application Client Tool
Copyright IBM Corp., 1997-2002
WSCL0013I: Initializing the J2EE Application Client Environment.
launch() failed.  See stack trace for details:
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke
  (NativeMethodAccessorImpl.java:79)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:41)
 at java.lang.reflect.Method.invoke(Method.java:371)
 at com.ibm.websphere.samples.j2eeappclients.launchapi.
  LaunchAPIMain.main(LaunchAPIMain.java:83)
Caused by: com.ibm.websphere.client.applicationclient.
ClientContainerException:
com.ibm.etools.archive.exception.ArchiveWrappedException
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException:
IWAE0007E Could not load resource
"META-INF/ibm-application-client-bnd.xmi" in archive
"LaunchAPIClient.jar"
Stack trace of nested exception:
java.lang.NullPointerException
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  getDDResourceURIIfProxy(InternalModuleHelper.java:60)
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  getDDResourceIfProxy(InternalModuleHelper.java:64)
 at com.ibm.etools.archive.impl.InternalModuleHelper.
  appClientBindingsLoaded(InternalModuleHelper.java:146)
        ... more
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server developers      *
*                 using the samples classLoader or launchAPI   *
*                 from the Application Clients install.        *
****************************************************************
* PROBLEM DESCRIPTION: When running the classLoader sample,    *
*                      an ArchiveWrappedException is           *
*                      received.                               *
*                      When running the launchAPI sample,      *
*                      an InvocationTargetException is         *
*                      received, caused by an                  *
*                      ArchiveWrappedException.                *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When running the classLoader sample, the application output
looks like:
--------------------------------------
Running ClassLoaderClientMain from the
J2EEAppClientClassLoader.ear file
--------------------------------------
IBM WebSphere Application Server, Release 5.0
J2EE Application Client Tool
Copyright IBM Corp., 1997-2002
WSCL0012I: Processing command line arguments.
WSCL0013I: Initializing the J2EE Application Client Environment.
WSCL0100E: Exception received: com.ibm.etools.archive.exception.
ArchiveWrappedException
Stack trace of nested exception:
com.ibm.etools.archive.exception.
ResourceLoadException: IWAE0007E Could not load resource
"META-INF/ibm-application-client-bnd.xmi" in archive
"J2EEAppClientClassLoaderClient.jar"
Stack trace of nested exception:
java.lang.NullPointerException
   at com.ibm.etools.archive.impl.InternalModuleHelper.
getDDResourceURIIfProxy(InternalModuleHelper.java:60)
   ... more

When running the launchAPI sample, the application output looks
like:
-------------------------------------------------------
Running LaunchAPIClientMain from the LaunchAPI.ear file
using launch API
-------------------------------------------------------

IBM WebSphere Application Server, Release 5.0
J2EE Application Client Tool
Copyright IBM Corp., 1997-2002
WSCL0013I: Initializing the J2EE Application Client Environment.
launch() failed.  See stack trace for details:
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:79)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:41)
   at java.lang.reflect.Method.invoke(Method.java:371)
   at com.ibm.websphere.samples.j2eeappclients.launchapi.
 LaunchAPIMain.main(LaunchAPIMain.java:83)
Caused by: com.ibm.websphere.client.applicationclient.
ClientContainerException:
com.ibm.etools.archive.exception.ArchiveWrappedException
Stack trace of nested exception:
com.ibm.etools.archive.exception.ResourceLoadException:
IWAE0007E Could not load resource
"META-INF/ibm-application-client-bnd.xmi"
in archive "LaunchAPIClient.jar"
Stack trace of nested exception:
java.lang.NullPointerException
   at com.ibm.etools.archive.impl.InternalModuleHelper.
getDDResourceURIIfProxy
(InternalModuleHelper.java:60)
... more
Problem conclusion
The file meta-inf/ibm-application-client-bnd.xmi in the
J2EEAppClientClassLoaderClient.jar file in the
samples/lib/J2EEAppClients/J2EEAppClientClassLoader.earfile is
missing the following line :

<applicationClient href="META-INF/application-
client.xml#Application-client_ID"/>

The file meta-inf/ibm-application-client-bnd.xmi in the
LaunchAPIClient.jar file in the
samples/lib/J2EEAppClients/LaunchAPI.ear file is missing the
following line:

<applicationClient href="META-INF/application-
client.xml#Application-client_ID"/>

Either apply the fix for PQ76107 or complete the following
steps:

1. Add line <applicationClient href="META-INF/application-
client.xml#Application-client_ID"/> before the line
</clientbnd:ApplicationClientBinding> in the file
samples\src\J2EEAppClients\ClassLoader\ClassLoaderClient\
META-INF\ibm-application-client-bnd.xmi.
2. Add line <applicationClient href="META-INF/application-
client.xml#Application-client_ID"/> before the line
</clientbnd:ApplicationClientBinding> in the file
samples\src\J2EEAppClients\LaunchAPI\LaunchAPIClient\
META-INF\ibm-application-client-bnd.xmi.
3. Rebuild these samples by following the instructions in the
Application Client Samples Gallery (see the section
Client Technology Samples -> J2EE application client ->
Build It Yourself).
Temporary fix Comments
APAR information
APAR number PQ76107
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00A
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-07-08
Closed date 2003-07-16
Last modified date 2003-07-16

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
CLIENT          

Publications Referenced

Fix information

Applicable component levels
R003 PSN    UP
R00A PSY    UP
R00H PSN    UP
R00I PSY    UP
R00P PSN    UP
R00S PSY    UP
R00W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PQ76107
IBM Group: Software Group
Modified date: Jul 16, 2003