Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Venu K
Not able to import a lar file from windows to linux environment
November 28, 2012 8:15 PM
Answer

Venu K

Rank: New Member

Posts: 12

Join Date: November 28, 2012

Recent Posts

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
RE: Not able to import a lar file from windows to linux environment
November 29, 2012 3:52 PM
Answer

Jack Chung

Rank: New Member

Posts: 19

Join Date: November 30, 2011

Recent Posts

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.
Shinn Lok
RE: Not able to import a lar file from windows to linux environment
November 29, 2012 4:08 PM
Answer

Shinn Lok

LIFERAY STAFF

Rank: Junior Member

Posts: 86

Join Date: January 14, 2011

Recent Posts

The issue is that your Linux environment is using Java 7.
Venu K
RE: Not able to import a lar file from windows to linux environment
December 2, 2012 11:05 PM
Answer

Venu K

Rank: New Member

Posts: 12

Join Date: November 28, 2012

Recent Posts

No, both Linux and windows are using Jdk1.6.0_30
Venu K
RE: Not able to import a lar file from windows to linux environment
December 2, 2012 11:06 PM
Answer

Venu K

Rank: New Member

Posts: 12

Join Date: November 28, 2012

Recent Posts

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
RE: Not able to import a lar file from windows to linux environment
December 11, 2012 1:39 AM
Answer

Venu K

Rank: New Member

Posts: 12

Join Date: November 28, 2012

Recent Posts

Actual issue is, JDK7 is installed on Linux environment. After replacing the Xstream.jar for Jdk 7, issue got resolved.