留言板

LAR build number 5100 does not match

Monte Glenn Gardner,修改在15 年前。

LAR build number 5100 does not match

Junior Member 帖子: 37 加入日期: 08-7-11 最近的帖子
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)
.........
thumbnail
Manish Kumar Gupta,修改在15 年前。

RE: LAR build number 5100 does not match

Liferay Master 帖子: 535 加入日期: 08-5-16 最近的帖子
You need to change build-number in manifest.xml before importing it on latest version.
arjun sirupa,修改在14 年前。

RE: LAR build number 5100 does not match

New Member 帖子: 3 加入日期: 09-5-15 最近的帖子
manifest.xml can be found when you unzip the LAR file.
Leandro Ferraz,修改在11 年前。

RE: LAR build number 5100 does not match

New Member 帖子: 3 加入日期: 12-8-29 最近的帖子
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,修改在11 年前。

RE: LAR build number 5100 does not match

New Member 帖子: 12 加入日期: 12-8-29 最近的帖子
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
thumbnail
Zsolt Balogh,修改在11 年前。

RE: LAR build number 5100 does not match

Expert 帖子: 463 加入日期: 09-3-23 最近的帖子
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
thumbnail
Gabriel Rodriguez,修改在10 年前。

RE: LAR build number 5100 does not match

New Member 发布: 1 加入日期: 13-1-14 最近的帖子
Hi,

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


Thanks.
thumbnail
Zsolt Balogh,修改在10 年前。

RE: LAR build number 5100 does not match

Expert 帖子: 463 加入日期: 09-3-23 最近的帖子
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
thumbnail
Onochie Ojekwe,修改在9 年前。

RE: LAR build number 5100 does not match

New Member 帖子: 17 加入日期: 11-4-8 最近的帖子
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