Print at Dec 22, 2025, 10:50:28 PM

Posted by stefff at Jun 7, 2011, 9:48:27 AM
"java.lang.reflect.InvocationTargetException" :-( Help...!
Hello,

Situation :

On MAc (G4 MDD) with OSX 10.4.10
with Java Cache Viewer (11.5.0). (+ le fichier SweetHome3D.jnlp s'ouvre bien avec l'application Java Cache Viewer )

Error message at opening is :

"Une erreur est survenue au cours du lancement ou de l'exécution de l'application.

Titre : Sweet Home 3D
Fournisseur : eTeks
Catégorie : Erreur inattendue

Exception inattendue : java.lang.reflect.InvocationTargetException"

"Fichier de lancement" et "exceptions" ci-dessous.


Fichier de lancement :

"<?xml version="1.0"?>
<jnlp spec="1.5+"
codebase="http://www.sweethome3d.com/"
href="SweetHome3D.jnlp">
<information>
<title>Sweet Home 3D</title>
<vendor>eTeks</vendor>
<homepage href="http://www.sweethome3d.com/"/>
<description>Sweet Home 3D</description>
<description kind="short">Arrange the furniture of your house</description>
<icon href="SweetHome3DIcon.gif"/>
<icon kind="splash" href="SweetHome3DSplashScreen.jpg"/>
<offline-allowed/>
<shortcut online="false">
<desktop/>
<menu submenu="eTeks Sweet Home 3D"/>
</shortcut>
<association extensions="sh3d sh3l sh3f sh3t sh3p"
mime-type="application/SweetHome3D"/>
</information>
<information locale="fr">
<title>Sweet Home 3D</title>
<description kind="short">Amenagez les meubles de votre logement</description>
<offline-allowed/>
</information>
<information locale="pt">
<title>Sweet Home 3D</title>
<description kind="short">Organiza as mobilias da sua casa</description>
<offline-allowed/>
</information>
<information locale="cs">
<title>Sweet Home 3D</title>
<description kind="short">Sestavte si design interieru vaseho domu</description>
<offline-allowed/>
</information>
<information locale="pl">
<title>Sweet Home 3D</title>
<description kind="short">Zaprojektuj wnetrze swojego domu</description>
<offline-allowed/>
</information>
<information locale="hu">
<title>Sweet Home 3D</title>
<description kind="short">Keszitse el lakasanak belso kialakitasat!</description>
<offline-allowed/>
</information>
<information locale="se">
<title>Sweet Home 3D</title>
<description kind="short">Fixa heminredningen i ditt hem</description>
<offline-allowed/>
</information>

<security>
<all-permissions/>
</security>

<resources>
<j2se version="1.5+" max-heap-size="512m"/>
<jar href="lib/SweetHome3DJavaWebStartBootstrap.jar"/>
<jar href="lib/SweetHome3D.jar" part="SweetHome3D" download="lazy"/>
<jar href="lib/Loader3DS1_2u.jar" part="Loader3DS" download="lazy"/>
<jar href="lib/freehep-vectorgraphics-svg-2.1.1.jar" part="FreeHep" download="lazy"/>
<jar href="lib/sunflow-0.07.3g.jar" part="SunFlow" download="lazy"/>
<jar href="lib/jmf.jar" part="JMF" download="lazy"/>
<property name="com.eteks.sweethome3d.deploymentInformation" value="Java Web Start"/>
</resources>

<resources os="Windows" arch="x86">
<jar href="lib/iText-2.1.7.jar" part="iText" download="lazy"/>
<jar href="lib/windows/i386/java3d.jar" part="Java3D" download="lazy"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF iText Java3D"/>
</resources>
<resources os="Windows" arch="amd64">
<jar href="lib/iText-2.1.7.jar" part="iText" download="lazy"/>
<jar href="lib/windows/x64/java3d.jar" part="Java3D" download="lazy"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF iText Java3D"/>
</resources>

<resources os="Mac\ OS\ X">
<jar href="lib/macosx/java3d.jar" part="Java3D" download="lazy"/>
<property name="apple.laf.useScreenMenuBar" value="true"/>
<property name="apple.awt.graphics.UseQuartz" value="true"/>
<property name="j3d.rend" value="jogl"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF Java3D"/>
</resources>

<resources os="Linux" arch="x86 i386">
<jar href="lib/iText-2.1.7.jar" part="iText" download="lazy"/>
<jar href="lib/linux/i386/java3d.jar" part="Java3D" download="lazy"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF iText Java3D"/>
</resources>
<resources os="Linux" arch="amd64 x86_64">
<jar href="lib/iText-2.1.7.jar" part="iText" download="lazy"/>
<jar href="lib/linux/x64/java3d.jar" part="Java3D" download="lazy"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF iText Java3D"/>
</resources>

<resources os="SunOS">
<jar href="lib/iText-2.1.7.jar" part="iText" download="lazy"/>
<extension href="http://download.java.net/media/java3d/webstar....5-latest.jnlp"/>
<property name="com.eteks.sweethome3d.lazyParts" value="SweetHome3D Loader3DS FreeHep SunFlow JMF iText"/>
</resources>

<application-desc
main-class="com.eteks.sweethome3d.SweetHome3DJavaWebStartBootstrap"/>
</jnlp>"

exceptions :


"java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.eteks.sweethome3d.SweetHome3DJavaWebStartBootstrap.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1161)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1108)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:951)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.eteks.sweethome3d.SweetHome3DBootstrap.main(Unknown Source)
... 16 more
Caused by: java.lang.IllegalArgumentException: LUT has improper length!
at javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:866)
at javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:955)
at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1364)
at com.eteks.sweethome3d.swing.PlanComponent.createCustomCursor(Unknown Source)
at com.eteks.sweethome3d.swing.PlanComponent.createCustomCursor(Unknown Source)
at com.eteks.sweethome3d.swing.PlanComponent.<init>(Unknown Source)
at com.eteks.sweethome3d.swing.SwingViewFactory.createPlanView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.getView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.PlanController$SelectionState.enter(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.setState(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.PlanController.<init>(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController.getPlanController(Unknown Source)
at com.eteks.sweethome3d.swing.HomePane.<init>(Unknown Source)
at com.eteks.sweethome3d.swing.SwingViewFactory.createHomeView(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController.getView(Unknown Source)
at com.eteks.sweethome3d.MacOSXConfiguration.bindToApplicationMenu(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.init(Unknown Source)
at com.eteks.sweethome3d.SweetHome3D.main(Unknown Source)
... 21 more
"