Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Monte Glenn Gardner
LAR build number 5100 does not match
February 4, 2009 2:38 PM
Answer

Monte Glenn Gardner

Rank: Junior Member

Posts: 37

Join Date: July 11, 2008

Recent Posts

I Installed version 5.2 on my local computer.
I attempted to import a .lar file exported from our current 5.1.2 Liferay. I got the following error:

22:06:52,855 ERROR [ImportPagesAction:85] com.liferay.portal.LayoutImportException: LAR build number 5100 does not match portal build number 5201

com.liferay.portal.LayoutImportException: LAR build number 5100 does not match portal build number 5201
at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:233)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:616)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:587)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
.........
Manish Kumar Gupta
RE: LAR build number 5100 does not match
March 31, 2009 8:00 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

You need to change build-number in manifest.xml before importing it on latest version.
arjun sirupa
RE: LAR build number 5100 does not match
February 1, 2010 3:38 PM
Answer

arjun sirupa

Rank: New Member

Posts: 3

Join Date: May 15, 2009

Recent Posts

manifest.xml can be found when you unzip the LAR file.
Leandro Ferraz
RE: LAR build number 5100 does not match
August 30, 2012 6:17 AM
Answer

Leandro Ferraz

Rank: New Member

Posts: 3

Join Date: August 29, 2012

Recent Posts

Manish Kumar Gupta:
You need to change build-number in manifest.xml before importing it on latest version.


I have liferay version 6.1.1 and jboss 7.1.1. After changing the build-number in manifest.xml showed this error:

Caused by: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field com.liferay.portlet.messageboards.model.impl.MBMessageImpl._escapedModel
---- Debugging information ----
field : _escapedModel
class : com.liferay.portlet.messageboards.model.impl.MBMessageImpl
required-type : com.liferay.portlet.messageboards.model.impl.MBMessageImpl
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /MBMessage/_escapedModel
line number : 4
version : null
-------------------------------
amy c
RE: LAR build number 5100 does not match
September 10, 2012 7:46 AM
Answer

amy c

Rank: New Member

Posts: 14

Join Date: August 29, 2012

Recent Posts

Just for reference (after all these years without any specific fix to this issue),
this issue is related to your Liferay version installed - and which version of Liferay files are you trying to import.
Check your installed version at
Control Panel >> Server >> Server Administration
Zsolt Balogh
RE: LAR build number 5100 does not match
September 11, 2012 4:11 AM
Answer

Zsolt Balogh

LIFERAY STAFF

Rank: Expert

Posts: 459

Join Date: March 23, 2009

Recent Posts

Hi,

Liferay stores the build number in the LAR file to check on which version the content was exported. As the export is handling a serialized data of our objects, the data is really tied to the version from where you have exported it. If you try to import the .lar file on another version, Liferay won't let you to import it as the build number won't be the same. You could change it directly in the xml file, but there's a 99% chance that the deserialization would fail.

If you want to migrate data between versions, please use our upgrade processes, currently that's the only way to convert information between versions. Or you could use the API to copy, however it requires some work.

Zsolt
Gabriel Rodriguez
RE: LAR build number 5100 does not match
March 11, 2014 2:00 PM
Answer

Gabriel Rodriguez

Rank: New Member

Posts: 1

Join Date: January 14, 2013

Recent Posts

Hi,

How can I use the upgrade processes?? What are the steps??


Thanks.
Zsolt Balogh
RE: LAR build number 5100 does not match
March 12, 2014 2:06 AM
Answer

Zsolt Balogh

LIFERAY STAFF

Rank: Expert

Posts: 459

Join Date: March 23, 2009

Recent Posts

Hi Gabriel,

You can find the documentation for upgrades here:
https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/upgrading-lifer-5

Zsolt
Onochie Ojekwe
RE: LAR build number 5100 does not match
July 16, 2014 8:29 AM
Answer

Onochie Ojekwe

Rank: New Member

Posts: 14

Join Date: April 8, 2011

Recent Posts

Zsolt Balogh:
...If you try to import the .lar file on another version, Liferay won't let you to import it as the build number won't be the same. You could change it directly in the xml file, but there's a 99% chance that the deserialization would fail.


Hello Balogh.. So far i have been able to have 100% success by doing this, though! Unless sometime in the nearest future an error shows and i have the cause reference to this action then.... i have a problem! but so far, so alright! Cheers