Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Docx4Support NoClassDefFoundError(NoClassDefFoundError)
Docx4Support NoClassDefFoundError [message #1274547] Fri, 21 March 2014 12:19 Go to next message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
Hi,

when I try to create a word file from a template I get NoClassDefFoundError. I am using a clean new Eclipse Scout Kepler SR2 install. I folowed the tutorial (http://wiki.eclipse.org/Scout/HowTo/3.9/Creating_Word_Reports_with_Docx4j)

I get errors as below. How can I fix these

Regards Bertin


With a ".doc" file I get these errors:

ProcessingException[ProcessingStatus[ERROR code=0 Unexpected exception java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/POIFSFileSystem]]
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:636)
at org.eclipse.scout.rt.ui.swing.action.SwingScoutAction$1.run(SwingScoutAction.java:146)
at org.eclipse.scout.rt.ui.swing.concurrency.SwingScoutSynchronizer$1.runVoid(SwingScoutSynchronizer.java:71)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/POIFSFileSystem
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:341)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:277)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:223)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:206)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:159)
at org.eclipse.scout.docx4j.DocxAdapter.createPackageFromFile(DocxAdapter.java:162)
at org.eclipse.scout.docx4j.DocxAdapter.<init>(DocxAdapter.java:113)
at testDocx.client.ui.desktop.Desktop$ToolsMenu$TestDocxMenu.runReport(Desktop.java:149)
at testDocx.client.ui.desktop.Desktop$ToolsMenu$TestDocxMenu.execAction(Desktop.java:134)

With a ".docx" file I get these errors:

ProcessingException[ProcessingStatus[ERROR code=0 Unexpected exception java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils]]
at org.eclipse.scout.rt.client.ui.action.AbstractAction$P_UIFacade.fireActionFromUI(AbstractAction.java:636)
at org.eclipse.scout.rt.ui.swing.action.SwingScoutAction$1.run(SwingScoutAction.java:146)
at org.eclipse.scout.rt.ui.swing.concurrency.SwingScoutSynchronizer$1.runVoid(SwingScoutSynchronizer.java:71)
at org.eclipse.scout.rt.client.ClientJob.runStatus(ClientJob.java:189)
at org.eclipse.scout.rt.client.ClientJob.runTransactionWrapper(ClientJob.java:172)
at org.eclipse.scout.rt.client.ClientJob.run(ClientJob.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
at org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart.getBuffer(BinaryPart.java:146)
at org.docx4j.openpackaging.io.SaveToZipFile.saveRawBinaryPart(SaveToZipFile.java:454)
at org.docx4j.openpackaging.io.SaveToZipFile.savePart(SaveToZipFile.java:415)
at org.docx4j.openpackaging.io.SaveToZipFile.addPartsFromRelationships(SaveToZipFile.java:382)
at org.docx4j.openpackaging.io.SaveToZipFile.savePart(SaveToZipFile.java:437)
at org.docx4j.openpackaging.io.SaveToZipFile.addPartsFromRelationships(SaveToZipFile.java:382)
at org.docx4j.openpackaging.io.SaveToZipFile.save(SaveToZipFile.java:165)
at org.docx4j.openpackaging.io.SaveToZipFile.save(SaveToZipFile.java:106)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.save(WordprocessingMLPackage.java:206)
at org.eclipse.scout.docx4j.DocxAdapter.save(DocxAdapter.java:808)
at testDocx.client.ui.desktop.Desktop$ToolsMenu$TestDocxMenu.runReport(Desktop.java:176)



Re: Docx4Support NoClassDefFoundError [message #1277309 is a reply to message #1274547] Tue, 25 March 2014 16:42 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 625
Registered: October 2011
Senior Member
Can you tell the version of Docx4j bundle that is installed?

Is it related to your other post?

[Updated on: Tue, 25 March 2014 16:52]

Report message to a moderator

Re: Docx4Support NoClassDefFoundError [message #1278353 is a reply to message #1277309] Thu, 27 March 2014 04:09 Go to previous messageGo to next message
Bertin Kiekebosch is currently offline Bertin Kiekebosch
Messages: 300
Registered: August 2011
Senior Member
I use

com.bsiag.org.docx4j(3.0.0.20130501110800)
org.eclipse.scout.docx4j(1.0.0.20130508-1208)
org.eclipse.scout.rt.docx4j.client(1.0.0.20130508-1208)

these are installed (downloaded) by Scout by enabeling the docx4j Support.

Regards Bertin
Re: Docx4Support NoClassDefFoundError [message #1383962 is a reply to message #1278353] Tue, 27 May 2014 09:24 Go to previous messageGo to next message
Tim Schwalbe is currently offline Tim Schwalbe
Messages: 27
Registered: May 2014
Junior Member
I also have this problem? anyone solved it?

Regards Very Happy
Re: Docx4Support NoClassDefFoundError [message #1383991 is a reply to message #1383962] Tue, 27 May 2014 13:32 Go to previous message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 625
Registered: October 2011
Senior Member
Are you sure this is the same error?

The stacktrace you have quoted in your other thread is not the same.
Previous Topic:Problem retrieving data from multiple databases
Next Topic:Nebula NatTable used in a Scout application
Goto Forum:
  


Current Time: Wed Jul 23 22:20:42 EDT 2014

Powered by FUDForum. Page generated in 0.03414 seconds