I installed Gradle in eclipse and want to import a libgdx Gradle project. But when i click on "Build Model" button, i have an error at about 50% of the loading bar. Here is the problem :
> Plug-in: org.springsource.ide.eclipse.gradle.core Severity : error
> Message : org.eclipse.osgi.internal.framework.EquinoxConfiguration$1
> Exception Stack trace : java.lang.reflect.InvocationTargetException
> at
> org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:92)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> Caused by: org.eclipse.core.runtime.CoreException:
> org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:284)
> at
> org.springsource.ide.eclipse.gradle.core.GradleProject.getGradleModel(GradleProject.java:633)
> at
> org.springsource.ide.eclipse.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:654)
> at
> org.springsource.ide.eclipse.gradle.ui.wizards.GradleImportWizardPageOne$11.doit(GradleImportWizardPageOne.java:516)
> at
> org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:84)
> ... 1 more Caused by: org.gradle.tooling.GradleConnectionException:
> Could not fetch model of type 'HierarchicalEclipseProject' using
> Gradle distribution
> 'http://services.gradle.org/distributions/gradle-1.11-all.zip'. at
> org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
> at
> org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
> at
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source) at
> org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
> at
> org.gradle.tooling.internal.consumer.DefaultModelBuilder.get(DefaultModelBuilder.java:48)
> at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider.buildModel(GradleModelProvider.java:385)
> at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:290)
> ... 5 more Caused by:
> org.gradle.launcher.daemon.client.DaemonConnectionException: Could not
> dispatch a message to the daemon. at
> org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:57)
> at
> org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:168)
> at
> org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:151)
> at
> org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:74)
> at
> org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:42)
> at
> org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:29)
> at
> org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:53)
> at
> org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:30)
> at
> org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:106)
> at
> org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:93)
> at
> org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:133)
> at
> org.gradle.tooling.internal.consumer.connection.ModelBuilderBackedModelProducer.produceModel(ModelBuilderBackedModelProducer.java:49)
> at
> org.gradle.tooling.internal.consumer.connection.GradleBuildAdapterProducer.produceModel(GradleBuildAdapterProducer.java:42)
> at
> org.gradle.tooling.internal.consumer.connection.BuildInvocationsAdapterProducer.produceModel(BuildInvocationsAdapterProducer.java:47)
> at
> org.gradle.tooling.internal.consumer.connection.ModelBuilderBackedConsumerConnection.run(ModelBuilderBackedConsumerConnection.java:55)
> at
> org.gradle.tooling.internal.consumer.DefaultModelBuilder$1.run(DefaultModelBuilder.java:59)
> at
> org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:82)
> at
> org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
> at
> org.gradle.tooling.internal.consumer.connection.LoggingInitializerConsumerActionExecutor.run(LoggingInitializerConsumerActionExecutor.java:44)
> at
> org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
> at
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source) Caused by:
> org.gradle.messaging.remote.internal.MessageIOException: Could not
> write message Build{id=67f4f73f-8d68-4e23-87c2-648a4fec30c8.1,
> currentDir=C:\applications\Eclipse} to '/127.0.0.1:1598'. at
> org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:115)
> at
> org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:51)
> ... 23 more Caused by: java.io.NotSerializableException:
> org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.writeObject(Unknown Source) at
> java.util.HashMap.internalWriteEntries(Unknown Source) at
> java.util.HashMap.writeObject(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.invokeWriteObject(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.writeObject(Unknown Source) at
> org.gradle.messaging.remote.internal.Message.send(Message.java:40) at
> org.gradle.messaging.remote.internal.DefaultMessageSerializer$MessageWriter.write(DefaultMessageSerializer.java:62)
> at
> org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:112)
> ... 24 more Root exception: org.eclipse.core.runtime.CoreException:
> org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:284)
> at
> org.springsource.ide.eclipse.gradle.core.GradleProject.getGradleModel(GradleProject.java:633)
> at
> org.springsource.ide.eclipse.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:654)
> at
> org.springsource.ide.eclipse.gradle.ui.wizards.GradleImportWizardPageOne$11.doit(GradleImportWizardPageOne.java:516)
> at
> org.springsource.ide.eclipse.gradle.core.util.GradleRunnable.run(GradleRunnable.java:84)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
> Caused by: org.gradle.tooling.GradleConnectionException: Could not
> fetch model of type 'HierarchicalEclipseProject' using Gradle
> distribution
> 'http://services.gradle.org/distributions/gradle-1.11-all.zip'. at
> org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
> at
> org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
> at
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source) at
> org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
> at
> org.gradle.tooling.internal.consumer.DefaultModelBuilder.get(DefaultModelBuilder.java:48)
> at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider.buildModel(GradleModelProvider.java:385)
> at
> org.springsource.ide.eclipse.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:290)
> ... 5 more Caused by:
> org.gradle.launcher.daemon.client.DaemonConnectionException: Could not
> dispatch a message to the daemon. at
> org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:57)
> at
> org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:168)
> at
> org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:151)
> at
> org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:74)
> at
> org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:42)
> at
> org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:29)
> at
> org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:53)
> at
> org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:30)
> at
> org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:106)
> at
> org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:93)
> at
> org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:133)
> at
> org.gradle.tooling.internal.consumer.connection.ModelBuilderBackedModelProducer.produceModel(ModelBuilderBackedModelProducer.java:49)
> at
> org.gradle.tooling.internal.consumer.connection.GradleBuildAdapterProducer.produceModel(GradleBuildAdapterProducer.java:42)
> at
> org.gradle.tooling.internal.consumer.connection.BuildInvocationsAdapterProducer.produceModel(BuildInvocationsAdapterProducer.java:47)
> at
> org.gradle.tooling.internal.consumer.connection.ModelBuilderBackedConsumerConnection.run(ModelBuilderBackedConsumerConnection.java:55)
> at
> org.gradle.tooling.internal.consumer.DefaultModelBuilder$1.run(DefaultModelBuilder.java:59)
> at
> org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:82)
> at
> org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
> at
> org.gradle.tooling.internal.consumer.connection.LoggingInitializerConsumerActionExecutor.run(LoggingInitializerConsumerActionExecutor.java:44)
> at
> org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
> at
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source) Caused by:
> org.gradle.messaging.remote.internal.MessageIOException: Could not
> write message Build{id=67f4f73f-8d68-4e23-87c2-648a4fec30c8.1,
> currentDir=C:\applications\Eclipse} to '/127.0.0.1:1598'. at
> org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:115)
> at
> org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:51)
> ... 23 more Caused by: java.io.NotSerializableException:
> org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.writeObject(Unknown Source) at
> java.util.HashMap.internalWriteEntries(Unknown Source) at
> java.util.HashMap.writeObject(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.invokeWriteObject(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at
> java.io.ObjectOutputStream.writeSerialData(Unknown Source) at
> java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at
> java.io.ObjectOutputStream.writeObject0(Unknown Source) at
> java.io.ObjectOutputStream.writeObject(Unknown Source) at
> org.gradle.messaging.remote.internal.Message.send(Message.java:40) at
> org.gradle.messaging.remote.internal.DefaultMessageSerializer$MessageWriter.write(DefaultMessageSerializer.java:62)
> at
> org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:112)
> ... 24 more
Session data :
eclipse.buildId=4.4.1.M20140925-0400
java.version=1.8.0_20
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
Any help will be appreciated
Credit to Kris De Volder and 'Alex' for the following explanation and work around, as commented on the issue I opened at this address https://issuetracker.springsource.com/browse/STS-3922 and mostly just directly quoted here to provide a complete answer for this question:
"The problem is coming from the following system properties [... as they contain] values that are not serializible. The properties are:
osgi.configuration.area.default
osgi.user.area.default
osgi.user.area
"As a workaround people can add -D properties to their STS.ini, eclipse.ini or GGTS.ini to set these properties to the values they used to have in Eclipse 4.4.1
-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=#user.dir
"We are also adding this workaround to Gradle tooling in upcoming 3.6.2 release so that when the gradle plugins are installed these props will be added to the .ini file automatically.
"Also worth mentioning that Gradle seems to have patched this problem on their end as well so another workaround is using Gradle 2.2.BUILD-SNAPSHOT. Set it via Gradle Preference page in the tooling or by setting in the gradle.wrapper in your gradle project(s)."
So there you have it! A simple fix which you can either apply manually yourself, or through an update. And I can confirm that it works.
I thought it' easier to edit the current answer specially when STS installation has /sts_installation_dir/configuration/config.ini instead off sts.ini.
The correct format to edit config.ini is little different since you do NOT prefix properties with -D.
It would be:
osgi.configuration.area.default=null
osgi.user.area.default=null
osgi.user.area=#user.dir
Same problem happened with me,Here is how i resolve. first of all it's quite easy.
[Follow 3 steps]
step 1: just connect to the internet and then click on build model.
step 2: It will start downloading a zip file.
step 3: After that restart eclipse.
enjoy coding...
:)
Related
I was trying to initializite the model but this error appears. I cant find any info about entityLocation paremeter.
> root.очередь_за_95: Parameter entityLocation is not specified
> (null/empty) java.lang.RuntimeException: root.очередь_за_95: Parameter
> entityLocation is not specified (null/empty)
> at com.anylogic.engine.Engine.error(Unknown Source)
> at com.anylogic.engine.Agent.error(Unknown Source)
> at com.anylogic.engine.Utilities.error(Unknown Source)
> at com.anylogic.libraries.processmodeling.Conveyor.H(Unknown Source)
> at com.anylogic.libraries.processmodeling.Conveyor.onStartup(Unknown
> Source)
> at com.anylogic.engine.Agent.a(Unknown Source)
> at com.anylogic.engine.Agent.a(Unknown Source)
> at com.anylogic.engine.Agent.start(Unknown Source)
> at com.anylogic.engine.Engine.start(Unknown Source)
> at com.anylogic.engine.ExperimentSimulation.i(Unknown Source)
> at com.anylogic.engine.ExperimentSimulation.run(Unknown Source)
> at com.anylogic.engine.gui.ExperimentHost.c(Unknown Source)
> at com.anylogic.engine.gui.ExperimentHost.executeCommand(Unknown Source)
> at com.anylogic.engine.internal.webserver.a.onCommand(Unknown Source)
> at com.anylogic.executor.basic.rest.BasicAnimationSessionController.lambda$null$9(BasicAnimationSessionController.java:112)
> at com.anylogic.engine.internal.webserver.g.acceptToAnimationSvgSession(Unknown
> Source)
> at com.anylogic.executor.basic.rest.BasicAnimationSessionController.lambda$startController$10(BasicAnimationSessionController.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.z.g$1.k(Unknown Source)
> at org.eclipse.jetty.servlets.QoSFilter.doFilter(QoSFilter.java:201)
> at com.anylogic.engine.internal.z.g$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)
> at org.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(Unknown Source)
Tried removing Source, delay and SelectOutput5 - no difference.
There are a few blocks in AnyLogic that cannot work without corresponding animation objects. Conveyors are one of them.
See example below you need to draw a path and then select the path in the conveyor setup for the conveyor to work
There are currently two types of conveyor blocks in AyLogic, the one in the Process Modeling Library and the one in the Material Handling LIbrary. You used the former, I would recommend the latter. Check some of the documentation here.
https://anylogic.help/markup/conveyor.html
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?
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
org.xml.sax.SAXParseException: cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element 'persistence' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1299)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1195)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.remote.AdminServiceForwarder.invoke(AdminServiceForwarder.java:334)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1438)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:84)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1276)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1355)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:800)
at javax.management.remote.rmi._RMIConnectionImpl_Tie.invoke(_RMIConnectionImpl_Tie.java:750)
at javax.management.remote.rmi._RMIConnectionImpl_Tie._invoke(_RMIConnectionImpl_Tie.java:158)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element 'persistence' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:85)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:113)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:202)
... 78 more
solved above problem by adding following property in IBM Websphere WAS 7 admin console:
Application servers > server1 > Java and Process Management > Process definition > Java Virtual Machine > New
Name: com.ibm.websphere.persistence.ApplicationsExcludedFromJpaProcessing
Value: *
today my avast updated the my java and now i cant do anything with my web service.
the localhost:9999 is showing the pic but if i click on the services i got this error:
type Exception report
> message Servlet.init() for servlet AxisServlet threw exception
>
> description The server encountered an internal error that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet.init() for servlet AxisServlet threw exception
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> root cause
>
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.util.JavaUtils
> org.apache.axis2.deployment.DeploymentEngine.setDeploymentFeatures(DeploymentEngine.java:1061)
> org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:154)
> org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:228)
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
please help me because i'm stucked here!
Thank you!
I've got the solution.
Reinstall the Java