Forums

Home » Liferay Portal » Deutsch

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marina Ra
nullpointer exception beim Importieren
July 18, 2012 1:40 AM
Answer

Marina Ra

Rank: Junior Member

Posts: 56

Join Date: July 12, 2012

Recent Posts

Hallo!

Kann mir vielleicht jemand mit dieser Fehlermeldung helfen? Ich versuche eine Page aus einem Portal (6.1) zu exportieren und in ein anderes (selbe Version) zu importieren. Beim Import bekomme ich folgende Exception:

 1
 2Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null
 3---- Debugging information ----
 4cause-exception     : java.lang.NullPointerException
 5cause-message       : null
 6class               : com.liferay.portal.model.impl.LayoutImpl
 7required-type       : org.apache.commons.lang.time.FastDateFormat
 8path                : /com.liferay.portal.model.impl.LayoutImpl/_layoutType/_dateFormat
 9line number         : 93
10-------------------------------
11    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
12    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
13    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
14    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
15    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
16    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
17    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
18    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
19    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
20    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:246)
21    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:218)
22    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
23    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
24    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
25    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
26    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
27    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
28    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
29    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
30    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
31    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
32    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
33    at com.liferay.portal.lar.PortletDataContextImpl.fromXML(PortletDataContextImpl.java:667)
34    at com.liferay.portal.lar.PortletDataContextImpl.getZipEntryAsObject(PortletDataContextImpl.java:854)
35    at com.liferay.portal.lar.LayoutImporter.importLayout(LayoutImporter.java:836)
36    at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:489)
37    at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:140)
38    at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1369)
39    ... 168 more
40Caused by: java.lang.NullPointerException
41    at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:922)
42    at java.text.DateFormatSymbols.initializeData(DateFormatSymbols.java:654)
43    at java.text.DateFormatSymbols.<init>(DateFormatSymbols.java:141)
44    at org.apache.commons.lang.time.FastDateFormat.parsePattern(FastDateFormat.java:578)
45    at org.apache.commons.lang.time.FastDateFormat.init(FastDateFormat.java:558)
46    at org.apache.commons.lang.time.FastDateFormat.readObject(FastDateFormat.java:1029)
47    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
48    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
49    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
50    at java.lang.reflect.Method.invoke(Method.java:601)
51    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
52    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
53    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
54    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
55    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
56    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.instantiateUsingSerialization(PureJavaReflectionProvider.java:112)
57    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:69)
58    at com.thoughtworks.xstream.converters.reflection.ReflectionProviderWrapper.newInstance(ReflectionProviderWrapper.java:42)
59    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
60    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
61    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
62    ... 195 more


Vielen Dank schon mal
Olaf Kock
RE: nullpointer exception beim Importieren
August 17, 2012 12:48 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1808

Join Date: September 23, 2008

Recent Posts

Oops - hab ich eine Weile lang übersehen - vielleicht hilft's noch...

Ich bin mir nicht mehr sicher, ob es genau dieses war: Beim Import unter Java7 tritt zumindest ein ähnliches Problem auf. Bitte mal sicherstellen, dass Liferay mit Java6 betrieben wird.