export error (Klaros 4.3.7.)

Stefan Menge, modified 7 Years ago.

export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
hi all,
I have a problem with the export function in Klaros.
When i am exporting a project, the downloaded file is empty. I have no possibility to import this file.
Has anybody an idea, what I am doing wrong?
Thanks and regards
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

an empty backup file usually means that an error occurred during its creation. Could you please take a look at the log files (http://www.klaros-testmanagement.com/files/doc/html/User-Manual.Installation.html#User-Manual.Installation-Process.Main.Important-Files.Logs) if an exception or an error has been logged? You can also send those files to support@verit.de so that we can have a look.

Regards,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
hi Fabian,
can you please specify, in which log-file do you excpect an exception entry.
I see the following files:
manager.2015-10-05.log
localhost_access_log.2015-10-05.txt
localhost.2015-10-05.log
host-manager.2015-10-05.log
catalina.out
catalina.2015-10-05.log
Install_V4.3.7_20151005124243_4672699648300817516.log

Thanks and regards
Stefan
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

the exception should have been logged in either catalina.out or in [user home]/.klaros/logs/klaros.log.

Regards,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
hi Fabian,
I found the following log entry

2015-10-05 11:34:11: ERROR, de.verit.klaros.web.servlet.backup.IOServlet Marshalling error while exporting project backups
javax.xml.bind.MarshalException: null
    at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.marshal(Unknown Source) ~[na:1.7.0_71]
    at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(Unknown Source) ~[na:1.7.0_71]
    at de.verit.klaros.core.export.backup.XMLExportMarshaller.marshal(XMLExportMarshaller.java:51) ~[klaros-core-4.3.3.jar:4.3.3]
    at de.verit.klaros.web.servlet.backup.IOServlet.backup(IOServlet.java:110) ~[IOServlet.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_71]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_71]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_71]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_71]
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.resteasy.ResteasyContextInjectionInterceptor.aroundInvoke(ResteasyContextInjectionInterceptor.java:59) [jboss-seam-resteasy-2.3.1.Final.jar:2.3.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at de.verit.klaros.web.beans.interceptor.ConfigurableSynchronizationInterceptor.aroundInvoke(ConfigurableSynchronizationInterceptor.java:45) [ConfigurableSynchronizationInterceptor.class:na]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at de.verit.klaros.web.servlet.backup.IOServlet_$$_javassist_seam_110.backup(IOServlet_$$_javassist_seam_110.java) [IOServlet.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_71]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_71]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_71]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_71]
    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:168) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:541) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:523) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:125) [resteasy-jaxrs-2.3.10.Final.jar:na]
    at org.jboss.seam.resteasy.ResteasyResourceAdapter$1.process(ResteasyResourceAdapter.java:145) [jboss-seam-resteasy-2.3.1.Final.jar:2.3.1.Final]
    at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at org.jboss.seam.resteasy.ResteasyResourceAdapter.getResource(ResteasyResourceAdapter.java:120) [jboss-seam-resteasy-2.3.1.Final.jar:2.3.1.Final]
    at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80) [jboss-seam-2.3.1.SR1.jar:2.3.1.Final]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [servlet-api.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [catalina.jar:8.0.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.23]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.0.23]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.23]
    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198) [javamelody-core-1.56.0.jar:1.56.0]
    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176) [javamelody-core-1.56.0.jar:1.56.0]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [catalina.jar:8.0.23]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:8.0.23]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219) [catalina.jar:8.0.23]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [catalina.jar:8.0.23]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [catalina.jar:8.0.23]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) [catalina.jar:8.0.23]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [catalina.jar:8.0.23]
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617) [catalina.jar:8.0.23]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [catalina.jar:8.0.23]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518) [catalina.jar:8.0.23]
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091) [tomcat-coyote.jar:8.0.23]
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668) [tomcat-coyote.jar:8.0.23]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521) [tomcat-coyote.jar:8.0.23]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478) [tomcat-coyote.jar:8.0.23]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_71]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_71]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.0.23]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_71]
Caused by: com.sun.istack.internal.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: de.verit.klaros.core.persistent.User[id=0c367a83-60b6-4e63-93b9-8e9126dad2fc] -> de.verit.klaros.core.persistent.User[id=0c367a83-60b6-4e63-93b9-8e9126dad2fc]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.reportError(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.pushObject(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.property.ArrayERProperty.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsXsiType(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsSoleContent(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(Unknown Source) ~[na:1.7.0_71]
    at com.sun.xml.internal.bind.v2.runtime.XMLSerializer.childAsRoot(Unknown Source) ~[na:1.7.0_71]
    ... 67 common frames omitted
05-Oct-2015 12:42:38.473 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/klaros-web]
05-Oct-2015 12:42:42.478 WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc JDBC driver de-registration failed for web application [klaros-web]
 java.lang.NullPointerException
    at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:1608)
    at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:1543)
    at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:1495)
    at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:447)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5429)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:828)
    at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1386)
    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1292)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1534)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:285)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1142)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1378)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1382)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1350)
    at java.lang.Thread.run(Unknown Source)

