Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lpsolve - NoClassDefFoundError #41

Open
neelz040 opened this issue Nov 25, 2016 · 11 comments
Open

lpsolve - NoClassDefFoundError #41

neelz040 opened this issue Nov 25, 2016 · 11 comments

Comments

@neelz040
Copy link

neelz040 commented Nov 25, 2016

I am trying to run the ILP algorithm through RapidProM Extension 4.0.1 on a Mac OS 10.11.6 (El Capitan).

I reinstalled the RapidProM extension through the marketplace of the RapidMiner Studio.

It ran one day after initial installation. I did not do anything strange after that except clean my download folder and bin (??). Although I do not think this is the problem.

Exception: java.lang.NoClassDefFoundError
Message: Could not initialize class org.processmining.lpengines.implementations.LPEngineLpSolveImpl
Stack trace:

org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:18)
org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:10)
org.processmining.hybridilpminer.plugins.HybridILPMinerPlugin.mine(HybridILPMinerPlugin.java:97)
org.rapidprom.operators.discovery.ILPMinerOperator.doWork(ILPMinerOperator.java:68)
com.rapidminer.operator.Operator.execute(Operator.java:1005)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:428)
com.rapidminer.operator.Operator.execute(Operator.java:1005)
com.rapidminer.Process.run(Process.java:1205)
com.rapidminer.Process.run(Process.java:1101)
com.rapidminer.Process.run(Process.java:1054)
com.rapidminer.Process.run(Process.java:1049)
com.rapidminer.Process.run(Process.java:1039)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)

@neelz040
Copy link
Author

So, it works again ! I cannot tell you what I did because I don't know?? I am happy it works though :-)

@neelz040
Copy link
Author

Maybe simple restart of my mac?

@abolt
Copy link

abolt commented Nov 25, 2016

Hahaha well... not ideal, but if someone else has this same problem please let me know

@abolt abolt closed this as completed Nov 25, 2016
@s-j-v-zelst s-j-v-zelst reopened this Nov 30, 2016
@s-j-v-zelst
Copy link

it still appears, see issue #43
the ProM resource is not the same as the RapidProM resource, i.e. the lpsolve55j.jni file.
It might be related to that

@s-j-v-zelst
Copy link

I've tested this on my macbook (from the source code) and i can not reproduce the error, lpsolve just works.

@abolt
Copy link

abolt commented Nov 30, 2016

I just freshly installed rapidminer and rapidprom (from the marketplce) in my macbook pro and it just works...
screen shot 2016-11-30 at 10 52 15 am

@s-j-v-zelst
Copy link

It seems that for the other student that had the problem, restarting also did the trick.

@neelz040
Copy link
Author

Restarting my notebook has so far always 'fixed' this issue. Just had it again

@benyaminsalimi
Copy link

I have the same problem, and I just restart my mac and problem is gone! I have no idea about this!

@RaphaelBijiaoui
Copy link

I stumble upon the problem and I reporduce it each time I run a "Conformance Checking" componant (MXML LegacyClassifier selected, the only option though).
For my testing I started with the first tutorial provided with rapid prom and started eliminated component from finish to start until the error is no more encountered. Seems "Conformance Checking" is the one responsible. any idea ? (RapidMiner 9.0, RapidProm 4.0.0.1)

@jteijema
Copy link

jteijema commented Apr 1, 2019

HI, I'm having this problem too. It's combined with a lot of other errors in the rapidprom extention:

Using the ILP Miner gives:
`Exception: java.lang.NoClassDefFoundError
Message: Could not initialize class org.processmining.lpengines.implementations.LPEngineLpSolveImpl
Stack trace:

org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:18)
org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:10)
org.processmining.hybridilpminer.plugins.HybridILPMinerPlugin.mine(HybridILPMinerPlugin.java:97)
org.rapidprom.operators.discovery.ILPMinerOperator.doWork(ILPMinerOperator.java:68)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.collections.CollectionIterationOperator.doWork(CollectionIterationOperator.java:118)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.Process.executeRoot(Process.java:1386)
com.rapidminer.Process.execute(Process.java:1327)
com.rapidminer.Process.run(Process.java:1300)
com.rapidminer.Process.run(Process.java:1186)
com.rapidminer.Process.run(Process.java:1139)
com.rapidminer.Process.run(Process.java:1134)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)`

