[Gvsig_english] Problems building gvSIGmini with Eclipse Mars

Toni Stöcker toni.stoecker at gmx.de
Wed Aug 12 20:02:13 CEST 2015


Hello,

I'm getting more and more desperate with gvSIGmini. I want to build and 
run the application, so I followed the steps from 
https://confluence.prodevelop.es/display/GVMN/How+to+build+the+gvSIG+Mini+workspace+in+Eclipse?pageVersion=17. 
After running the mvn-Statements I checked the configurations in 
Eclipse. The dependencies seem to be right, there are no exclamation 
marks or red crosses. The problem is, that Eclipse gives me the 
following error message , when I run the app:

java.lang.RuntimeException: Exception parsing classes
     at com.android.dx.command.dexer.Main.processClass(Main.java:752)
     at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
     at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
     at 
com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
     at 
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
     at 
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
     at 
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
     at com.android.dx.command.dexer.Main.processOne(Main.java:672)
     at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
     at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
     at com.android.dx.command.dexer.Main.run(Main.java:277)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at 
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:188)
     at 
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:786)
     at 
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:597)
     at 
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
     at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)
     at 
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:329)
     at 
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:404)
     at org.eclipse.core.internal.resources.Project$1.run(Project.java:556)
     at 
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
     at 
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:534)
     at org.eclipse.core.internal.resources.Project.build(Project.java:119)
     at 
com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:1143)
     at 
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:155)
     at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
     at 
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
     at 
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
     at 
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.android.dx.cf.iface.ParseException: bad utf-8 byte a0 at 
offset 00000004
     at 
com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:374)
     at 
com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:262)
     at 
com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:294)
     at 
com.android.dx.cf.cst.ConstantPoolParser.parse(ConstantPoolParser.java:150)
     at 
com.android.dx.cf.cst.ConstantPoolParser.parseIfNecessary(ConstantPoolParser.java:124)
     at 
com.android.dx.cf.cst.ConstantPoolParser.getPool(ConstantPoolParser.java:115)
     at 
com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:482)
     at 
com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
     at 
com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
     at 
com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
     at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
     at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
     at 
com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
     at com.android.dx.command.dexer.Main.processClass(Main.java:749)
     ... 33 more
Caused by: java.lang.IllegalArgumentException: bad utf-8 byte a0 at 
offset 00000004
     at com.android.dx.rop.cst.CstString.throwBadUtf8(CstString.java:171)
     at 
com.android.dx.rop.cst.CstString.utf8BytesToString(CstString.java:143)
     at com.android.dx.rop.cst.CstString.<init>(CstString.java:200)
     at 
com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:371)
     ... 46 more
[2015-08-12 19:45:05 - gvsigmini] Dx 1 error; aborting
[2015-08-12 19:45:05 - gvsigmini] Conversion to Dalvik format failed 
with error 1

I've googled a few days and tried many things, but nothing worked. If 
anybody has an idea what the problem could be, please help me, because 
this is getting frustrating more and more.

Thanks for your help,
Toni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20150812/2b5b7a4f/attachment.htm 
-------------- next part --------------
[2015-08-12 19:45:03 - gvsigmini] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.CharacterDataImpl$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2015-08-12 19:45:03 - gvsigmini] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.dom.ParentNode$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2015-08-12 19:45:04 - gvsigmini] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2015-08-12 19:45:04 - gvsigmini] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2015-08-12 19:45:05 - gvsigmini] Dx 
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classes
	at com.android.dx.command.dexer.Main.processClass(Main.java:752)
	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
	at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
	at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
	at com.android.dx.command.dexer.Main.processOne(Main.java:672)
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
	at com.android.dx.command.dexer.Main.run(Main.java:277)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:188)
	at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:786)
	at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:597)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:329)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:404)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:556)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:534)
	at org.eclipse.core.internal.resources.Project.build(Project.java:119)
	at com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:1143)
	at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:155)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.android.dx.cf.iface.ParseException: bad utf-8 byte a0 at offset 00000004
	at com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:374)
	at com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:262)
	at com.android.dx.cf.cst.ConstantPoolParser.parse0(ConstantPoolParser.java:294)
	at com.android.dx.cf.cst.ConstantPoolParser.parse(ConstantPoolParser.java:150)
	at com.android.dx.cf.cst.ConstantPoolParser.parseIfNecessary(ConstantPoolParser.java:124)
	at com.android.dx.cf.cst.ConstantPoolParser.getPool(ConstantPoolParser.java:115)
	at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:482)
	at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
	at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
	at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
	at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
	at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
	at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
	at com.android.dx.command.dexer.Main.processClass(Main.java:749)
	... 33 more
Caused by: java.lang.IllegalArgumentException: bad utf-8 byte a0 at offset 00000004
	at com.android.dx.rop.cst.CstString.throwBadUtf8(CstString.java:171)
	at com.android.dx.rop.cst.CstString.utf8BytesToString(CstString.java:143)
	at com.android.dx.rop.cst.CstString.<init>(CstString.java:200)
	at com.android.dx.cf.cst.ConstantPoolParser.parseUtf8(ConstantPoolParser.java:371)
	... 46 more
[2015-08-12 19:45:05 - gvsigmini] Dx 1 error; aborting
[2015-08-12 19:45:05 - gvsigmini] Conversion to Dalvik format failed with error 1


More information about the Gvsig_internacional mailing list