ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuli (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()
Date Thu, 22 Mar 2007 05:53:32 GMT

    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483022
] 

Xuli commented on ODE-101:
--------------------------

The following are information printed on console while error occurs:
-------------------------------------------------------------------------------------------------------------
ERROR - JacobVPU                       - Method "run" in class "org.apache.ode.b
pel.runtime.ASSIGN" threw an unexpected exception.
java.lang.NullPointerException
        at org.apache.ode.utils.xsl.XslTransformHandler.parseXSLSheet(XslTransfo
rmHandler.java:85)
        at org.apache.ode.utils.xsl.XslTransformHandler.cacheXSLSheet(XslTransfo
rmHandler.java:107)
        at org.apache.ode.bpel.elang.xpath10.runtime.JaxenContexts$DoXslTransfor
mFunction.call(JaxenContexts.java:342)
        at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallEx
pr.java:186)
        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:112)
        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:688)
        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:227)
        at org.apache.ode.bpel.elang.xpath10.runtime.XPath10ExpressionRuntime.ev
aluate(XPath10ExpressionRuntime.java:94)
        at org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluat
e(ExpressionLanguageRuntimeRegistry.java:80)
        at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:186)
        at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:350)
        at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:78)
        at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:4
51)
        at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
        at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntime
ContextImpl.java:814)
        at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.ja
va:310)
        at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineIm
pl.java:311)
        at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerIm
pl.java:386)
        at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.doExecute(Qu
artzSchedulerImpl.java:348)
        at org.apache.ode.bpel.scheduler.quartz.QuartzSchedulerImpl.execute(Quar
tzSchedulerImpl.java:364)
        at org.apache.ode.bpel.scheduler.quartz.JobImpl.execute(JobImpl.java:32)

        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
        at java.lang.Thread.run(Thread.java:595)

-------------------------------------------------------------------------------------------------------------

> TransformerFactory is used without initialization in Start()
> ------------------------------------------------------------
>
>                 Key: ODE-101
>                 URL: https://issues.apache.org/jira/browse/ODE-101
>             Project: Ode
>          Issue Type: Bug
>          Components: JBI Integration
>    Affects Versions: Incubator
>         Environment: Windows XP Pro, ServiceMix 3.1
>            Reporter: Xuli
>            Priority: Critical
>
> After deployment of ODE engine, quit ServiceMix then restart it. Now, execute a process
with doXslTransform will cause the problem.
> While deploying the ODE engine, ServiceMix will invoke OdeServiceUnit.Deploy() method
to instanciate a compiler according to the BPEL script version, then in turn instanciate a
"XPath10ExpressionCompilerBPEL20" or "XPath20ExpressionCompilerBPEL20" object in which one's
constructor, the TransformerFactory will be initiated by executing the following lines:
> ---------------------------------------------------------------------------------------------------------
>             TransformerFactory trsf = new net.sf.saxon.TransformerFactoryImpl();
>             XslTransformHandler.getInstance().setTransformerFactory(trsf);
> ---------------------------------------------------------------------------------------------------------
> But after deployment, the ServiceMix will invoke init()->start() only.  The TransformerFactory
will keeping uninitialized and will cause the problem while executing DoXslTransformFunction.Function()->XslTransformHandler.getInstance().cacheXSLSheet(xslUri,
xslSheet.sheetBody, resolver)->parseXSLSheet(uri, body, resolver)->_transformerFactory.setURIResolver(resolver)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message