Using the alpha miner on classic gives:
`Exception: java.lang.NoClassDefFoundError
Message: org/processmining/plugins/pnml/base/PnmlElementFactory
Stack trace:

org.processmining.acceptingpetrinet.models.impl.AcceptingPetriNetFactory.createAcceptingPetriNet(AcceptingPetriNetFactory.java:40)
org.processmining.alphaminer.algorithms.AlphaClassicMinerImpl.runAccPN(AlphaClassicMinerImpl.java:115)
org.processmining.alphaminer.algorithms.AlphaClassicMinerImpl.run(AlphaClassicMinerImpl.java:87)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.apply(AlphaMinerPlugin.java:43)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.apply(AlphaMinerPlugin.java:54)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.applyAlphaClassic(AlphaMinerPlugin.java:75)
org.rapidprom.operators.discovery.AlphaMinerOperator.doWork(AlphaMinerOperator.java:70)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.collections.CollectionIterationOperator.doWork(CollectionIterationOperator.java:118)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.Process.executeRoot(Process.java:1386)
com.rapidminer.Process.execute(Process.java:1327)
com.rapidminer.Process.run(Process.java:1300)
com.rapidminer.Process.run(Process.java:1186)
com.rapidminer.Process.run(Process.java:1139)
com.rapidminer.Process.run(Process.java:1134)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)

Cause
Exception: java.lang.ClassNotFoundException
Message: org.processmining.plugins.pnml.base.PnmlElementFactory
Stack trace:

java.net.URLClassLoader.findClass(URLClassLoader.java:381)
com.rapidminer.tools.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:131)
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
org.processmining.acceptingpetrinet.models.impl.AcceptingPetriNetFactory.createAcceptingPetriNet(AcceptingPetriNetFactory.java:40)
org.processmining.alphaminer.algorithms.AlphaClassicMinerImpl.runAccPN(AlphaClassicMinerImpl.java:115)
org.processmining.alphaminer.algorithms.AlphaClassicMinerImpl.run(AlphaClassicMinerImpl.java:87)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.apply(AlphaMinerPlugin.java:43)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.apply(AlphaMinerPlugin.java:54)
org.processmining.alphaminer.plugins.AlphaMinerPlugin.applyAlphaClassic(AlphaMinerPlugin.java:75)
org.rapidprom.operators.discovery.AlphaMinerOperator.doWork(AlphaMinerOperator.java:70)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.collections.CollectionIterationOperator.doWork(CollectionIterationOperator.java:118)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.Process.executeRoot(Process.java:1386)
com.rapidminer.Process.execute(Process.java:1327)
com.rapidminer.Process.run(Process.java:1300)
com.rapidminer.Process.run(Process.java:1186)
com.rapidminer.Process.run(Process.java:1139)
com.rapidminer.Process.run(Process.java:1134)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)`

Using the conformance checker on ILP replayer:
`Exception: java.lang.NoClassDefFoundError
Message: Could not initialize class lpsolve.LpSolve
Stack trace:

nl.tue.astar.util.ilp.SparseLPMatrix$LPSOLVE.toSolver(SparseLPMatrix.java:27)
nl.tue.astar.util.ilp.LPMatrix$SPARSE$LPSOLVE.toSolver(LPMatrix.java:44)
nl.tue.astar.util.ilp.SparseLPMatrix$LPSOLVE.toSolver(SparseLPMatrix.java:18)
org.processmining.plugins.astar.petrinet.impl.AbstractPILPDelegate.(AbstractPILPDelegate.java:249)
org.processmining.plugins.astar.petrinet.impl.PILPDelegate.(PILPDelegate.java:87)
org.processmining.plugins.astar.petrinet.impl.PILPDelegate.(PILPDelegate.java:60)
org.processmining.plugins.astar.petrinet.PetrinetReplayerWithILP.getDelegate(PetrinetReplayerWithILP.java:62)
org.processmining.plugins.astar.petrinet.PetrinetReplayerWithILP.getDelegate(PetrinetReplayerWithILP.java:20)
org.processmining.plugins.astar.petrinet.AbstractPetrinetReplayer.replayLog(AbstractPetrinetReplayer.java:427)
org.rapidprom.operators.conformance.ConformanceAnalysisOperator.getAlignment(ConformanceAnalysisOperator.java:328)
org.rapidprom.operators.conformance.ConformanceAnalysisOperator$ALIGNMENT_CALCULATOR.call(ConformanceAnalysisOperator.java:241)
org.rapidprom.operators.conformance.ConformanceAnalysisOperator$ALIGNMENT_CALCULATOR.call(ConformanceAnalysisOperator.java:223)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
java.util.concurrent.FutureTask.report(FutureTask.java:122)
java.util.concurrent.FutureTask.get(FutureTask.java:206)
org.rapidprom.operators.util.FutureRapidProM.get(FutureRapidProM.java:42)
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
org.rapidprom.operators.conformance.ConformanceAnalysisOperator.doWork(ConformanceAnalysisOperator.java:206)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.collections.CollectionIterationOperator.doWork(CollectionIterationOperator.java:118)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.Process.executeRoot(Process.java:1386)
com.rapidminer.Process.execute(Process.java:1327)
com.rapidminer.Process.run(Process.java:1300)
com.rapidminer.Process.run(Process.java:1186)
com.rapidminer.Process.run(Process.java:1139)
com.rapidminer.Process.run(Process.java:1134)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)`

Reinstalled everything, cleared caches, restarted everything. Kinda out of ideas. Hope you can help.

edit: forgot this one
Exception: java.lang.UnsatisfiedLinkError
Message: no lpsolve55 in java.library.path
Stack trace:

java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
java.lang.Runtime.loadLibrary0(Runtime.java:870)
java.lang.System.loadLibrary(System.java:1122)
org.processmining.lpengines.implementations.LPEngineLpSolveImpl.init(LPEngineLpSolveImpl.java:24)
org.processmining.lpengines.implementations.LPEngineLpSolveImpl.(LPEngineLpSolveImpl.java:19)
org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:18)
org.processmining.lpengines.factories.LPEngineFactory.createLPEngine(LPEngineFactory.java:10)
org.processmining.hybridilpminer.plugins.HybridILPMinerPlugin.mine(HybridILPMinerPlugin.java:97)
org.rapidprom.operators.discovery.ILPMinerOperator.doWork(ILPMinerOperator.java:68)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:77)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:812)
com.rapidminer.operator.ExecutionUnit$2.run(ExecutionUnit.java:807)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:807)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:423)
com.rapidminer.operator.Operator.execute(Operator.java:1026)
com.rapidminer.Process.executeRoot(Process.java:1386)
com.rapidminer.Process.execute(Process.java:1327)
com.rapidminer.Process.run(Process.java:1300)
com.rapidminer.Process.run(Process.java:1186)
com.rapidminer.Process.run(Process.java:1139)
com.rapidminer.Process.run(Process.java:1134)
com.rapidminer.Process.run(Process.java:1124)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants