Foros de discusión

Not able to import a lar file from windows to linux environment

Venu K, modificado hace 11 años.

Not able to import a lar file from windows to linux environment

New Member Mensajes: 12 Fecha de incorporación: 29/11/12 Mensajes recientes
When i try to import a lar file that was created in Windows environment (Jboss Eap 6 configured on Windows environment) to linux box (Jboss Eap 6 configured on Linux), i am getting the following errors.

Your request failed to complete.
An unexpected error occurred while importing your file.

Exception log:

---- Debugging information ----
cause-exception : java.lang.NullPointerException
cause-message : null
class : com.liferay.portal.model.impl.LayoutImpl
required-type : org.apache.commons.lang.time.FastDateFormat
path : /com.liferay.portal.model.impl.LayoutImpl/_layoutType/_dateFormat
line number : 81
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) [xstream.jar:]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) [xstream
.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConver
ter.java:246) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.
java:218) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.ja
va:162) [xstream.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) [xstream.jar:]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) [xstream
.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConver
ter.java:246) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.
java:218) [xstream.jar:]
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.ja
va:162) [xstream.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) [xstream.jar:]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) [xstream
.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) [xstream.jar:]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) [xstream.jar:]


What could be the problem, any idea?
Jack Chung, modificado hace 11 años.

RE: Not able to import a lar file from windows to linux environment

New Member Mensajes: 19 Fecha de incorporación: 30/11/11 Mensajes recientes
You might want to try unchecking "Archived Setups" in both the LAR export and the import. I think we across a similar issue a few months back (don't recall if it was the same one however) and we were able to find a solution by unchecking "Archived Setups". There may be a patch for this issue for EE customers, but you might want to try unchcking "Archived Setups" in both the LAR export and import.
Venu K, modificado hace 11 años.

RE: Not able to import a lar file from windows to linux environment

New Member Mensajes: 12 Fecha de incorporación: 29/11/12 Mensajes recientes
But, if we uncehck "Archieved Setups" it will not import/export the existing pages right? But, we need to export/import the pages.
Venu K, modificado hace 11 años.

RE: Not able to import a lar file from windows to linux environment (Respuesta)

New Member Mensajes: 12 Fecha de incorporación: 29/11/12 Mensajes recientes
Actual issue is, JDK7 is installed on Linux environment. After replacing the Xstream.jar for Jdk 7, issue got resolved.
thumbnail
Shinn Lok, modificado hace 11 años.

RE: Not able to import a lar file from windows to linux environment

Junior Member Mensajes: 89 Fecha de incorporación: 14/01/11 Mensajes recientes
The issue is that your Linux environment is using Java 7.
Venu K, modificado hace 11 años.

RE: Not able to import a lar file from windows to linux environment

New Member Mensajes: 12 Fecha de incorporación: 29/11/12 Mensajes recientes
No, both Linux and windows are using Jdk1.6.0_30