You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Xuli (JIRA)" <ji...@apache.org> on 2007/03/19 16:55:32 UTC

[jira] Created: (ODE-101) TransformerFactory is used without initialization in Start()

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
         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.


[jira] Resolved: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Maciej Szefler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maciej Szefler resolved ODE-101.
--------------------------------

    Resolution: Fixed

> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Xuli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483025 ] 

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

Maybe add following lines to "org.apache.ode.bpel.elang.xpath10.runtime.XPath10ExpressionRuntime.initialize(Map properties)" is better to solve the problem:

    public void initialize(Map properties) throws ConfigurationException {
--------------------------------------------------------------------------------------------------------------
        TransformerFactory trsf = new net.sf.saxon.TransformerFactoryImpl();
        XslTransformHandler.getInstance().setTransformerFactory(trsf);
--------------------------------------------------------------------------------------------------------------
    }


> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Maciej Szefler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483276 ] 

Maciej Szefler commented on ODE-101:
------------------------------------

Ok, i get it, the problem is that if you only use Xpath 1.0 it won't get initialized properly (bc the init occurs in XPath20 module only).

Xuli last suggested fix seems the way to go. I'll check that in.


> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Xuli (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Matthieu Riou (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482784 ] 

Matthieu Riou commented on ODE-101:
-----------------------------------

Yeah, I'm not sure I'm following either. We can't really resolve the problem by adding these lines where they don't necessarily belong to. Could you give us a stacktrace for the exception so we can check the problematic code path? Thanks.

> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Maciej Szefler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482300 ] 

Maciej Szefler commented on ODE-101:
------------------------------------

I'm not sure I follow. The lines you refer to get called in XPath20ExpressionRuntime.initialize, so I don't see why you'd be getting a problem, unless something else was going on. Can you provide an exception trace showing the error?


> 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.


[jira] Closed: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Matthieu Riou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthieu Riou closed ODE-101.
-----------------------------


> 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.


[jira] Updated: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Xuli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xuli updated ODE-101:
---------------------

    Affects Version/s: Incubator

I solved this problem by adding the following lines to org.apache.ode.jbi.OdeServiceUnit.Start():

        if (_registered.size() != pids.size()) {
            for (QName pid : new ArrayList<QName>(_registered))
                try {
                    _ode._server.unregister(pid);
                    _registered.remove(pid);
                } catch (Exception ex) {
                    __log.error("Unable to unload " + pid, ex);
                }
        }
        else
        {
-------------------------------------------------------------------------------------------------------
            // Initialize _transformerFactory member of XslTransformHandler
            TransformerFactory trsf = new net.sf.saxon.TransformerFactoryImpl();
            XslTransformHandler.getInstance().setTransformerFactory(trsf);
-------------------------------------------------------------------------------------------------------        }


> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Xuli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483384 ] 

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

Thank you very much.

> 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.


[jira] Commented: (ODE-101) TransformerFactory is used without initialization in Start()

Posted by "Xuli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482669 ] 

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

There are no such lines been called in XPath10ExpressionRuntime.initialize(). I added them then the problem is gone.

> 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.