Results 1 to 11 of 11
Like Tree2Likes
  • 2 Post By regularjohn

Thread: Error: java.lang.reflect.InvocationTargetException

  1. #1
    regularjohn is offline Member
    Join Date
    Nov 2014
    Posts
    4
    Rep Power
    0

    Default Error: java.lang.reflect.InvocationTargetException

    When trying to open Scaffold (a proteome software tool), I kept getting the following error: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException.

    Removing both the program and Java from my computer, rebooting, and installing the latest Java software didn't help. The message just keeps coming back when trying to install Scaffold again. The install wizard is install4j and my OS is Windows 8.1 64bit.

    If anyone could give me more options to try and solve this issue I'd be very grateful!


    Here is the complete error log if necessary:

    Exception:

    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.install4j.runtime.installer.Installer.getScree nExecutor(Unknown Source)
    at com.install4j.runtime.installer.Installer.runInPro cess(Unknown Source)
    at com.install4j.runtime.installer.Installer.main(Unk nown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
    at com.install4j.runtime.launcher.WinLauncher.main(Un known Source)
    Caused by: java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
    ... 10 more
    Caused by: java.lang.UnsatisfiedLinkError: could not load i4jinst from C:\Users\...\AppData\Local\Temp\e4j477D.tmp_dir141 5095995\i4jinst.dll, false, C:\Users\...\Downloads\platform.zip, false, C:\Users\...\Downloads\i4jinst.dll
    at com.install4j.runtime.installer.platform.win32.Com mon.init(Unknown Source)
    at com.install4j.runtime.installer.platform.win32.Reg istry.<clinit>(Unknown Source)
    at com.install4j.api.windows.WinRegistry.getValue(Unk nown Source)
    at com.install4j.api.windows.WinRegistry.getValue(Unk nown Source)
    at com.install4j.runtime.installer.helper.registry.Wi n32Registry.getValue(Unknown Source)
    at com.install4j.runtime.installer.helper.registry.In stallRegistry.getValue(Unknown Source)
    at com.install4j.runtime.installer.helper.registry.In stallRegistry.getAllInstallationDirs(Unknown Source)
    at com.install4j.runtime.installer.helper.registry.In stallRegistry.getInstallationDir(Unknown Source)
    at com.install4j.runtime.installer.config.InstallerCo nfig.getInitialInstallationDirectory(Unknown Source)
    at com.install4j.runtime.installer.config.InstallerCo nfig.getInstallationDirectory(Unknown Source)
    at com.install4j.runtime.installer.ContextImpl.getIns tallationDirectory(Unknown Source)
    at com.install4j.runtime.installer.InstallerContextIm pl.initUpdateInstallation(Unknown Source)
    at com.install4j.runtime.installer.InstallerContextIm pl.<init>(Unknown Source)
    at com.install4j.runtime.installer.frontend.Installer WizardScreenExecutor.<init>(Unknown Source)
    at com.install4j.runtime.installer.Installer$1.run(Un known Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    System properties:

    java.runtime.name=Java(TM) SE Runtime Environment
    exe4j.moduleName=C:\Users\...\Downloads\Install_Sc affold_4.3.4_Windows_x64.exe
    exe4j.semaphoreName=Local\c:_users_..._downloads_i nstall_scaffold_4.3.4_windows_x64.exe
    sun.boot.library.path=c:\program files\java\jre7\bin
    java.vm.version=24.71-b01
    java.vm.vendor=Oracle Corporation
    java.vendor.url=http://java.oracle.com/
    exe4j.consoleCodepage=cp0
    path.separator=;
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    file.encoding.pkg=sun.io
    user.country=BE
    user.script=
    sun.os.patch.level=
    install4j.exeDir=C:\Users\...\Downloads\
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=C:\Users\...\Downloads
    java.runtime.version=1.7.0_71-b14
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironm ent
    java.endorsed.dirs=c:\program files\java\jre7\lib\endorsed
    os.arch=amd64
    java.io.tmpdir=C:\Users\...\AppData\Local\Temp\
    line.separator=

    java.vm.specification.vendor=Oracle Corporation
    user.variant=
    exe4j.tempDir=C:\Users\...\AppData\Local\Temp\e4j4 77D.tmp_dir1415095995
    os.name=Windows 8
    sun.java2d.noddraw=true
    sun.jnu.encoding=Cp1252
    java.library.path=C:\Program Files (x86)\Mozilla Firefox;C:\Windows\system32;C:\Windows;C:\Windows\ System32\Wbem;C:\Windows\System32\WindowsPowerShel l\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Acer\Remote Files\;C:\Program Files (x86)\Malvern Instruments\DTS;c:\program files\java\jre7\bin
    sun.awt.enableExtraMouseButtons=true
    java.specification.name=Java Platform API Specification
    java.class.version=51.0
    sun.management.compiler=HotSpot 64-Bit Tiered Compilers
    exe4j.isInstall4j=true
    os.version=6.2
    user.home=C:\Users\...
    user.timezone=Europe/Berlin
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    file.encoding=Cp1252
    java.specification.version=1.7
    java.class.path=C:\Users\...\e4j477D.tmp_dir141509 5995\i4jruntime.jar;C:\Users\...\AppData\Local\Tem p\e4j477D.tmp_dir1415095995\user.jar;C:\Users\...\ AppData\Local\Temp\e4j477D.tmp_dir1415095995\platf orm.zip;
    user.name=...
    java.vm.specification.version=1.7
    sun.java.command=C:\Users\...\Install_Scaffold_4.3 .4_Windows_x64.exe
    java.home=c:\program files\java\jre7
    sun.arch.data.model=64
    exe4j.launchName=C:\Users\...\Install_Scaffold_4.3 .4_Windows_x64.exe
    user.language=nl
    java.specification.vendor=Oracle Corporation
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    exe4j.unextractedPosition=19995996
    java.version=1.7.0_71
    java.ext.dirs=c:\program files\java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ex t
    sun.boot.class.path=c:\program files\java\jre7\lib\resources.jar;c:\program files\java\jre7\lib\rt.jar;c:\program files\java\jre7\lib\sunrsasign.jar;c:\program files\java\jre7\lib\jsse.jar;c:\program files\java\jre7\lib\jce.jar;c:\program files\java\jre7\lib\charsets.jar;c:\program files\java\jre7\lib\jfr.jar;c:\program files\java\jre7\classes
    install4j.appDir=C:\Users\...\AppData\Local\Temp\
    java.vendor=Oracle Corporation
    file.separator=\
    java.vendor.url.bug=http://bugreport.sun.com/bugreport/
    sun.io.unicode.encoding=UnicodeLittle
    sun.cpu.endian=little
    sun.desktop=windows
    sun.locale.formatasdefault=true
    sun.cpu.isalist=amd64

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Just because it is software built using Java does not mean you can just go to a random Java programming site and ask for help, you'll need to ask for support from the people who built this.

    Just to illustrate: you don't go to Microsoft for support on Mozilla Firefox even when the software is built using Microsoft .NET.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    regularjohn is offline Member
    Join Date
    Nov 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: java.lang.reflect.InvocationTargetException

    I just thought it might have something to do with Java itself, not the Scaffold program. That had worked previously but now, after some months (and some Java updates), it suddenly doesn't work anymore. Admittedly, I did not mention that in my description of the problem.

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,983
    Rep Power
    8

    Default Re: Error: java.lang.reflect.InvocationTargetException

    According to SO, it's a bug: RuntimeException thrown by an install4j installer on windows XP - Stack Overflow

    Ask Proteome for a new version.

    Edit: Are you running the installer with full administrator rights?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Given the actual error being an install4j native library not being found when executing the installer:

    Caused by: java.lang.UnsatisfiedLinkError: could not load i4jinst from C:\Users\...\AppData\Local\Temp\e4j477D.tmp_dir141 5095995\i4jinst.dll, false, C:\Users\...\Downloads\platform.zip, false, C:\Users\...\Downloads\i4jinst.dll
    I doesn't look like it has anything to do with Java.

    EDIT: ninja'd again and with a link even!
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    regularjohn is offline Member
    Join Date
    Nov 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Thank you SurfMan, running it as administrator apparently did the trick.

    I apologise if I came to the wrong forum for this, it was indeed an act of sheer randomness, but thanks for helping me out anyway!
    SurfMan and gimbal2 like this.

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Quote Originally Posted by regularjohn View Post
    I apologise if I came to the wrong forum for this, it was indeed an act of sheer randomness, but thanks for helping me out anyway!
    Apology accepted (but unnecessary). If you want to learn about Java though, please come back.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  8. #8
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,983
    Rep Power
    8

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Quote Originally Posted by regularjohn View Post
    Thank you SurfMan, running it as administrator apparently did the trick.

    I apologise if I came to the wrong forum for this, it was indeed an act of sheer randomness, but thanks for helping me out anyway!

    You're welcome. Don't apologize. If the vendor doesn't help, this is the second best place to come. The Java error message could well be identified by someone here. Chances of this getting solved at a Visual Basic forum are slim... :)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  9. #9
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Do think about this: by being helped directly here with this specific problem and not contacting the vendor / maintainers there is no chance that it is made known that the problem you faced may actually be a thing that other people run into and thus at this point there is no trigger to actually act on this, which might be a simple as updating the installation instructions. There might be a deeper problem that you haven't run into yet that might have been rooted out within that same contact moment.

    There is always a flipside to the coin.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  10. #10
    regularjohn is offline Member
    Join Date
    Nov 2014
    Posts
    4
    Rep Power
    0

    Default Re: Error: java.lang.reflect.InvocationTargetException

    I've contacted them at the same time as I posted the question here, and haven't heard from them since. So I must say this forum is a lot more efficient. But of course I'll be sure to give them the helpful remarks you guys gave me.

    Thanks again!

  11. #11
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Error: java.lang.reflect.InvocationTargetException

    Yeah that's a bummer :/ Not unsurprising though. Support and documentation are two things not many vendors get right.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. java.lang.reflect.InvocationTargetException
    By Dissonance in forum Java Applets
    Replies: 30
    Last Post: 06-10-2012, 01:22 AM
  2. Replies: 0
    Last Post: 10-30-2011, 03:38 PM
  3. How to unwrap java.lang.reflect.InvocationTargetException
    By iamlearning in forum Advanced Java
    Replies: 0
    Last Post: 09-28-2011, 04:03 PM
  4. Replies: 13
    Last Post: 07-09-2010, 05:50 AM
  5. Replies: 0
    Last Post: 01-06-2010, 01:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •