[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] [error] encoded string too long

Hello everyone,

My name is Raymond AugÃ, I'm a senior architect at Liferay, Inc.

We're bundling equinox (3.7.2.v20120110-1415) and recently I've started seeing the following error when the Framework tried to save it's state:

18:04:28,630 INFO Â[org_eclipse_osgi:84] FrameworkEvent STARTLEVEL CHANGED
18:04:38,142 ERROR [org_eclipse_osgi:81]Â
java.io.UTFDataFormatException: encoded string too long: 72142 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
at org.eclipse.osgi.internal.resolver.StateWriter.writeStringOrNull(StateWriter.java:686)
at org.eclipse.osgi.internal.resolver.StateWriter.writePlatformProp(StateWriter.java:181)
at org.eclipse.osgi.internal.resolver.StateWriter.saveState(StateWriter.java:130)
at org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.writeState(StateObjectFactoryImpl.java:439)
at org.eclipse.osgi.internal.baseadaptor.StateManager.writeState(StateManager.java:178)
at org.eclipse.osgi.internal.baseadaptor.StateManager.update(StateManager.java:116)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveStateData(BaseStorage.java:661)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveAllData(BaseStorage.java:458)
at org.eclipse.osgi.internal.baseadaptor.BaseStorage$StateSaver.run(BaseStorage.java:1304)
at java.lang.Thread.run(Thread.java:679)

It appears to be due to a very large number of package exports on the system bundle (the Framework is embedded).

Has anyone encountered this? I search bugs.eclipse.org/bugs with no results that seem to match.

It appears I may have to create an Storage hook to get around the issue short term.

Thoughts?

Sincerely,
--
Raymond Augà Â|ÂSenior Software Architect |ÂLiferay, Inc.Â

---

25 Apr 2012Â|ÂLiferay Nordic SymposiumÂ|Âliferay.com/nordic2012ÂÂNEW!
17 May 2012 |ÂLiferayÂBudapest SymposiumÂ|Âliferay.com/budapest2012ÂÂ
23 May 2012 |ÂLiferayÂFrance SymposiumÂ|Âliferay.com/france2012