Thanks for any hind emoticon

Regards,
Stefan
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

thanks for posting the exception message, we're currently trying to reproduce it on our test servers.

I'll post an answer as soon as we know the cause of this behaviour.

Regards,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
Thanks a lot. If you need additional info, just let me know ;-)

Regards
Stefan
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

as of now, we are unable to reproduce the exception you've reported. We've successfully tested on multiple test servers exporting a range of different projects. To rule out whether the root of this problem lies in your configuration, would you mind sharing the following system specs:

- Java version: It is important for us to know which Java version you use and whether you have an alternate Java implementation (e.g. OpenJDK) installed.

- Application Server: Does Klaros run on the the provided Tomcat application server?

In addition to the above it would be very helpful for us if you'd send us your log-files to further analyze this issue.

Regards and thanks in advance,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
hi Fabian,
sorry for delay. I fixed the problem and got a new one. emoticon At the moment it was just a test installation with java 7.0 on SLES11 and the default database.

Now I have installed an SLES12 (64bit) server with java version "1.7.0_65" and mySQL Ver 14.14 database.
When I´m now exporting an testproject, I get a file which is larger than 0Byte, but when I try to import this file I got the following message

"Unable to upload the file, due to validation error: XML document structures must start and end within the same entity."

I got the same error message before installing mySQL-database (using the default)

Do you have any idea?
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

thanks for sharing your system specs and I'm glad to hear that the previous exception doesn't appear anymore. This fits my assumption that the environment is causing the exporting mechanism to break.

As for the new message I'm curious what the exported XML file looks like. Would you mind attaching it to your upcoming answer or to send it to support@verit.de?

Regards,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
Hi Fabian!

I think the problem is, that the tags e.g. the  <global>-tag will not be closed at the end of the file. Big question: Why? emoticon
Please have a look to the attached file.

Thanks and Regards
Stefan
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.) (Answer)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

it seems that writing the XML file got cancelled halfway through the backup. May I ask if you use an official Oracle Java installation?

You can verify this on the Configure/Overview screen from within Klaros-Testmanagement, which should look as follows:

Version: 1.8.0_51
Vendor: Oracle Corporation
Home: /opt/java/jre/jre1.8.0_51
Runtime Name: Java(TM) SE Runtime Environment
Runtime Version: 1.8.0_51-b16
VM Name: Java HotSpot(TM) Server VM
VM Version: 25.51-b03

Note that we don't support alternative Java implementations such as OpenJDK or IcedTea that come preinstalled on many Linux operating systems (see also http://www.klaros-testmanagement.com/files/doc/html/User-Manual.Installation.html#User-Manual.Installation.Prerequisites.Server), because there are known incompatibilities in comparison to Oracle Java.

Apart from that I suppose that an exception or an error message has been logged during the backup, so could you please send us the logfiles so that we can have an in-depth look?

Regards,
Fabian
Stefan Menge, modified 7 Years ago.

RE: export error (Klaros 4.3.7.) (Answer)

Youngling Posts: 10 Join Date: 7/3/15 Recent Posts
hi Fabian!
Thanks for this information. the reason for the error was a wrong JAVA-Version. After installing the supported version everthing is working fine.

Thanks and regards
Stefan
thumbnail
Fabian Klaffke, modified 7 Years ago.

RE: export error (Klaros 4.3.7.)

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Stefan,

I'm very pleased to hear that changing the Java installation solved your issue! Feel free to ask if you've got further questions or issues.

Best Regards,

Fabian