Re: Deployment exception when initialising empty BPEL variable.

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Deployment exception when initialising empty BPEL variable.

by Razvan Popescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I managed to deploy the process by writing the assign as follows:

         <assign name="Assign1">
             <copy>
                 <from>
                     <literal>
                         <ns0:Call>
                         </ns0:Call>
                     </literal>
                 </from>
                 <to variable="NewWSDLOperationIn"/>
             </copy>
         </assign>

, where ns0 is the namespace of the schema which I imported into the  
BPEL process.

However, at run-time when I test the BPEL process I get the following  
exception:
____________________________________________________________________________________________________________________________________________________________________________________________________
HTTPBC-E00720: Provider for service [{http://j2ee.netbeans.org/wsdl/newWSDL 
}newWSDLService] endpoint [newWSDLPort] responded with an error  
status. Error detail is: BPCOR-6135:A fault was not handled in the  
process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
}systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?
 ><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
" type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper 
">
<
jbi:part>com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl</
jbi:part></jbi:message>. Sending errors for the pending requests in  
the process scope before terminating the process instance
BPCOR-6151:The process instance has been terminated because a fault  
was not handled; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
}systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?
 ><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
" type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper 
">
<
jbi:part>com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl</
jbi:part></jbi:message>
com.sun.jbi.engine.bpel.core.bpel.exception.SystemException:  
BPCOR-7131:A fatal exception has occurred
BPCOR-6129:Line Number is 19
BPCOR-6130:Activity Name is Assign1
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.engine
.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:251)
         at  
com
.sun
.jbi
.engine
.bpel
.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:203)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.engine
.BusinessProcessInstanceThread
.execute(BusinessProcessInstanceThread.java:98)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.engine
.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:998)
         at  
com
.sun
.jbi
.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:
351)
         at  
com
.sun
.jbi
.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:
1314)
         at  
com
.sun
.jbi
.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:
456)
         at  
com
.sun
.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:
266)
         at  
com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:
191)
Caused by: java.lang.ClassCastException:  
com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl
         at com.sun.jbi.engine.bpel.core.bpel.util.ToExecutorFactory
$ToVariableExecutor.executeTo(ToExecutorFactory.java:324)
         at  
com
.sun
.jbi
.engine
.bpel
.core.bpel.model.runtime.impl.CopyUnitImpl.doCopy(CopyUnitImpl.java:72)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel.model.runtime.impl.AssignUnitImpl.doAction(AssignUnitImpl.java:
287)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl.CodeReUseHelper.executeChildActivities(CodeReUseHelper.java:65)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl
.StructuredActivityUnitImpl
.executeChildActivities(StructuredActivityUnitImpl.java:193)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl
.StructuredActivityUnitImpl.doAction(StructuredActivityUnitImpl.java:93)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model.runtime.impl.SequenceUnitImpl.doAction(SequenceUnitImpl.java:95)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl.CodeReUseHelper.executeChildActivities(CodeReUseHelper.java:65)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl
.StructuredActivityUnitImpl
.executeChildActivities(StructuredActivityUnitImpl.java:193)
         at  
com
.sun
.jbi
.engine
.bpel
.core
.bpel
.model
.runtime
.impl.BPELProcessInstanceImpl.doAction(BPELProcessInstanceImpl.java:643)
         at  
com
.sun
.jbi
.engine
.bpel
.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:148)
         ... 7 more
____________________________________________________________________________________________________________________________________________________________________________________________________

Any ideas?

Thanks,
razvan.


On 2 Sep 2008, at 11:08, Razvan Popescu wrote:

