I am trying to run the Machine Learning and Anylogic Simulation example workflow provided here. - https://www.anylogic.com/features/artificial-intelligence/h2o-ai/
I can run the second workflow, but the first workflow (Hospital Planning) keeps giving errors. I have tried it running on different systems as well.
Any help will be highly appreciated.
Below is the error code :
Loading Mojo: pipeline.mojo
Loading Mojo: pipeline.mojo
Error during model creation:
Unable to make protected final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to
unnamed module #44f69442
java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to
unnamed module #44f69442
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
at javassist.util.proxy.SecurityActions.setAccessible(SourceFile:159)
at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(SourceFile:213)
at javassist.util.proxy.DefineClassHelper$Java11.defineClass(SourceFile:52)
at javassist.util.proxy.DefineClassHelper.toClass(SourceFile:260)
at javassist.ClassPool.toClass(SourceFile:1232)
at javassist.ClassPool.toClass(SourceFile:1090)
at javassist.ClassPool.toClass(SourceFile:1048)
at javassist.CtClass.toClass(SourceFile:1290)
at ai.h2o.mojos.runtime.c.G.d(SourceFile:118)
at ai.h2o.mojos.runtime.c.G.a(SourceFile:60)
at ai.h2o.mojos.runtime.c.n.a(SourceFile:64)
at ai.h2o.mojos.runtime.readers.b.b.a(SourceFile:135)
at ai.h2o.mojos.runtime.MojoPipelineFactoryImpl.loadFrom(SourceFile:144)
at ai.h2o.mojos.runtime.MojoPipelineFactoryImpl.loadFrom(SourceFile:101)
at ai.h2o.mojos.runtime.MojoPipeline.loadFrom(SourceFile:41)
at hospital_capacity_planning_ml.Main.loadModel(Main.java:690)
at hospital_capacity_planning_ml.Main.setupPlainVariables_Main_xjal(Main.java:1498)
at hospital_capacity_planning_ml.Main.doCreate(Main.java:1421)
at com.anylogic.engine.Agent.createAsEmbedded(Unknown Source)
at com.anylogic.engine.Agent.create(Unknown Source)
at com.anylogic.engine.Engine.start(Unknown Source)
at com.anylogic.engine.ExperimentSimulation.a(Unknown Source)
at com.anylogic.engine.ExperimentSimulation.run(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost.f(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost.executeCommand(Unknown Source)
at com.anylogic.engine.internal.webserver.e.onCommand(Unknown Source)
at com.anylogic.executor.basic.rest.BasicAnimationSessionController.
lambda$null$9(BasicAnimationSessionController.java:112)
at com.anylogic.engine.internal.webserver.i.acceptToAnimationSvgSession(Unknown Source)
at com.anylogic.executor.basic.rest.BasicAnimationSessionController.
lambda$startController$10(BasicAni mationSessionController.java:112)
at spark.ResponseTransformerRouteImpl$1.handle(ResponseTransformerRouteImpl.java:47)
at spark.http.matching.Routes.execute(Routes.java:61)
at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130)
at com.anylogic.engine.internal.webserver.config.ALServerFactory$1.lambda$0(Unknown Source)
at org.eclipse.jetty.servlets.QoSFilter.doFilter(QoSFilter.java:201)
at com.anylogic.engine.internal.webserver.config.ALServerFactory$1.doHandle(Unknown Source)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1568)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:530)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
atorg.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java
:382)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.base/java.lang.Thread.run(Thread.java:834)
Error during drawing animation frame:
java.lang.NullPointerException
at com.anylogic.engine.gui.SVGFrameProducer.n(Unknown Source)
at com.anylogic.engine.gui.SVGFrameProducer.n(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost$1.l(Unknown Source)
at com.anylogic.engine.gui.ExperimentHost$1.n(Unknown Source)
at com.anylogic.engine.gui.SVGFrameCollector.l(Unknown Source)
at com.anylogic.engine.gui.SVGFrameCollector.c(Unknown Source)
at java.base/java.lang.Thread.run(Thread.java:834)
The problem is that AnyLogic 8.7 switched to newer Java (from 9 to 11).
Add the following line to Java machine arguments in the experiment properties to make the model work in the recent updates 8.7.x:
--add-opens java.base/java.lang=ALL-UNNAMED
Related
After fresh Eclipse install (Windows 10, 64bit, JRE 1.8.0_181-b13) I installed Acceleo 3.7.7.201812041426. But after creating new project (2002/ecore with "Generate file" and "Main template") it fails creating sceleton mtl and java files with error
An internal error occurred during: "Acceleo".
with exception
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.eclipse.emf.ecore.impl.EPackageImpl.eObjectForURIFragmentNameSegment(EPackageImpl.java:1970)
at org.eclipse.emf.ecore.impl.EModelElementImpl.eObjectForURIFragmentSegment(EModelElementImpl.java:473)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject(ResourceImpl.java:811)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject(ResourceImpl.java:787)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setValueFromId(XMLHandler.java:2868)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XMLHandler.java:2773)
at org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAttribs(SAXXMIHandler.java:79)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFactory(XMLHandler.java:2247)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTypeName(XMLHandler.java:2150)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:2085)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.createObject(XMIHandler.java:151)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLHandler.java:1868)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:1048)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:82)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:1026)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:720)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHandler.java:190)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
at org.eclipse.acceleo.model.mtl.resource.EMtlResourceImpl.doLoad(EMtlResourceImpl.java:93)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1563)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1342)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:391)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:356)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.loadAllPlatformOutputFiles(AcceleoProject.java:737)
at org.eclipse.acceleo.ide.ui.resources.AcceleoProject.loadNotAccessibleOutputFiles(AcceleoProject.java:680)
at org.eclipse.acceleo.internal.ide.ui.views.overrides.OverridesBrowser.updateViewTemplates(OverridesBrowser.java:340)
at org.eclipse.acceleo.internal.ide.ui.views.overrides.OverridesBrowser$3.run(OverridesBrowser.java:315)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
I have tried several times with new eclipse setups but failed every time. Is this Acceleo bug?
since Eclipse update to 2018-12 I can't build any Acceleo project with Query.
I use Acceleo 3.7.7
and update EMF to nigthly version to solves this issue :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=543103
for example i get error like this :
An error has occurred during the loading of 'platform:/resource/myProject/bin/com/xxxx/z/acceleo/module/program/utils/ServiceUtils.emtl'.
Message: Unresolved reference '/0/isProgram/%/%.2'. (platform:/resource/myProject/bin/com/xxxx/z/acceleo/module/program/utils/ServiceUtils.emtl, 4421, 74)
Location: platform:/resource/myProject/bin/com/xxxx/z/acceleo/module/program/utils/ServiceUtils.emtl at line 4 421 and column 74
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/isProgram/%/%.2'. (file:/D:/Appsdev/irdz/workspaces/generators/myProject/bin/com/xxxx/z/acceleo/module/program/utils/ServiceUtils.emtl, 4421, 74)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:391)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:356)
at org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:233)
at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.doBuild(AcceleoParser.java:640)
at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:441)
at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildAll(AcceleoParser.java:272)
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.buildAll(AcceleoBuilder.java:308)
at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:172)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:833)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:371)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:392)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:244)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/isProgram/%/%.2'. (file:/D:/Appsdev/irdz/workspaces/generators/myProject/bin/com/xxxx/z/acceleo/module/program/utils/ServiceUtils.emtl, 4421, 74)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1197)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1282)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:261)
at org.eclipse.acceleo.model.mtl.resource.EMtlResourceImpl.doLoad(EMtlResourceImpl.java:93)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1563)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1342)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
... 21 more
my mtl file is like this :
[query public isProgram(arg0 : ProgramModel) : Boolean
= invoke('com.xxxx.z.acceleo.module.program.utils.ServiceUtils', 'isProgram(z.ProgramModel)', Sequence{arg0})
/]
have you an idea to solve my problem?
before Eclipse & Acceleo update i can build the project.
i tried -clean eclipse parameter, clean project , reinstall eclipse , create new workspace with no problem change
I have installed Drools 7.7.0.Final war file in JBoss EAP 7.0.0.GA and trying to build a sample application. During build it is always throwing below exception. I am not able to proceed further. Please help to resolve this error.
13:39:37,501 ERROR [org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer] (Thread-529) Unable to index 'default://master#myteam/Mortgages/src/test/resources/mortgages/mortgages/Pricing%20low%20end.scenario'.: org.guvnor.common.services.shared.exceptions.GenericPortableException: An error occurred while executing the Local Build Config stage.
at org.guvnor.common.services.backend.exceptions.ExceptionUtilities.handleException(ExceptionUtilities.java:46)
at org.kie.workbench.common.services.datamodel.backend.server.DataModelServiceImpl.getModuleDataModel(DataModelServiceImpl.java:95)
at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
at org.kie.workbench.common.services.datamodel.backend.server.service.DataModelService$1079160182$Proxy$_$$_WeldClientProxy.getModuleDataModel(Unknown Source)
at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.getModuleDataModelOracle(TestScenarioFileIndexer.java:77)
at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer.fillIndexBuilder(TestScenarioFileIndexer.java:52)
at org.kie.workbench.common.services.refactoring.backend.server.indexing.AbstractFileIndexer.toKObject(AbstractFileIndexer.java:78)
at org.drools.workbench.screens.testscenario.backend.server.indexing.TestScenarioFileIndexer$Proxy$_$$_WeldClientProxy.toKObject(Unknown Source)
at org.uberfire.ext.metadata.io.BatchIndex$3.visitFile(BatchIndex.java:186)
at org.uberfire.ext.metadata.io.BatchIndex$3.visitFile(BatchIndex.java:152)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:71)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:96)
at org.uberfire.java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:48)
at org.uberfire.java.nio.file.Files.walkFileTree(Files.java:1031)
at org.uberfire.java.nio.file.Files.walkFileTree(Files.java:1052)
Caused by: java.lang.RuntimeException: An error occurred while executing the Local Build Config stage.
at org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:126)
at org.guvnor.ala.pipeline.execution.PipelineExecutor.execute(PipelineExecutor.java:76)
at org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker.invokeLocalBuildPipeLine(BuildPipelineInvoker.java:88)
at org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker$Proxy$_$$_WeldClientProxy.invokeLocalBuildPipeLine(Unknown Source)
at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.invokeLocalBuildPipeLine(BuildServiceHelper.java:152)
at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.localBuild(BuildServiceHelper.java:82)
at org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper$Proxy$_$$_WeldClientProxy.localBuild(Unknown Source)
at org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl.build(BuildServiceImpl.java:69)
at org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(Unknown Source)
at org.kie.workbench.common.services.backend.builder.service.BuildInfoService.getBuildInfo(BuildInfoService.java:59)
at org.kie.workbench.common.services.backend.builder.service.BuildInfoService$Proxy$_$$_WeldClientProxy.getBuildInfo(Unknown Source)
at org.kie.workbench.common.services.datamodel.backend.server.cache.LRUModuleDataModelOracleCache.makeModuleOracle(LRUModuleDataModelOracleCache.java:81)
at org.kie.workbench.common.services.datamodel.backend.server.cache.LRUModuleDataModelOracleCache.assertModuleDataModelOracle(LRUModuleDataModelOracleCache.java:72)
at org.kie.workbench.common.services.datamodel.backend.server.cache.LRUModuleDataModelOracleCache$Proxy$_$$_WeldClientProxy.assertModuleDataModelOracle(Unknown Source)
at org.kie.workbench.common.services.datamodel.backend.server.DataModelServiceImpl.getModuleDataModel(DataModelServiceImpl.java:91)
... 28 more
Caused by: java.lang.IllegalArgumentException: No enum constant org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfig.BuildType.${input.build-type}
at java.lang.Enum.valueOf(Unknown Source)
at org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfig$BuildType.valueOf(LocalBuildConfig.java:41)
at org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfigExecutor.decodeBuildType(LocalBuildConfigExecutor.java:90)
at org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfigExecutor.apply(LocalBuildConfigExecutor.java:56)
at org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfigExecutor.apply(LocalBuildConfigExecutor.java:38)
at org.kie.workbench.common.services.backend.builder.ala.LocalBuildConfigExecutor$Proxy$_$$_WeldClientProxy.apply(Unknown Source)
at org.guvnor.ala.pipeline.execution.PipelineExecutor.lambda$continuePipeline$0(PipelineExecutor.java:109)
at org.guvnor.ala.pipeline.execution.PipelineExecutor$$Lambda$288/221017006.accept(Unknown Source)
at org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:38)
at org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:33)
at org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:94)
... 42 more
I tried to load the package from the Guvnor using the following piece of code :-
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("GenderFact.xml"),ResourceType.CHANGE_SET);
System.out.println("fair trial");
KnowledgeBuilderErrors errors = kbuilder.getErrors();
if (errors.size() > 0) {
for (KnowledgeBuilderError error: errors) {
System.err.println(error);
}
throw new IllegalArgumentException("Could not parse knowledge.");
}
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
return kbase;
and the contents of the GenderFact.xml are :-
<change-set xmlns="http://drools.org/drools-5.0/change-set"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd">
<add>
<resource
source="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/MyLastTrial/LATEST/"
type="PKG" basicAuthentication="disabled" username="admin" password="admin" />
</add>
When I tried to execute this from Eclipse , I get the following error :-
java.lang.RuntimeException: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = -64624826351992706
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:705)
at org.drools.compiler.PackageBuilder.addPackageFromChangeSet(PackageBuilder.java:772)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:694)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:45)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34)
at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:43)
at com.sample.DroolsTest.main(DroolsTest.java:26)
Caused by: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = -64624826351992706
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.drools.rule.DialectRuntimeRegistry.readExternal(DialectRuntimeRegistry.java:59)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.drools.rule.Package.readExternal(Package.java:208)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:205)
at org.drools.core.util.DroolsStreamUtils.streamIn(DroolsStreamUtils.java:189)
at org.drools.compiler.PackageBuilder.addPackageFromInputStream(PackageBuilder.java:781)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:692)
... 6 more
Preconditions :-
I use Guvnor 5.3 with jboss AS 7.0.
Both the client and the server are sharing the same jre7.
Drools runtime 5.3 in Eclipse Indigo (Service Release 2)
Requesting for a workaround ...
Drools related jars used in java project are NOT of same version as used in GUvnor 5.3.
Use jars from Guvnor 5.3 into your java project.
It will solve problem. :)
I am trying to create a service ticket, calling the methods (login, createTicket, logout) from Eclipse IDE. I had called the method login(), by passing uid, pwd, and got SID which is a session ID, in return. Now I am trying to create a ticket, and I am passing all the required params.
Error that I got is:
DEBUG [main] (Call.java:2445) - NSPush (32)
DEBUG [main] (Call.java:2445) - org.apache.axis.i18n.resource::handleGetObject(empty00)
DEBUG [main] (Call.java:2445) - NSPop (empty)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{}ErrorMessage:null
{}ErrorCode:1000
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:796)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at ITSDTickHandler.intializeWebServices(ITSDTickHandler.java:146)
at ITSDTickHandler.main(ITSDTickHandler.java:26)
Help needed regarding this!
Well, I tried the same method by giving only the required parameters, and it had worked. The other optional parameters take some pre-defined set of value, which, when not given, raises the error.