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

In addition to searching bugzilla, a quick search of the internet reveals
its a well known limitation, with not so great workarounds ... which isn't
to say something can't be improved ... just pointing to one such post:


From:	Pascal Rapicault <pascal@xxxxxxxxxxxxx>
To:	Equinox development mailing list <equinox-dev@xxxxxxxxxxx>,
Date:	04/05/2012 06:36 PM
Subject:	Re: [equinox-dev] [error] encoded string too long
Sent by:	equinox-dev-bounces@xxxxxxxxxxx

I would recommend opening a bug report with a real test case or a just a
some fake data exhibiting the problem. In this case we may be able to
produce a patch that you could apply back on this particular version of the



On 2012-04-05, at 6:32 PM, Raymond Auge wrote:

      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
      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
      at org.eclipse.osgi.internal.resolver.StateWriter.writePlatformProp
      at org.eclipse.osgi.internal.resolver.StateWriter.saveState
      at org.eclipse.osgi.internal.baseadaptor.StateManager.writeState
      at org.eclipse.osgi.internal.baseadaptor.StateManager.update
      at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveStateData
      at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveAllData
      at org.eclipse.osgi.internal.baseadaptor.BaseStorage$StateSaver.run
      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.


      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

      equinox-dev mailing list
equinox-dev mailing list