> Hi all,
>
> I get the following error when I try to deploy a composite app:
>
> ***************************************************************************************************************************************************************************************************************************************************************************************
> ERROR: Successful execution of Start: CompApp
> WARNING: (JBIMA0405) Start of service assembly CompApp succeeded  
> partially; some service units failed to start.
>    * Component: sun-bpel-engine
>      ERROR: (BPJBI-4001:BPELSE) BPJBI-7004:Service unit CompApp-
> TestEmptyMsg failed to load deployment /Applications/NetBeans/
> glassfish-v2ur2/domains/domain1/jbi/service-assemblies/CompApp/
> CompApp-TestEmptyMsg/sun-bpel-engine : BPJBI-6024:Error while  
> loading BPEL file /Applications/NetBeans/glassfish-v2ur2/domains/
> domain1/jbi/service-assemblies/CompApp/CompApp-TestEmptyMsg/sun-bpel-
> engine/newProcess.bpel, Exception details are Cannot parse BPEL (see  
> below):
> ==> NAMESPACE_ERR: An attempt is made to create or change an object  
> in a way which is incorrect with regard to namespaces.
>    * Component: sun-http-binding
>      INFO: (JBIMA0409) Lifecycle operation start succeeded for  
> Service Unit CompApp-sun-http-binding.
> ***************************************************************************************************************************************************************************************************************************************************************************************
>
> --> The error is due to an attempt to initialise an empty variable.  
> The respective BPEL code is the following:
>
>        <assign name="Assign1">
>            <copy>
>                <from>
>                    <literal>
>                        <ns0:Call xmlns:ns0="http://xml.netbeans.org/schema/newXMLSchema 
> "/>
>                    </literal>
>                </from>
>                <to variable="NewWSDLOperationIn"/>
>            </copy>
>        </assign>
>
> --> Furthermore, I defined the NewWSDLOperationIn BPEL var as follows:
>
>        <variable name="NewWSDLOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/newWSDL 
> " messageType="tns:newWSDLOperationRequest"/>
>
> --> The WSDL part that defines the variable's message type is:
>
>    <message name="newWSDLOperationRequest">
>        <part name="param" element="ns:Call"/>
>    </message>
>
> where ns points to: "http://xml.netbeans.org/schema/newXMLSchema".
>
> --> Now, the schema is the following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>            targetNamespace="http://xml.netbeans.org/schema/newXMLSchema 
> "
>            xmlns:tns="http://xml.netbeans.org/schema/newXMLSchema"
>            elementFormDefault="qualified">
>    <xsd:element name="Call" type="tns:Call"/>
>    <xsd:complexType name="Call">
>        <xsd:sequence/>
>    </xsd:complexType>
> </xsd:schema>
>
>
> Do you have any ideas on how to overcome this exception?
>
> Thanks,
> razvan.


Re: Deployment exception when initialising empty BPEL variable.

by Razvan Popescu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My mistake, sorry. I forgot to use the "part" in the "copy"'s "to".

The correct assign is:
         <assign name="Assign1">
             <copy>
                 <from>
                     <literal>
                         <ns0:Call>
                         </ns0:Call>
                     </literal>
                 </from>
                 <to variable="NewWSDLOperationIn" part="param"/>
             </copy>

razvan.

On 2 Sep 2008, at 14:16, Razvan Popescu wrote:

