To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

DeclareMinerConfigurationUI:Code question

mzlmzl Posts: 15
DeclareMinerConfigurationUI declareMinerConfigurationUI = new DeclareMinerConfigurationUI(context,DeclareProMInput.Log_Only);//DeclareProMInput.Log_Only); DeclareMinerInput input = declareMinerConfigurationUI.getInput(); DeclareMinerOutput output=DeclareMiner.mineDeclareConstraints(context,log, input); When I use the above statement, the following problems occur. I don’t know where the problem is. I really want to know where the problem comes from. This code come form https://svn.win.tue.nl/repos/prom/Packages/ -------- The following exception was logged by the framework: The exception was probalby handled properly. java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at javax.swing.SwingWorker.get(SwingWorker.java:602) at org.processmining.framework.plugin.ProMFuture.get(ProMFuture.java:119) at org.processmining.framework.plugin.impl.AbstractPluginDescriptor$1.done(AbstractPluginDescriptor.java:192) at org.processmining.framework.plugin.ProMFuture$1.done(ProMFuture.java:66) at javax.swing.SwingWorker$5.run(SwingWorker.java:737) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832) at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112) at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842) at javax.swing.Timer.fireActionPerformed(Timer.java:313) at javax.swing.Timer$DoPostEvent.run(Timer.java:245) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.lang.NullPointerException at java.io.Reader.(Reader.java:78) at java.io.InputStreamReader.(InputStreamReader.java:72) at org.processmining.plugins.declareminer.ui.TemplateListPanel.readConstraintTemplates(TemplateListPanel.java:234) at org.processmining.plugins.declareminer.ui.TemplateListPanel.(TemplateListPanel.java:64) at org.processmining.plugins.declareminer.ui.TemplateConfigurationStep.prepareTemplateSelectionPanel(TemplateConfigurationStep.java:111) at org.processmining.plugins.declareminer.ui.TemplateConfigurationStep.initComponents(TemplateConfigurationStep.java:48) at org.processmining.plugins.declareminer.ui.TemplateConfigurationStep.(TemplateConfigurationStep.java:35) at org.processmining.plugins.declareminer.ui.DeclareMinerConfigurationUI.(DeclareMinerConfigurationUI.java:55) at org.processmining.plugins.Plugins.plugin_try.RmpnPlugin(plugin_try.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.processmining.framework.plugin.impl.PluginDescriptorImpl.execute(PluginDescriptorImpl.java:331) at org.processmining.framework.plugin.impl.AbstractPluginDescriptor$1.doInBackground(AbstractPluginDescriptor.java:154) at org.processmining.framework.plugin.ProMFuture$1.doInBackground(ProMFuture.java:56) at javax.swing.SwingWorker$1.call(SwingWorker.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at javax.swing.SwingWorker.run(SwingWorker.java:334) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) --------------------------------------------------------------

Comments

  • hverbeekhverbeek Posts: 718
    Hi,

    The most interesting part of the stack dump is typically the last occurrence of "Caused by":

    Caused by: java.lang.NullPointerException at java.io.Reader.(Reader.java:78) at java.io.InputStreamReader.(InputStreamReader.java:72) at org.processmining.plugins.declareminer.ui.TemplateListPanel.readConstraintTemplates(TemplateListPanel.java:234) at org.processmining.plugins.declareminer.ui.TemplateListPanel.(TemplateListPanel.java:64) at org.processmining.plugins.declareminer.ui.TemplateConfigurationStep.prepareTemplateSelectionPanel(TemplateConfigurationStep.java:111) at...

    I'm not familiar with the Declare miner code, but it seems that reading the template file fails. Do you have a template file in your setting? This template file ('template.xml') is typically contained in the 'resources.jar' file in the lib folder of the installed package of the Declare miner. My guess is that you need to include this 'resources.jar' file into you project somehow.

    Kind regards,
    Eric.
Sign In or Register to comment.