JAXB 2.0 Marshaling Exception
Hello,
I ran into an error when trying marshal a java class. NullPointerException is caught when this line of code is executed. I previously used XJC to generate the Java classes including ObjectFactory.java in textjaxb.student package.
JAXBContext jaxbContext = JAXBContext.newInstance("testjaxb.student");After searching for solution, I tried to use different method for loading ObjectFactory class into .netInstance(...);. I tried using thread/context classloader, testjaxb.student.ObjectFactory.class as parameter. But the problem still persist. Any suggestion will be helpful.
The stacktrace shows the following:
Exception in thread "main" java.lang.NullPointerException
at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
at java.util.AbstractList$Itr.hasNext(AbstractList.java:416)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:63)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:232)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:201)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:352)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:350)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:349)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:215)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)Thank you very much.
T-ra
I had the same problem and resolved it by removing the elementFormDefault="qualified" form the schema tag.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.calpers.ca.gov/soa/2006-12-21/CommonData.xsd"
targetNamespace="http://www.calpers.ca.gov/soa/2006-12-21/CommonData.xsd"
elementFormDefault="qualified">
<xs:element name="commonData" type="tns:CommonDataType"/>
<xs:complexType name="CommonDataType">
<xs:sequence>
<xs:element name="defaultPayloadData" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Similar Messages
-
Complex types with single array type element, marshaling exception
For our JAXRPC web service, we have a complex type, as follows:
<xs:complexType name = "SomeFault">
<xs:sequence>
<xs:element name = "errorMessages" type="some:ErrorMessageWSType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name = "ErrorMessageWSType">
<xs:restriction base = "xs:NMTOKEN">
<xs:enumeration value = "INVALID_1"/>
<xs:enumeration value = "INVALID_2"/>
<xs:enumeration value = "INVALID_3"/>
</xs:restriction>
</xs:simpleType>
We are running into Marshaling exceptions on the server side when the response/fault complex type has a single array type field.
weblogic.wsee.codec.CodecException: Failed to encode
com.bea.xml.XmlException: failed to find a suitable binding type for use in marshalling object "[Lnamespace.type.ErrorMessageWSType;@693767e9". using schema type: t=SomeFault@http://namespace/SOME/v1 java type:namespace.type.ErrorMessageWSType[]
If I change SomeFault, by adding another element, the error goes away.
<xs:complexType name = "SomeFault">
<xs:sequence>
<xs:element name = "errorMessages" type="some:ErrorMessageWSType" maxOccurs="unbounded" />
<xs:element name = "dummyString" type="xsd:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
Am I doing something wrong during the wsdlc code generation or is this a known issue?
<wsdlc srcWsdl="${wsdl.dir}/${wsdl.file.name}"
destJwsDir="${gen.src.dir}/gen-src-jar"
destImplDir="${main.src.dir}"
packageName="${package.prefix}" type="JAXRPC">Any luck with this? I am running into the same error. Apparently, this is not an issue with Java binding, but when invoking remote EJBs, we run into this. I am running 10.1.3.1 and the error is:
<fault>
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
<part name="summary">
<summary>
com.collaxa.cube.ws.wsif.providers.ejb.WSIFOperation_EJB@e26dbf : Could not invoke 'getIdentityInfo'; nested exception is:
org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
</summary>
</part>
<part name="detail">
<detail>
org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'ca.bc.gov.pssg.c3.webservices.identitymanagement.Identity' is not compatible; nested exception is:
oracle.xml.parser.v2.XMLDOMException: cannot add a node belonging to a different document
</detail>
</part>
</bindingFault>
</fault -
Marshal Exception raised when using an union type
Hi,
I am using jdk1.4.0 and I am experiencing a problem when using union types. I was wondering if anyone would have experienced the same problem ? Or would have any idea of a possible workaround ?
Here is the code :
=========
module X208 {
typedef string AE_form1Type;
typedef long AE_form2Type;
enum AETypeChoice { form1Choice, form2Choice };
union AEType
switch(AETypeChoice) {
case form1Choice:
AE_form1Type form1;
case form2Choice:
AE_form2Type form2;
module HelloApp {
interface Hello
string sayHello(in any param);
=========
My code, in the client, looks like this :
AEType ae = new AEType();
ae.form2(14);
Any many = orb.create_any();
AETypeHelper.insert(many, ae);
string Hello = helloImpl.sayHello(many);
I have noticed that, each time I send an AEType form1 (a String) in the Any, it works fine. But when I try send an AEType form2, it fails with a Marshal exception (see below).
I tried to switch form1 and form2 (actually their types : string and integer) to see if the problem was linked to the integer, but it failed the same on form2.
When checking the bug database, there is one bug which might be close to this, but it's supposed to be fixed now (#4518206).
Did someone experience the same problem ? Am I doing something wrong here ?
Thanks for your help !
ERROR : org.omg.CORBA.MARSHAL: underflow called with grow strategy vmcid: SUN minor code: 202 completed: No
org.omg.CORBA.MARSHAL: underflow called with grow strategy vmcid: SUN minor code: 202 completed: No
at com.sun.corba.se.internal.iiop.BufferManagerReadGrow.underflow(BufferManagerReadGrow.java:25)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_1.grow(CDRInputStream_1_1.java:73)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_2.alignAndCheck(CDRInputStream_1_2.java:28)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_octet_array(CDRInputStream_1_0.java:567)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.getConvertedChars(CDRInputStream_1_0.java:2285)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.internalReadString(CDRInputStream_1_0.java:469)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.readStringOrIndirection(CDRInputStream_1_0.java:460)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_string(CDRInputStream_1_0.java:520)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_string(CDRInputStream.java:197)
at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2430)
at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2679)
at com.sun.corba.se.internal.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2632)
at com.sun.corba.se.internal.corba.AnyImpl.write_value(AnyImpl.java:581)
at com.sun.corba.se.internal.iiop.CDROutputStream_1_0.write_any(CDROutputStream_1_0.java:534)
at com.sun.corba.se.internal.iiop.CDROutputStream.write_any(CDROutputStream.java:235)
at HelloApp._HelloStub.sayHello(_HelloStub.java:19)
at HelloClient.main(HelloClient.java:37)I have similar problem. Except that mine throws a null exception write after com.sun.corba.se.internal.corba.AnyImpl.write_value(AnyImpl.java:581).
do you have a workaround? -
JSR 172 marshal exception for complex type
Hi,
Im trying to run a JSR 172 webservice but i always get marshall exception for complex types, below is my code:
WSDL:
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-417-SNAPSHOT. -->
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://newsletter.kp/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://newsletter.kp/" name="NewsService">
<ns1:Policy xmlns:ns1="http://www.w3.org/ns/ws-policy" wsu:Id="NewsPortBinding_getNewslettersRemote_WSAT_Policy">
<ns1:ExactlyOne>
<ns1:All>
<ns2:ATAlwaysCapability xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/10/wsat"></ns2:ATAlwaysCapability>
<ns3:ATAssertion xmlns:ns4="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/10/wsat" ns1:Optional="true" ns4:Optional="true"></ns3:ATAssertion>
</ns1:All>
</ns1:ExactlyOne>
</ns1:Policy>
<types>
<xsd:schema>
<xsd:import namespace="http://newsletter.kp/" schemaLocation="http://localhost:8080/NewsService/News?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="getNewslettersRemote">
<part name="parameters" element="tns:getNewslettersRemote"></part>
</message>
<message name="getNewslettersRemoteResponse">
<part name="parameters" element="tns:getNewslettersRemoteResponse"></part>
</message>
<portType name="News">
<operation name="getNewslettersRemote">
<ns5:PolicyReference xmlns:ns5="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns5:PolicyReference>
<input message="tns:getNewslettersRemote"></input>
<output message="tns:getNewslettersRemoteResponse"></output>
</operation>
</portType>
<binding name="NewsPortBinding" type="tns:News">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
<operation name="getNewslettersRemote">
<ns6:PolicyReference xmlns:ns6="http://www.w3.org/ns/ws-policy" URI="#NewsPortBinding_getNewslettersRemote_WSAT_Policy"></ns6:PolicyReference>
<soap:operation soapAction="getNews"></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
</operation>
</binding>
<service name="NewsService">
<port name="NewsPort" binding="tns:NewsPortBinding">
<soap:address location="http://localhost:8080/NewsService/News"></soap:address>
</port>
</service>
</definitions>Stub:
public class NewsService_Stub implements NewsService, javax.xml.rpc.Stub {
private String[] _propertyNames;
private Object[] _propertyValues;
public NewsService_Stub() {
_propertyNames = new String[] { ENDPOINT_ADDRESS_PROPERTY };
_propertyValues = new Object[] { "http://localhost:8080/NewsService/News" };
public void _setProperty( String name, Object value ) {
int size = _propertyNames.length;
for (int i = 0; i < size; ++i) {
if( _propertyNames.equals( name )) {
_propertyValues[i] = value;
return;
String[] newPropNames = new String[size + 1];
System.arraycopy(_propertyNames, 0, newPropNames, 0, size);
_propertyNames = newPropNames;
Object[] newPropValues = new Object[size + 1];
System.arraycopy(_propertyValues, 0, newPropValues, 0, size);
_propertyValues = newPropValues;
_propertyNames[size] = name;
_propertyValues[size] = value;
public Object _getProperty(String name) {
for (int i = 0; i < _propertyNames.length; ++i) {
if (_propertyNames[i].equals(name)) {
return _propertyValues[i];
if (ENDPOINT_ADDRESS_PROPERTY.equals(name) || USERNAME_PROPERTY.equals(name) || PASSWORD_PROPERTY.equals(name)) {
return null;
if (SESSION_MAINTAIN_PROPERTY.equals(name)) {
return new Boolean(false);
throw new JAXRPCException("Stub does not recognize property: " + name);
protected void _prepOperation(Operation op) {
for (int i = 0; i < _propertyNames.length; ++i) {
op.setProperty(_propertyNames[i], _propertyValues[i].toString());
public newsletter[] getNewslettersRemote() throws java.rmi.RemoteException {
Object inputObject[] = new Object[] {
Operation op = Operation.newInstance( qnameoperation_getNewslettersRemote, typegetNewslettersRemote, typegetNewslettersRemoteResponse );
_prepOperation( op );
op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "getNews" );
Object resultObj;
try {
resultObj = op.invoke( inputObject );
} catch( JAXRPCException e ) {
Throwable cause = e.getLinkedCause();
if( cause instanceof java.rmi.RemoteException ) {
throw (java.rmi.RemoteException) cause;
throw e;
return newsletter_ArrayfromObject((Object[])((Object[]) resultObj)[0]);
private static newsletter[] newsletter_ArrayfromObject( Object obj[] ) {
if(obj == null) return null;
newsletter result[] = new newsletter[obj.length];
for( int i = 0; i < obj.length; i++ ) {
result[i] = new newsletter();
Object[] oo = (Object[]) obj[i];
result[i].setBody((String )oo[0]);
result[i].setId((Long )oo[1]);
result[i].setImageLocation((String )oo[2]);
result[i].setTitle((String )oo[3]);
return result;
protected static final QName qnameoperation_getNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
protected static final QName qnamegetNewslettersRemote = new QName( "http://newsletter.kp/", "getNewslettersRemote" );
protected static final QName qnamegetNewslettersRemoteResponse = new QName( "http://newsletter.kp/", "getNewslettersRemoteResponse" );
protected static final Element typegetNewslettersRemote;
protected static final Element typegetNewslettersRemoteResponse;
static {
typegetNewslettersRemote = new Element( qnamegetNewslettersRemote, _complexType( new Element[] {
}), 1, 1, false );
typegetNewslettersRemoteResponse = new Element( qnamegetNewslettersRemoteResponse, _complexType( new Element[] {
new Element( new QName( "", "return" ), _complexType( new Element[] {
new Element( new QName( "", "body" ), Type.STRING, 0, 1, false ),
new Element( new QName( "", "id" ), Type.LONG, 0, 1, false ),
new Element( new QName( "", "imageLocation" ), Type.STRING, 0, 1, false ),
new Element( new QName( "", "title" ), Type.STRING, 0, 1, false )}), 0, Element.UNBOUNDED, true )}), 1, 1, false );
private static ComplexType _complexType( Element[] elements ) {
ComplexType result = new ComplexType();
result.elements = elements;
return result;
}I tested the web service with the following xml
input:<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
<ns2:getNewslettersRemote xmlns:ns2="http://newsletter.kp/"/>
</S:Body>
</S:Envelope>
output:bq. <?xml version="1.0" encoding="UTF-8"?> \\ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> \\ <S:Body> \\ <ns2:getNewslettersRemoteResponse xmlns:ns2="http://newsletter.kp/"> \\ <return> \\ <body>teste</body> \\ <id>1</id> \\ <imageLocation>testes</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>2</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>3</id> \\ <imageLocation>mau</imageLocation> \\ <title>mau</title> \\ </return> \\ <return> \\ <body>mau</body> \\ <id>4</id> \\ <imageLocation>mau</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>2</body> \\ <id>5</id> \\ <imageLocation>2</imageLocation> \\ <title>2</title> \\ </return> \\ <return> \\ <body>corpo</body> \\ <id>6</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>corpos</body> \\ <id>7</id> \\ <imageLocation>imagem</imageLocation> \\ <title>Titulo</title> \\ </return> \\ <return> \\ <body>teste</body> \\ <id>8</id> \\ <imageLocation>teste</imageLocation> \\ <title>teste</title> \\ </return> \\ <return> \\ <body>rweqrrq</body> \\ <id>9</id> \\ <imageLocation>rwe</imageLocation> \\ <title>rewq</title> \\ </return> \\ </ns2:getNewslettersRemoteResponse> \\ </S:Body> \\ </S:Envelope> \\ but i always get a:
java.rmi.MarshalException: Invalid URI From Server: , expected: http://schemas.xmlsoap.org/soap/envelope/
at news.NewsService_Stub.getNewslettersRemote(NewsService_Stub.java:73)
at hello.HelloMIDlet.getTextField(HelloMIDlet.java:168)
at hello.HelloMIDlet.getForm(HelloMIDlet.java:132)
at hello.HelloMIDlet.startMIDlet(HelloMIDlet.java:56)
at hello.HelloMIDlet.startApp(HelloMIDlet.java:205)
at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:43)
at com.sun.midp.midlet.Scheduler.schedule(Scheduler.java:374)
at com.sun.midp.main.Main.runLocalClass(Main.java:466)
at com.sun.midp.main.Main.main(Main.java:120)
Can you please help me find the problem?
Thanks in advance.Hello,
A bit late, but I'm sure others will use this answers. We encountered the same problem in our development and after some hours playing with our WSDL we found the source of the problem.
The problem is having a field named "body" in the Object this apparently doesn't work well with SOAP we guess because of the Envelope having also a Body.
So the solution is changing the field body to something like msgBody.
Regards,
Raanan Nevet -
Hello,
I'm using Toplink JAXB to generate XML document from java classes in a JSF application (all in JDeveloper 10.1.3).
Everything works fine in JDeveloper embedded OC4J, but when deploed to OAS 10.1.3, the application gives the following exception:
Exception [TOPLINK-25007] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalExceptionException Description: A descriptor for class com.allstate.mqq.re.xao.jaxb.map.MqqrequestImpl was not found in the project]
Has anyone experienced the same problem?
Please help
Thanks
KateSee:
Re: Toplink JAXB Marshalling
-Blaise -
JWSDP1.2 JAXB Out of memory exception
Hai,
I am using JAXB in JWSDP1.2,while compiling with xjc it is giving out of memory error.I increased the size JVM memory to 1024m.
It is giving when weinclude some imporrted schemas in the schema.is anyone have idea of this kind of problem. Is there any limit of innerclasees or included schemas.
Thank you
SreenHI,
THanks for the reply..AM using workshop IDE and have tried the "clean" option also but of no use..Is there any other alternative to get rid of this exception ???
Regards -
JAXB 1.0 Throws Exception and WebLogic Server Goes Mad !
Hi,
I've currently got JAXB Running within a standalone application running on Tomcat/Apache.
When I try and Jar it up and run it on Weblogic 7.0 I get the following error being shown.
The JAXB is being called from the onMessage event in a MessageDrivenBean which is sat on the application server. When it received the first message the server logs go mad repeatedly printing out the info below.
<10-Jan-03 10:09:48 GMT> <Warning> <EJB> <010065> <MessageDrivenBean threw an Ex
ception in onMessage(). The exception was:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at uk.tester.deploy.messages.server.messageinbound.MessageHandlerBean.
onMessage(MessageHandlerBean.java:46)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
java:290)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
The actual crash starts when the line
JAXBContext jc = JAXBContext.newInstance("package structure........messageinbound.helpers.test");
is called, I've attempted the fix found on this site using the
public class JAXBClassLoader extends ClassLoader{
public URL getResource(String name){
if (name.endsWith("jaxb.properties")){
name="jaxb.properties";
return super.getResource(name);
snippet of code and then changing the context to be
JAXBContext jc = JAXBContext.newInstance("package structure.........messageinbound.helpers.test",new JAXBClassLoader());
but this does not seem to help - any ideas please ???????Got Passed the first problem by correctly placing jaxb jars on the server and then sorting out the property file location but I still get the following problem.
javax.xml.bind.JAXBException: Provider com.sun.xml.bind.ContextFactory not found
I see a number of other postings are talking about this - has anyone got a solution yet ? -
JAXB: Not to marshal "xml version" line
Hi,
Is there a way to config the Marshaller not to marshal this line in my output?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
I tried setting Marshaller.JAXB_FORMATTED_OUTPUT to false, but this does not help.
Thank you.//try this
Node objNode = null;
Marshaller.marshal(whateverObject,objNode);
TransformerFactory tf = TransformerFactory.newInstance();
Transformer tr = tf.newTransformer();
tr.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,"yes");
StreamResult result = new StreamResult(System.out);
tr.transform(new DOMSource(objNode),result);
//you will need these imports
javax.xml.transform.*;
org.w3c.dom.Node;
javax.xml.transform.stream.StreamResult;
and of course the jaxb imports -
CachedRowSet Marshalling Exception
Hey All,
I am using CashedRowset to transfer sql Query's from an ejb to a remote client (via RMI)
When I setup my CashedRowset without paging it works well.
When I setup the CashedRowset with paging, I get an error on the client side (described below).
I am working with Weblogic 8.1 under 1.4 jdk (server and client side) I downloaded the latest version of rowset implementation from sun.
Any suggestions ?
the client side error: is :
java.rmi.MarshalException: error marshalling return; nested exception is:
java.io.NotSerializableException: weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247)
at legacy.studio.gateway.ejb.DBAccess_xechse_EOImpl_814_WLStub.executeQuery(Unknown Source)
at il.co.ewave.remote.RemoteCall.call(RemoteCall.java:128)
at il.co.ewave.remote.LegacyCall.execute(LegacyCall.java:133)
at il.co.ewave.remote.LegacyCall.main(LegacyCall.java:152)
Caused by: java.io.NotSerializableException: weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:120)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:93)
at legacy.studio.gateway.ejb.DBAccess_xechse_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)Seems not to be a Sun problem, but a Bea one:
Caused by: java.io.NotSerializableException: weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSetThis class is not serializable, but is used as a field value by another object that is to be serialized. Maybe you should check for any custom-made classes containing such a field or contact Bea for help. -
Hi
I have encountered an error marshalling arguments exception with some piece of
code. This happens while a call is made to the session bean method by the client
program ,( involves passing of two arguments one of which is a serializable data
object, and the other being a string).
This occurs only for very large volume of data processed by the client. These
data objects are stored in a vector and passed to the session bean in a for loop.
The error occurs randomly after a certain number of data objects are processed.
The application uses Weblogic 5.1 as the app. server on Solaris platform ,The
JDK version used is a jdk 1.2.2_08 with service pack 8.
Thje exception thrown is as follows:
java.io.UTFDataFormatException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java, Compiled Code)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java, Compiled
Code)
at java.io.ObjectOutputStream.outputString(ObjectOutputStream.java, Compiled
Code)
at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStream.java,
Compiled Code)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
Code)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
Compiled Code)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
Compiled Code)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java, Compiled
Code)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java, Compiled
Code)
at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java:118)
at weblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutputStreamBase.java,
Compiled Code)
at weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutputStreamBase.java,
Compiled Code)
at weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutputStreamBase.java,
Compiled Code)
at weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStream2.java,
Compiled Code)
at weblogic.rmi.extensions.AbstractOutputStream.writeObject(AbstractOutputStream.java,
Compiled Code)
at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_WLStub.java:209)
at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
Compiled C
ode)
at net.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(ImportEtxAtxProcessor.java,
Compiled Code)
at net.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
Code)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java, Compiled
Code)
--------------- nested within: ------------------
weblogic.rmi.MarshalException: error marshalling arguments
- with nested exception:
[java.io.UTFDataFormatException]
at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_WLStub.java:214)
at net.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateTasks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
Compiled C
ode)
at net.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(ImportEtxAtxProcessor.java,
Compiled Code)
at net.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
Code)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java, Compiled
Code)It is a little strange that java.io.DataOutputStream.writeUTF simply
does
if (utflen > 65535)
throw new UTFDataFormatException();
instead of
if (utflen > 65535)
throw new UTFDataFormatException("some meaningful message");
Cameron Purdy <[email protected]> wrote:
UTF data (String data) is limited to 64k. Find out where you have long
strings and do custom serialization (externalizable).
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"Anna" <[email protected]> wrote in message
news:[email protected]...
Hi
I have encountered an error marshalling arguments exception with somepiece of
code. This happens while a call is made to the session bean method by theclient
program ,( involves passing of two arguments one of which is aserializable data
object, and the other being a string).
This occurs only for very large volume of data processed by the client.These
data objects are stored in a vector and passed to the session bean in afor loop.
The error occurs randomly after a certain number of data objects areprocessed.
The application uses Weblogic 5.1 as the app. server on Solaris platform,The
JDK version used is a jdk 1.2.2_08 with service pack 8.
Thje exception thrown is as follows:
java.io.UTFDataFormatException
at java.io.DataOutputStream.writeUTF(DataOutputStream.java,Compiled Code)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java,Compiled
Code)
atjava.io.ObjectOutputStream.outputString(ObjectOutputStream.java, Compiled
Code)
atjava.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStre
am.java,
Compiled Code)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,Compiled
Code)
atjava.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java,
Compiled Code)
atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java,
Compiled Code)
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java, Compiled
Code)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java,Compiled
Code)
atweblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
StreamBase.java:118)
atweblogic.common.internal.WLObjectOutputStreamBase.writeSpecial(WLObjectOutpu
tStreamBase.java,
Compiled Code)
atweblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
StreamBase.java,
Compiled Code)
atweblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
utStreamBase.java,
Compiled Code)
atweblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
am2.java,
Compiled Code)
atweblogic.rmi.extensions.AbstractOutputStream.writeObject(AbstractOutputStrea
m.java,
Compiled Code)
atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(
ImportEtxAtxSessionBeanEOImpl_WLStub.java:209)
atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateT
asks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
Compiled C
ode)
atnet.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(I
mportEtxAtxProcessor.java,
Compiled Code)
atnet.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
atcom.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
Code)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java,Compiled
Code)
--------------- nested within: ------------------
weblogic.rmi.MarshalException: error marshalling arguments
- with nested exception:
[java.io.UTFDataFormatException]
atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_WLStub.updateTasks(
ImportEtxAtxSessionBeanEOImpl_WLStub.java:214)
atnet.line.ov.etxatx.session.ImportEtxAtxSessionBeanEOImpl_ServiceStub.updateT
asks(ImportEtxAtxSessionBeanEOImpl_ServiceStub.java,
Compiled C
ode)
atnet.line.ov.beans.etxatx.client.ImportEtxAtxProcessor.startImportingEtxAtx(I
mportEtxAtxProcessor.java,
Compiled Code)
atnet.line.ov.util.MQPollingClient.onMessage(MQPollingClient.java:265)
atcom.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java, Compiled
Code)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java,Compiled
Code)
Dimitri -
JAXB example with marshalling first?
We have a java object (with objects and objects ...) whose instance data we would like to convert into XML files. Once we've created the XML we'd like to recreate the instances from the class files and XML files.
All the the JAXB examples (that we have come across) start with unmarshalling (DTD files and Schemas), then validate and marshall. We have only java classes (and their objects) and don't want to need to rewrite all our existing classes into DTD and schema files (or at least not by hand).
Where could we find a good JAXB example or tutorial that starts with java objects, marshals them and then unmarshals the XML? Or is there no example because it's just not possible?
Thanks in advance.
MortenFirst, I would recommend not using JAXB yet. I believe it will be a VERY useful API when complete, but as it is only early release and the next version of the API may not be "API-level compatible" (quote from http://java.sun.com/xml/jaxb/index.html), I would not use it.
Now, to answer your question. I do not believe there is a tool to do what you are asking. I know the current version allows you to take an existing DTD, create a binding schema and get Java Classes from that. I am almost certain there is nothing to create a DTD from a Java Class.
I believe the intent was to be something like the IDL tools. As a DTD defines the rules for an XML doc, which itself is totally platform independent, a DTD is nothing more than a platform independent way to define a data structure. JAXB is a tool that takes that one step further and gives you a Java Bean guarenteed to be a normal bean, but also go from/to XML. -
Org.omg.CORBA.MARSHAL exception For JMX Notification
I am running Weblogic 9.2 java version 1.5.0_04 and I am tring to recieve JMX Notifications from a Custom MBean running in Weblogic but I keep recieving the following exception:
Jan 5, 2007 12:55:25 PM ClientNotifForwarder NotifFetcher-run
SEVERE: Failed to fetch notification, stopping thread. Error is: java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at org.omg.stub.javax.management.remote.rmi._RMIConnection_Stub.fetchNotifications(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RMINotifClient.fetchNotifs(RMIConnector.java:1285)
at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.fetchNotifs(ClientNotifForwarder.java:508)
at com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifForwarder.java:399)
at com.sun.jmx.remote.internal.ClientNotifForwarder$LinearExecutor$1.run(ClientNotifForwarder.java:83)
Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
I received this first by trying JConsole that comes with JDK 1.5. This only occurs with JMX Notifications because I am able to execute the MBean operation of the MBean and I can see my custome MBean being executed in WebLogic but my custom mbean sends out a JMX Notifications and that causes
the above exception.
I wrote my own NotificationListener program to make sure that it is not a JConsole problem and I got the same problem. I tried using t3 and rmi protocol to see if one of them would work but neither worked. See the code below for the Notification Listener:
// String protocol = "t3";
//String jndiroot = "/jndi/";
String protocol = "rmi";
String jndiroot = new String("/jndi/iiop://" + hostName + ":" + port + "/");
String myserver = "weblogic.management.mbeanservers.domainruntime";
JMXServiceURL serviceURL = null;
try {
serviceURL = new JMXServiceURL(protocol, hostName, port, jndiroot + myserver);
} catch (MalformedURLException e1) {
logger.debug("malformedURLexception caught");
e1.printStackTrace();
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, userName);
h.put(Context.SECURITY_CREDENTIALS, password);
// h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
try {
connector = JMXConnectorFactory.connect(serviceURL, h);
connection = connector.getMBeanServerConnection();
} catch (IOException e1) {
e1.printStackTrace();
logger.debug("The connection is : " + connection.toString());
ObjectName mbeanName = null;
try {
mbeanName = new ObjectName("Mbean:Name=com.test.bean,Type=TestMBean,Location=AdminServer");
logger.debug("Created MBeanObjectName: " + mbeanName.toString());
} catch (MalformedObjectNameException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
try {
logger.debug("The mbean is registered " + connection.isRegistered(mbeanName));
} catch (IOException e1) {
e1.printStackTrace();
try {
connection.addNotificationListener(mbeanName, this,null, null);
logger.debug("the connection is added a listener : " + connection.isInstanceOf(mbeanName, "com.test.bean.MBean"));
logger.debug("Listener registered ...");
//Keeping the remote client active.
System.out.println("waiting for notifications, got to log file for details....");
System.in.read();
} catch (InstanceNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
public void handleNotification(Notification n, Object arg1) {
logger.debug("******************************************");
logger.debug("* Notification count : " + counter++ + ", Notification received at "
+ new Date().toString());
logger.debug("* type = " + n.getType());
logger.debug("* message = " + n.getMessage());
logger.debug("* source = " + n.getSource());
logger.debug("* seqNum = "
+ Long.toString(n.getSequenceNumber()));
logger.debug("* timeStamp = " + new Date(n.getTimeStamp()));
logger.debug("* userData = " + n.getUserData());
logger.debug("*******************************************");
I commented out the t3 protocol but it doesn't work for both protocol types. I implemented a Notification Listener within WebLogic and that
worked right away using the following code below:
InitialContext ctx = new InitialContext();
rmbs = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
As the document "Developing Custom Management Utilities with JMX" on page 4-7 "Make Local Connections to the Runtime MBean Server" described.
Has anyone seem the above exception "Failed to fetch notification, stopping thread. Error is: java.rmi.MarshalException: CORBA MARSHAL 0" when a client is trying to receive JMX Notification? All help would be greatly appreciated.
Thanks,
AjayHi ajay,
How did u manage to access the mbeanserver in BEA ? Can u pls brief on that. Even I am trying the same. But, the MBEANSERVEROBJECT i create, eventhough has NO NULL value, is not able to acces the mbean. Any method access through this object creates an EXCEPTION. Please help me too. I will try solving ur problem too.:-)
Also, do i need to put my MBEAN CLASS in the weblogic server ? Should i create an APP SERVER in BEA ?
I appreciate ur early response, dude.. -
JAXB - Unrecognised Element Name Exception
I am not quite sure what is wrong here.
I have got a dtd file that has the following specification:
<!ELEMENT SomeElement (A,B?)>
<!ELEMENT AnotherElement (C | B)>
<!ELEMENT A(#PCDATA)>
<!ELEMENT C(#PCDATA)>
<!ELEMENT B (x,y,z)>
<!ELEMENT x(#PCDATA)>
<!ELEMENT y(#PCDATA)>
<!ELEMENT z(#PCDATA)>
And assume default binding schema.
I wrote a XML file based on the dtd and a java app to access the data.
The XML file
<SomeElement>
<A>Some Sentence</A>
<B>
<x>1</x>
<y>2</y>
<z>3</z>
</B>
</SomeElement>
<AnotherElement>
<C>123</C>
</AnotherElement>
During unmarshalling, it throws an UnrecognisedElementNameException: x
It seems that it cannot recognised element x, y and z.
I am pretty sure I have it defined in the dtd file so why is it complaining?
Can anyone shed some light on this for me?
ThanksLet me attached the files. Perhaps that will ilustrate the problem better.
The dtd file
<!ELEMENT test (precondition, step+)>
<!ELEMENT precondition (description, include?)>
<!ELEMENT step (input|include)>
<!ELEMENT input (#PCDATA)>
<!ELEMENT include (testcaseid, scenarioid, (from, to?)?)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT testcaseid (#PCDATA)>
<!ELEMENT scenarioid (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT to (#PCDATA)>
The xml file
<?xml version="1.0"?>
<!DOCTYPE test SYSTEM "abc.dtd">
<test>
<precondition>
<description>NONE</description>
</precondition>
<step>
<include>
<testcaseid>TID</testcaseid>
<scenarioid>SID</scenarioid>
<from>F</from>
<to>T</to>
</include>
</step>
</test>
The application file
import java.util.*;
import java.io.*;
import javax.xml.bind.*;
import javax.xml.marshal.*;
public class testABC {
/** Creates new testABC */
public testABC() {
* @param args the command line arguments
public static void main (String args[]) {
try{
File sFile = new File("abcfile.xml");
FileInputStream sis = new FileInputStream(sFile);
try{
Test t = Test.unmarshal(sis);
System.out.println("Completed");
}finally{
sis.close();
}catch(Exception e){
e.printStackTrace();
Assume default schema binding
The error:
Cannot recognised the element testcaseid when try to unmarshall include element
Thanks :-) -
Marshall exception when calling a remote business method in EJB
Hi,
From a java client, i am calling a business method from a ejb. the home and remote interface object is sucessfully received at the client. but at the time of calling the remote business method the following error occurs.
java.rmi.RemoteException: ; nested exception is:
weblogic.rmi.ServerException: A remote exception occurred while executing the method on the
remote object
- with nested exception:
[weblogic.rmi.MarshalException: error marshalling return
- with nested exception:
[java.io.NotSerializableException: java.util.Vector$1]]
java.io.NotSerializableException: java.util.Vector$1
the business method returns an enumeration object.
How to solve this?
-chidamhi chidambaresh,
you could have sent this to me directly.
the Enumeration si an interface and so the object we get during the runtime is basically an object of some implementation of this interface.
the Enumeration you get from HAshtable is actually Serializable.
but the Enumeration you actually get from Vector (this is actaully an inner class of Vector viz., Vector$1) is not serializable. that is what the error you are getting.
regards
Srinivasan.R
(VAMSOFT) -
Hi ,i am getting the fallowing exception when i invoke an EJB Running on WebLogic9.2 from Sun One Web Server6.2 .
and i put the wlclient.jar and weblogic.jar in the WEB-INF/LIB folder of my Aplication.
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: java.rmi.MarshalException: CORBA MARSHAL 0 Maybe; nested exception is:
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:100)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.session._ScoringSession_Stub.authenticate(Unknown Source)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.delegate.ScoringDelegate.authenticate(Unknown Source)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sp.creditmodel.action.LoginAction.execute(Unknown Source)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[10/Mar/2007:21:07:12] failure ( 1960): for host 192.168.24.140 trying to POST /cm/login.do;jsessionid=C16157A7B6042210C4678A72EE091CC9, service-j2ee reports: ApplicationDispatcher[cm] WEB2649: Servlet.service() for servlet jsp threw exception
java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:471)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:123)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:138)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:374)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:268)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:329)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
[10/Mar/2007:21:07:12] failure ( 1960): for host 192.168.24.140 trying to POST /cm/login.do;jsessionid=C16157A7B6042210C4678A72EE091CC9, service-j2ee reports: StandardWrapperValve[action]: WEB2792: Servlet.service() for servlet action threw exception
java.security.AccessControlException: access denied (java.security.SecurityPermission getHttpRequestBase)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at org.apache.catalina.connector.HttpRequestFacade.getHttpRequestBase(HttpRequestFacade.java:257)
at org.apache.catalina.core.ApplicationDispatcher.getRequestBase(ApplicationDispatcher.java:1115)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:759)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:471)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:123)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:138)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:374)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:292)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:268)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:329)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:807)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:293)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:289)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: Maybe
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:308)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at java.lang.Class.newInstance(Class.java:261)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:90)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:105)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:314)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
[10/Mar/2007:21:07:12] warning ( 1960): CORE3283: stderr: ... 21 moreHave you made any changes to the Java Security Manager permissions in your web server instance's config/server.policy file?
Until we identify what the problem is, you could temporarily disable the Java Security Manager (by commenting out the appropriate lines in your config/server.xml file)
e.g.
<!--
<JVMOPTIONS>-Djava.security.manager</JVMOPTIONS>
<JVMOPTIONS>-Djava.security.policy=/path/https-foo/config/server.policy</JVMOPTIONS>
-->
Maybe you are looking for
-
Customer post ERS invoices for subcontracting PO, however vendor charges flat service fee, regardless of quantity of goods delivered. Question: ERS works based on gr-based IV, is there way for ERS to post invoice based on PO amount, regardless of GR
-
Automator: selected items
Here is my workflow in automator Ask for finder items Open them. Do some other processing Get specified finder items (path to finder items) Copy those items to a new location. My problem: automator also copies the previously selected items as well as
-
How to suppress a section that depends on a total variable?
I have a 4 variables and I need to suppress the section where they are if they are = to 0. Those variables are initialized in 0 every time the group change. please see attached. I went to section expert and I wrote there {@formula1}=0 and that suppre
-
SAP Netweaver Architect Document and its place in SDLC
Hi All, I am looking forward to look at a sample SAP Netweaver Architect Documument or a Template and want to understand the scope and all details included in the perview of this document. I understand that Tech Architect Document will be prepared in
-
Edge Animate ad banner to open up a link in the in app browser window of Adobe Content Viewer
Hi I've got an adobe edge animate banner that animates and looks good. But I need it to be able to open a link (once the banner has been tapped on) in the Adobe Content Viewer app's in app browser window. Presently it only opens up within the 300x600