> I managed to deploy the process by writing the assign as follows:
>
>        <assign name="Assign1">
>            <copy>
>                <from>
>                    <literal>
>                        <ns0:Call>
>                        </ns0:Call>
>                    </literal>
>                </from>
>                <to variable="NewWSDLOperationIn"/>
>            </copy>
>        </assign>
>
> , where ns0 is the namespace of the schema which I imported into the  
> BPEL process.
>
> However, at run-time when I test the BPEL process I get the  
> following exception:
> ____________________________________________________________________________________________________________________________________________________________________________________________________
> HTTPBC-E00720: Provider for service [{http://j2ee.netbeans.org/wsdl/newWSDL 
> }newWSDLService] endpoint [newWSDLPort] responded with an error  
> status. Error detail is: BPCOR-6135:A fault was not handled in the  
> process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
> }systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?
> ><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
> " type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper 
> ">
> <
> jbi:part
> >com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl</
> jbi:part></jbi:message>. Sending errors for the pending requests in  
> the process scope before terminating the process instance
> BPCOR-6151:The process instance has been terminated because a fault  
> was not handled; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
> }systemFault; Fault Data is <?xml version="1.0" encoding="UTF-8"?
> ><jbi:message xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling 
> " type="sxeh:faultMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper 
> ">
> <
> jbi:part
> >com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl</
> jbi:part></jbi:message>
> com.sun.jbi.engine.bpel.core.bpel.exception.SystemException:  
> BPCOR-7131:A fatal exception has occurred
> BPCOR-6129:Line Number is 19
> BPCOR-6130:Activity Name is Assign1
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .engine
> .impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:251)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:
> 203)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .engine
> .BusinessProcessInstanceThread
> .execute(BusinessProcessInstanceThread.java:98)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .engine
> .impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:998)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:351)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1314)
>        at  
> com
> .sun
> .jbi
> .engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:
> 456)
>        at  
> com
> .sun
> .jbi
> .engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:
> 266)
>        at  
> com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:
> 191)
> Caused by: java.lang.ClassCastException:  
> com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl
>        at com.sun.jbi.engine.bpel.core.bpel.util.ToExecutorFactory
> $ToVariableExecutor.executeTo(ToExecutorFactory.java:324)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core.bpel.model.runtime.impl.CopyUnitImpl.doCopy(CopyUnitImpl.java:
> 72)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel.model.runtime.impl.AssignUnitImpl.doAction(AssignUnitImpl.java:
> 287)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl.CodeReUseHelper.executeChildActivities(CodeReUseHelper.java:65)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl
> .StructuredActivityUnitImpl
> .executeChildActivities(StructuredActivityUnitImpl.java:193)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl
> .StructuredActivityUnitImpl.doAction(StructuredActivityUnitImpl.java:
> 93)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model.runtime.impl.SequenceUnitImpl.doAction(SequenceUnitImpl.java:
> 95)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl.CodeReUseHelper.executeChildActivities(CodeReUseHelper.java:65)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl
> .StructuredActivityUnitImpl
> .executeChildActivities(StructuredActivityUnitImpl.java:193)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core
> .bpel
> .model
> .runtime
> .impl.BPELProcessInstanceImpl.doAction(BPELProcessInstanceImpl.java:
> 643)
>        at  
> com
> .sun
> .jbi
> .engine
> .bpel
> .core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:
> 148)
>        ... 7 more
> ____________________________________________________________________________________________________________________________________________________________________________________________________
>
> Any ideas?
>
> Thanks,
> razvan.
>
>
> On 2 Sep 2008, at 11:08, Razvan Popescu wrote:
>
>> Hi all,
>>
>> I get the following error when I try to deploy a composite app:
>>
>> ***************************************************************************************************************************************************************************************************************************************************************************************
>> ERROR: Successful execution of Start: CompApp
>> WARNING: (JBIMA0405) Start of service assembly CompApp succeeded  
>> partially; some service units failed to start.
>>   * Component: sun-bpel-engine
>>     ERROR: (BPJBI-4001:BPELSE) BPJBI-7004:Service unit CompApp-
>> TestEmptyMsg failed to load deployment /Applications/NetBeans/
>> glassfish-v2ur2/domains/domain1/jbi/service-assemblies/CompApp/
>> CompApp-TestEmptyMsg/sun-bpel-engine : BPJBI-6024:Error while  
>> loading BPEL file /Applications/NetBeans/glassfish-v2ur2/domains/
>> domain1/jbi/service-assemblies/CompApp/CompApp-TestEmptyMsg/sun-
>> bpel-engine/newProcess.bpel, Exception details are Cannot parse  
>> BPEL (see below):
>> ==> NAMESPACE_ERR: An attempt is made to create or change an object  
>> in a way which is incorrect with regard to namespaces.
>>   * Component: sun-http-binding
>>     INFO: (JBIMA0409) Lifecycle operation start succeeded for  
>> Service Unit CompApp-sun-http-binding.
>> ***************************************************************************************************************************************************************************************************************************************************************************************
>>
>> --> The error is due to an attempt to initialise an empty variable.  
>> The respective BPEL code is the following:
>>
>>       <assign name="Assign1">
>>           <copy>
>>               <from>
>>                   <literal>
>>                       <ns0:Call xmlns:ns0="http://xml.netbeans.org/schema/newXMLSchema 
>> "/>
>>                   </literal>
>>               </from>
>>               <to variable="NewWSDLOperationIn"/>
>>           </copy>
>>       </assign>
>>
>> --> Furthermore, I defined the NewWSDLOperationIn BPEL var as  
>> follows:
>>
>>       <variable name="NewWSDLOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/newWSDL 
>> " messageType="tns:newWSDLOperationRequest"/>
>>
>> --> The WSDL part that defines the variable's message type is:
>>
>>   <message name="newWSDLOperationRequest">
>>       <part name="param" element="ns:Call"/>
>>   </message>
>>
>> where ns points to: "http://xml.netbeans.org/schema/newXMLSchema".
>>
>> --> Now, the schema is the following:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>           targetNamespace="http://xml.netbeans.org/schema/newXMLSchema 
>> "
>>           xmlns:tns="http://xml.netbeans.org/schema/newXMLSchema"
>>           elementFormDefault="qualified">
>>   <xsd:element name="Call" type="tns:Call"/>
>>   <xsd:complexType name="Call">
>>       <xsd:sequence/>
>>   </xsd:complexType>
>> </xsd:schema>
>>
>>
>> Do you have any ideas on how to overcome this exception?
>>
>> Thanks,
>> razvan.
>