APAR status
Closed as program error.
Error description
In the case where an attachment mime type is used that isn't
explictly supported by JAX-RPC, the parameter should be mapped
to a javax.activation.DataHandler instead of a byte[].
If the parameter type in the SEI and the implementation class
is changed to DataHandler, this will cause a problem
at application startup. The other change that needs to be made
is to update the JAX-RPC mapping metadata file.
Sample error messages for this problem:
[7/26/04 13:22:17:972 EDT] 4d0a8f0a InternalExcep F
com.ibm.ws.webservices.engine.InternalException WSWS3227E:
Error: Exception:
[7/26/04 13:22:18:012 EDT] 4d0a8f0a InternalExcep F
com.ibm.ws.webservices.engine.InternalException TRAS0014I: The
following exception was logged java.lang.Exception: WSWS3034E:
Error: The OperationDesc for createDocument was not matched to a
method of com.mytest.MyBase. Debug:name:
services/DocumentBase
Local fix
Edit the JAX-RPC mapping file. Inside of the WEB-INF
directory for the web service application, there should be a
file with a name similar to MyAppName_mapping.xml. Within that
file, you have to go down to the section where the mapping for
the byte[] is specified for the "content" element. Here, the
following change needs to be made:
old: <param-type>byte[]</param-type>
new: <param-type>javax.activation.DataHandler</param-type>
This will solve the problem that is created when the web
services engine is initializing itself and tries to map the
wsdl operations to the appropriate method in the impl class.
Once this change is made, the application should start normally.
Problem summary
****************************************************************
* USERS AFFECTED: Anyone using WSDL2Java *
****************************************************************
* PROBLEM DESCRIPTION: Unknown MIME types should be mapped to *
* javax.activation.DataHandler *
****************************************************************
* RECOMMENDATION: *
****************************************************************
According to JAX-RPC, unknown or unsupported MIME types should
be mapped to javax.activation.DataHandler.
Problem conclusion
WSDL2Java has been fix so that when a MIME type in the WSDL
that is not known or supported is detected, the parameter
will be mapped to javax.activation.DataHandler.
Temporary fix Comments
APAR information |
APAR number |
PQ91993 |
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 |
2004-07-26 |
Closed date |
2004-08-23 |
Last modified date |
2004-08-23 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|