Fail to run test within Studio 5.5.1 (fixed now)

Posted by Bartel Dodeman on 07-Dec-2015 05:41

When i run a ruletest and my test-subject is an .erf that i select from my local project i get an error "An unexpected error has occured in Rule Asset : null". The same test runs succesfully when i change the test-subject to the deployed .erf on my server). I'm using a SCO (nl.brocacef.corticon.BrocacefDataService) in my .erf.

What could be the cause of the error?

Here's the last lines of my CcStudio.log after i the test :

2015-12-07 12:30:54.731 INFO  [pool-3-thread-1] c.c.e.CcExtensions  - Loading extensions from C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar
2015-12-07 12:30:54.731 INFO  [pool-3-thread-1] c.c.e.CcExtensions  -    extension classes: [nl.brocacef.corticon.BrocacefDataService]
2015-12-07 12:30:54.731 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. START :: astrResourceName = CcExtensionsLocator.lc
2015-12-07 12:30:54.731 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. astrResourceName = CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath = bundleresource://23.fwk1311396942/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. ---------------------------
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lstrProtocol = bundleresource
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath == bundleresource://23.fwk1311396942/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath.getFile() == /CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath.getPath() == /CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile( AFTER RESOLVER ) .. lURLLocationPath = jar:file:/C:/Corticon/Studio/eclipse/plugins/com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile(1) .. lstrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile(2) .. lstrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath = bundleresource://22.fwk1311396942/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. ---------------------------
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lstrProtocol = bundleresource
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath == bundleresource://22.fwk1311396942/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath.getFile() == /CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. lURLLocationPath.getPath() == /CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile( AFTER RESOLVER ) .. lURLLocationPath = jar:file:/C:/Corticon/Studio/eclipse/plugins/com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!/CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile(1) .. lstrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile(2) .. lstrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getAllLocationsOfFile() .. END = [file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!\CcExtensionsLocator.lc, file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!\CcExtensionsLocator.lc]
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) :: Start
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) astrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) astrPath 2 = \C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.1.0_r8944-rel-5-5-1-x.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) :: Start
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) astrPath = file:\C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.732 DEBUG  [pool-3-thread-1] d.E.e.0.0 CcUtil - CcUtil.getDirectoryPath(String) astrPath 2 = \C:\Corticon\Studio\eclipse\plugins\com.corticon.eclipse.studio.operations.extended.core_5.5.9.jar!\CcExtensionsLocator.lc
2015-12-07 12:30:54.736 DEBUG  [pool-3-thread-1] d.E.e.0.0 com.corticon.reactor.engine.DataManager - 319 addNewMessage() END 1 ivectMessages.size(): 1
2015-12-07 12:30:54.736 ERROR  [pool-3-thread-1] d.E.e.0.0 com.corticon.reactor.CcJavaReactor - CcJavaReactor.run() -- null com.corticon.reactor.CcReactorException: null
    at com.corticon.reactor.engine.jdo.RuleConnectorExec.fire(RuleConnectorExec.java:49)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.RuleSetExec.fire(RuleSetExec.java:47)
    at com.corticon.reactor.engine.jdo.JdoEngine.execute(JdoEngine.java:167)
    at com.corticon.reactor.CcJavaReactor.run(CcJavaReactor.java:117)
    at com.corticon.reactor.util.CcGenericReactor.execute(CcGenericReactor.java:972)
    at com.corticon.reactor.util.CcGenericReactor.execute(CcGenericReactor.java:797)
    at com.corticon.eclipse.server.core.impl.CcServerThreadPoolCallableDocument.call(CcServerThreadPoolCallableDocument.java:81)
    at com.corticon.eclipse.server.core.impl.CcServerThreadPoolCallableDocument.call(CcServerThreadPoolCallableDocument.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

2015-12-07 12:30:54.736 DEBUG  [pool-3-thread-1] d.E.e.0.0 com.corticon.reactor.util.CcGenericReactor - CcGenericReactor.execute(Document,...) - End
2015-12-07 12:30:54.736 DEBUG  [pool-3-thread-1] o.h.e.t.s.AbstractTransactionImpl  - rolling back
2015-12-07 12:30:54.736 DEBUG  [pool-3-thread-1] o.h.e.t.i.j.JdbcTransaction  - rolled JDBC Connection
2015-12-07 12:30:54.736 DEBUG  [pool-3-thread-1] o.h.e.t.i.j.JdbcTransaction  - re-enabling autocommit
2015-12-07 12:30:54.737 DEBUG  [pool-3-thread-1] o.h.e.j.i.LogicalConnectionImpl  - Releasing JDBC connection
2015-12-07 12:30:54.737 DEBUG  [pool-3-thread-1] o.h.e.j.i.LogicalConnectionImpl  - Released JDBC connection

All Replies

Posted by James Arsenault on 09-Dec-2015 10:32

My first guess would be that you don't have the SCO on the classpath for Studio. Have you been able to use the SCO in Studio at all?

Posted by Jan Krishnamurthy on 09-Dec-2015 11:09

I believe an extended operator is being used in the ruleflow.

When publishing the ruleflow  from Studio to Server, the ext op jar is not present in the classpath of the server, while it is available locally in Studio for use by the ruleflow within the /plugins directory

The ideal way to deploy a ruleflow that uses extended operators is to precompile to an .eds and then deploy that to the server using a cdd or by uploading it from the Server Console. Also make sure the extended operator jar is present in the classpath of the Server.

- Jan

Posted by Bartel Dodeman on 10-Dec-2015 02:29

Studio does not show a problem whith flows that use my SCO. Because i made changes to my SCO i re-installed it on both Studio and Server. Now Studio still shows the same error during deployment, but CcStudio.log shows something different  :

09:03:20.398 DEBUG  [ModalContext] Cc CcFileIO - CcFileIO.create(E:/CorticonWork/STU/CcServerSandbox/DoNotDelete/Compilation/C25_1449734551756.404588/WSDL/Wsdl.wsdl, contents)

09:03:20.398 DEBUG  [ModalContext] Cc CcFileIO - CcFileIO.create(..) DOES NOT EXIST

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,sthp=1987.1875,shp=1779.6488800048828,sex=0,stq=0,sec=15,sfc=0,saex=2055.733333333333,sawt=113.86666666666666

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_Multizorg_Stroomschemas_Vlieland_Multizorg_Prijs.erf_R_ALL_false.0.0,ec=1,aex=1092.0,awt=141.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_VGZ_Stroomschemas_Vlieland_VGZ_Prijs.erf_R_ALL_false.0.0,ec=1,aex=718.0,awt=172.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_ENO_Stroomschemas_Vlieland_ENO_Prijs.erf_R_ALL_false.0.0,ec=1,aex=562.0,awt=141.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_BENU0000_Stroomschemas_Vlieland_Benu0000_Prijs.erf_R_ALL_false.0.0,ec=1,aex=499.0,awt=125.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_BENUSchappenplan_Stroomschemas_Vlieland_BenuSchappenplan_Prijs.erf_R_ALL_false.0.0,ec=2,aex=397.5,awt=62.5,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_ZorgEnZekerheid_Stroomschemas_Vlieland_ZorgEnZekerheid_Prijs.erf_R_ALL_false.0.0,ec=1,aex=1919.0,awt=141.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_DeFriesland_Stroomschemas_Vlieland_DeFriesland_Prijs.erf_R_ALL_false.0.0,ec=1,aex=530.0,awt=140.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_AchmeaPreferentie_Stroomschemas_Vlieland_AchmeaPreferentie_Prijs.erf_R_ALL_false.0.0,ec=2,aex=374.0,awt=70.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_AchmeaIDEA_Stroomschemas_Vlieland_AchmeaIDEA_Prijs.erf_R_ALL_false.0.0,ec=1,aex=546.0,awt=156.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_CZ_Stroomschemas_Vlieland_CZ_Prijs.erf_R_ALL_false.0.0,ec=1,aex=920.0,awt=140.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace_DSW_Stroomschemas_Vlieland_DSW_Prijs.erf_R_ALL_false.0.0,ec=1,aex=577.0,awt=140.0,fc=0

09:03:21.768 INFO DIAGNOSTIC [CcDiagnosticsThread] Cc  - id=1449734601768,ds=E__CorticonWorkspace__Algemeen_Stroomschemas_BepalingCompliancePro.erf_R_ALL_false.0.0,ec=2,aex=10965.0,awt=73.5,fc=0

09:03:21.788 DEBUG  [ModalContext] Cc CcServerUtils - ====================================== Compile EDS file location = E:/CorticonWork/STU/CcServerSandbox/DoNotDelete/DecisionServices/TU1_1449734547837.061848/BepalingCompliancePro_v1_6.eds

09:03:22.018 DEBUG  [ModalContext] Cc com.corticon.eclipse.server.core.impl.CcServerImpl - CcServer().precompileDecisionService() End - lstrFilePath = E:/CorticonWork/STU/CcServerSandbox/DoNotDelete/DecisionServices/TU1_1449734547837.061848/BepalingCompliancePro_v1_6.eds

09:03:22.047 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (org.apache.commons.logging.impl.Log4JLogger, false)

09:03:36.795 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl, false)

09:03:36.795 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, false)

09:03:37.215 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl, false)

09:03:37.215 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl, false)

09:03:37.218 DEBUG  [ModalContext] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager, false)

09:03:37.224 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl, false)

09:03:37.224 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, false)

09:03:37.246 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl, false)

09:03:37.246 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, false)

09:03:37.273 DEBUG  [main] c.c.r.u.CcClassLoader  - Loading non-Corticon class: (com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl, false)

Posted by Bartel Dodeman on 10-Dec-2015 02:39

My i posted my previous message by accident in this topic. My problems with running ruletest are gone after i changed my SCO and re-installed it in Studio. I can now run rultests succesfully that have flows as a subject wich use my SCO.

Posted by James Arsenault on 10-Dec-2015 07:52

Glad to hear its working.

Jim

This thread is closed