CMDBuild Forum

Error occurred - QR code generator in openMaint

Start QR code generator and the processes seems function well.  Finally, select the asset and press "Advance", an error has occurred.

What is the possible problem? or is this a bug?

 

My openMaint 1.1 is installed with data base "openmaint-1.1-demo.backup",

- Tomcat 8.5

- PostgreSQL-9.4

- Java 1.8

- BIMserver 1.2

- Geoserver 2.8

The user - workflow is assigned to SuperUser, and Password is set.

 

Error messages are shown below:

Call: services/json/workflow/saveactivity
------------------------------------------
Error: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation ImageIO.write
    at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)
    at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)
    at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:225)
    at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:222)
    at org.cmdbuild.workflow.service.TransactedSharkService$TransactedExecutor.execute(TransactedSharkService.java:24)
    at org.cmdbuild.workflow.service.TransactedSharkService.advanceActivityInstance(TransactedSharkService.java:228)
    at org.cmdbuild.workflow.DefaultWorkflowEngine.advanceActivity(DefaultWorkflowEngine.java:504)
    at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.updateProcess(DefaultWorkflowLogic.java:545)
    at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.updateProcess(DefaultWorkflowLogic.java:529)
    at org.cmdbuild.servlets.json.Workflow.saveActivity(Workflow.java:365)
    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 org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:104)
    at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:64)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:188)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation ImageIO.write
    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 org.apache.xerces.jaxp.SAXParserImpl.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.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    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 org.enhydra.shark.ejb.client.ws.WAPIEJBEndpointPortSoapBindingStub.changeActivityInstanceState(Unknown Source)
    at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:431)
    ... 62 more

 

Hello,
Could you please attach the full shark.log to your post?
Could you also check that your java installation has the javax.imageio library included?
 
Kind regards
CMDBuild Team

Hi,

 

Please refer to the link for the shark.log (I can't find a button to attach file in post, sorry)

https://1drv.ms/u/s!AltEL4qhSB9Rg3CmK7jz8GptEBar

 

 

I have searched my PC, but javax.imageio library cannot be found.  My java installation is downloaded from http://www.oracle.com with file name: jdk-8u102-windows-i586.exe

 

Thank you

 

 

Previously Tecnoteca wrote:
Hello,
Could you please attach the full shark.log to your post?
Could you also check that your java installation has the javax.imageio library included?
 
Kind regards
CMDBuild Team

 

If you are working on Windows, you may have to change something in the script that generates the file. Try to add some debug messages to the script in order to check that the image and the myFile objects are not null before the instruction which is causing the problem (ImageIO.write(image, fileType, myFile)).

 
Best regards
CMDBuild Team
 

I think the QR code generator should be the simplest processes in openMAINT.  It is suitable to ensure that the work flow engine (shark) is installed properly.

The hints for debugging are enough for a programmer, but I am not.  I will give up and waiting for the next update.

 

Thanks for your team's work.

 

 

Previously Tecnoteca wrote:
If you are working on Windows, you may have to change something in the script that generates the file. Try to add some debug messages to the script in order to check that the image and the myFile objects are not null before the instruction which is causing the problem (ImageIO.write(image, fileType, myFile)).
 
Best regards
CMDBuild Team
 

 

Your shark installation is missing something, probably  (I fixed mine with this) the user/password you are using for shark must match the user/password combination set in users. or example, if you programmed workflow/workflow in shark as user/password, you must verify that workflow user exists in users (administration), then, you can re-enter the password.
 
Previously SC wrote:

I think the QR code generator should be the simplest processes in openMAINT.  It is suitable to ensure that the work flow engine (shark) is installed properly.

The hints for debugging are enough for a programmer, but I am not.  I will give up and waiting for the next update.

 

Thanks for your team's work.

 

 

Previously Tecnoteca wrote:
If you are working on Windows, you may have to change something in the script that generates the file. Try to add some debug messages to the script in order to check that the image and the myFile objects are not null before the instruction which is causing the problem (ImageIO.write(image, fileType, myFile)).
 
Best regards
CMDBuild Team