FAQ  •  Register  •  Login

JAVA Error every time I open Serviio Console

<<

vikenk

Streaming enthusiast

Posts: 28

Joined: Sat Mar 23, 2013 2:16 pm

Post Sat Mar 23, 2013 2:35 pm

JAVA Error every time I open Serviio Console

Hello Everyone,

I have a strange occurrence. Every time I do an automatic java update, on the next boot up I get a "no JVM could be found on your computer" error when I start the Serviio console. It asks me to point to the JVM directory but I can't get into the Serviio Console to do that.

I can repair this error by going to the Java site, manually downloading Java and installing it. I have to uninstall the previous version. Of course, when I install Java I soon get prompted that there is an update available. When I do the auto update, the cycle starts again with the "no JVM' Message. Has anyone experienced this? Is there a fix?

By the way, this happens on both 32 bit and 64 bit Windows 7 systems.

I'm attaching a screenshot below.

Image
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Mar 23, 2013 3:46 pm

Re: JAVA Error every time I open Serviio Console

can you try to execute the console like this (if you are still getting the same error) from Serviio bin directory (use command line)?

  Code:
ServiioConsole.exe /create-i4j-log


It should create a log in the bin directory. Attach the log here please.
<<

vikenk

Streaming enthusiast

Posts: 28

Joined: Sat Mar 23, 2013 2:16 pm

Post Sat Mar 23, 2013 4:00 pm

Re: JAVA Error every time I open Serviio Console

Hello Petr,

I hope I did this right. Here's the contents of the log:

Started executable C:\program files\serviio\bin\ServiioConsole.exe at Sat Mar 23 11:58:29 2013

number of sections: 5
size of optional headers: 224
resSectionTableStart: 632
rawDataSize: 10240, rawDataOffset: 528384
sun.locale.formatasdefault is true
language/country is en_US
change working directory to C:\program files\Serviio\bin
calling C:\Windows\explorer.exe /select,C:\Users\Viken\AppData\Local\Temp\I4J_NL~1
semaphore name Local\c:_program_files_pc5dczc_bin_serviioconsole.exe0, code 0, value 000000DC
extracting files
Included files: 2
GetTempPath returned 34 (last error 183)
make dir returned -1
tempPath is C:\Users\Viken\AppData\Local\Temp\
tempFile is C:\Users\Viken\AppData\Local\Temp\e4j3AB0.tmp
Temp dir: C:\Users\Viken\AppData\Local\Temp\e4j3AB0.tmp_dir1364054314
extracting C:\Users\Viken\AppData\Local\Temp\e4j3AB0.tmp_dir1364054314\exe4jlib.jar (size: 29885)
extracting C:\Users\Viken\AppData\Local\Temp\e4j3AB0.tmp_dir1364054314\i4jdel.exe (size: 35224)
extracting files done
native lib dir is
GetTempPath returned 34 (last error 183)
make dir returned -1
Setting PATH (native libs) C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\
LoadDLL (1, (null), 0)
Searching for a JVM
GetTempPath returned 34 (last error 3)
make dir returned -1
Testing location (type Y)
checkJavaExe (C:\Program Files\Java\jre7\bin\java.exe, [out], 1.6, , 0)
file exists
got version from registry 1.0.0
checkJavaExe returning 0
checkJavaExe (C:\Program Files\Java\jre7\bin\java.exe, [out], 1.6, , 0)
file exists
got version from registry 1.0.0
checkJavaExe returning 0
checkJavaExe (C:\Program Files\Java\jre7\bin\java.exe, [out], 1.6, , 0)
file exists
got version from registry 1.0.0
checkJavaExe returning 0
GetTempPath returned 34 (last error 183)
make dir returned -1
Testing location JAVA_HOME (type E)
GetTempPath returned 34 (last error 203)
make dir returned -1
Testing location JDK_HOME (type E)
Search sequence finished
ERROR: No JVM found
<<

nh525

Serviio newbie

Posts: 3

Joined: Sat Mar 23, 2013 11:40 pm

Post Sat Mar 23, 2013 11:52 pm

Re: JAVA Error every time I open Serviio Console

I have exactly the same issue

Serviio worked fine immediately after being installed and Java was installed as part of the process. Subsequently I was asked to upgrade Java, which I did, and now serviio does not work any more. (Restarting serviio does not cure the problem, though I suspect that uninstalling Java first and then reinstalling serviio would do the trick.)

Setting the EXE4J_JAVA_HOME environment variable to point to the jre7 folder or the jre7/bin folder does not cure the problem. Not does appending the jre7/bin folder address to the Path environment variable fix the problem.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 24, 2013 12:31 am

Re: JAVA Error every time I open Serviio Console

can you post the same log as the above user?
<<

dellengwyn

Serviio newbie

Posts: 2

Joined: Sun Mar 24, 2013 1:18 am

Post Sun Mar 24, 2013 1:27 am

Re: JAVA Error every time I open Serviio Console

Greetings,

I have exactly the same problem after updating to JRE7. I tried to generate the log file from the command line in the /bin directory, but the result was a popup window with the error message about the JAVA environment variable (as posted above). Any other way to generate a log?

Thanks for your help,

Dellengwyn
<<

nh525

Serviio newbie

Posts: 3

Joined: Sat Mar 23, 2013 11:40 pm

Post Sun Mar 24, 2013 4:59 am

Re: JAVA Error every time I open Serviio Console

Here is the error logfile from my system as an attachment (I think).

Thanks Petr!

[attachment=0]i4j_nlog_2.txt[/attachment]
Attachments
i4j_nlog_2.txt
(2.42 KiB) Downloaded 477 times
<<

crackedtooth

Streaming enthusiast

Posts: 45

Joined: Thu Sep 27, 2012 9:58 am

Post Sun Mar 24, 2013 10:23 am

Re: JAVA Error every time I open Serviio Console

And this a working one, on machine which also has problem when i dont do a manual update



Started executable C:\Program Files\Serviio\bin\ServiioConsole.exe at Sun Mar 24 11:20:35 2013

number of sections: 6
size of optional headers: 240
resSectionTableStart: 704
rawDataSize: 2048, rawDataOffset: 566784
sun.locale.formatasdefault is true
language/country is en_US
change working directory to C:\Program Files\Serviio\bin
calling C:\Windows\explorer.exe /select,C:\Users\MARJOL~1\AppData\Local\Temp\I4J_NL~2
semaphore name c:_program_files_pc5dczc_bin_serviioconsole.exe1, code 0, value 0000000000000150
extracting files
Included files: 2
GetTempPath returned 37 (last error 183)
make dir returned -1
tempPath is C:\Users\MARJOL~1\AppData\Local\Temp\
tempFile is C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp
Temp dir: C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp_dir1364120437
extracting C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp_dir1364120437\exe4jlib.jar (size: 29873)
extracting C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp_dir1364120437\i4jdel.exe (size: 28099)
extracting files done
native lib dir is
GetTempPath returned 37 (last error 183)
make dir returned -1
Setting PATH (native libs) C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Calibre2\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell
LoadDLL (1, (null), 0)
Searching for a JVM
GetTempPath returned 37 (last error 3)
make dir returned -1
Testing location (type Y)
checkJavaExe (C:\Program Files\Java\jre7\bin\java.exe, [out], 1.6, , 0)
file exists
got version from registry 1.7.0_17
checkJavaExe returning 1
found sun c:\program files\java\jre7\bin\javaw.exe 1.7.0_17
Trying to load JVM-DLL from c:\program files\java\jre7\bin\javaw.exe
Setting PATH C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Calibre2\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;c:\program files\java\jre7\bin
Trying c:\program files\java\jre7\bin\hotspot\jvm.dll (exists 0)
Trying c:\program files\java\jre7\bin\client\jvm.dll (exists 0)
Trying c:\program files\java\jre7\bin\server\jvm.dll (exists 1)
Loading of JVM-DLL successful
launching program
GetTempPath returned 37 (last error 6)
make dir returned -1
expanding %EXE4J_EXEDIR% to C:\Program Files\Serviio\bin\ in -Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -Djava.net.preferIPv4Stack=true -Dserviio.home='C:\Program Files\Serviio\bin\\..'.
adding options

vmoptions: exe file: C:\Program Files\Serviio\bin\ServiioConsole.exe, long: C:\Program Files\Serviio\bin\ServiioConsole.exe, opts1: C:\Program Files\Serviio\bin\ServiioConsole.vmoptions, file: 0000000000000000
vmoptions: opts2: C:\Program Files\Serviio\bin\ServiioConsole.exe.vmoptions, file: 0000000140031A60
default vmoptions file: 0000000140031A60
GetTempPath returned 37 (last error 183)
make dir returned -1
classpath entry S0..\.\lib;D0..\.\config;
GetTempPath returned 37 (last error 183)
make dir returned -1
GetTempPath returned 37 (last error 2)
make dir returned -1
vmoption count 16
vmoption 0: -Dexe4j.semaphoreName=c:_program_files_pc5dczc_bin_serviioconsole.exe1
vmoption 1: -Dexe4j.moduleName=C:\Program Files\Serviio\bin\ServiioConsole.exe
vmoption 2: -Dsun.java.command=C:\Program Files\Serviio\bin\ServiioConsole.exe
vmoption 3: -Dexe4j.tempDir=C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp_dir1364120437
vmoption 4: -Dexe4j.unextractedPosition=629307
vmoption 5: -Djava.library.path=C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Calibre2\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;c:\program files\java\jre7\bin
vmoption 6: -Dexe4j.consoleCodepage=cp0
vmoption 7: -Xms5M
vmoption 8: -XX:+UseParNewGC
vmoption 9: -XX:MinHeapFreeRatio=5
vmoption 10: -XX:MaxHeapFreeRatio=10
vmoption 11: -Djava.net.preferIPv4Stack=true
vmoption 12: -Dserviio.home=C:\Program Files\Serviio\bin\\..
vmoption 13: -Dsun.locale.formatasdefault=true
vmoption 14: -Dserviio.remoteHost=192.168.1.128
vmoption 15: -Djava.class.path=C:\Users\MARJOL~1\AppData\Local\Temp\e4jD80B.tmp_dir1364120437\exe4jlib.jar;C:\Program Files\Serviio\bin\..\.\lib\commons-codec.jar;C:\Program Files\Serviio\bin\..\.\lib\commons-io.jar;C:\Program Files\Serviio\bin\..\.\lib\commons-jxpath.jar;C:\Program Files\Serviio\bin\..\.\lib\commons-lang.jar;C:\Program Files\Serviio\bin\..\.\lib\concurrent.jar;C:\Program Files\Serviio\bin\..\.\lib\derby.jar;C:\Program Files\Serviio\bin\..\.\lib\freemarker.jar;C:\Program Files\Serviio\bin\..\.\lib\groovy-all.jar;C:\Program Files\Serviio\bin\..\.\lib\gson.jar;C:\Program Files\Serviio\bin\..\.\lib\httpcore.jar;C:\Program Files\Serviio\bin\..\.\lib\jaudiotagger.jar;C:\Program Files\Serviio\bin\..\.\lib\jcl-over-slf4j.jar;C:\Program Files\Serviio\bin\..\.\lib\jcs.jar;C:\Program Files\Serviio\bin\..\.\lib\jdom.jar;C:\Program Files\Serviio\bin\..\.\lib\jnat-pmplib.jar;C:\Program Files\Serviio\bin\..\.\lib\jul-to-slf4j.jar;C:\Program Files\Serviio\bin\..\.\lib\log4j.jar;C:\Program Files\Serviio\bin\..\.\lib\org.restlet.ext.gson.jar;C:\Program Files\Serviio\bin\..\.\lib\org.restlet.ext.net.jar;C:\Program Files\Serviio\bin\..\.\lib\org.restlet.ext.xstream.jar;C:\Program Files\Serviio\bin\..\.\lib\org.restlet.jar;C:\Program Files\Serviio\bin\..\.\lib\padlock.jar;C:\Program Files\Serviio\bin\..\.\lib\rome-modules.jar;C:\Program Files\Serviio\bin\..\.\lib\rome.jar;C:\Program Files\Serviio\bin\..\.\lib\sanselan.jar;C:\Program Files\Serviio\bin\..\.\lib\sbbi-upnp.jar;C:\Program Files\Serviio\bin\..\.\lib\serviio-client.jar;C:\Program Files\Serviio\bin\..\.\lib\serviio-media-browser.jar;C:\Program Files\Serviio\bin\..\.\lib\serviio.jar;C:\Program Files\Serviio\bin\..\.\lib\slf4j-api.jar;C:\Program Files\Serviio\bin\..\.\lib\slf4j-log4j12.jar;C:\Program Files\Serviio\bin\..\.\lib\winp.jar;C:\Program Files\Serviio\bin\..\.\lib\xstream.jar;C:\Program Files\Serviio\bin\..\.\config;
Creating JVM
JVM created
main class: com/exe4j/runtime/WinLauncher
GetTempPath returned 37 (last error 0)
make dir returned -1
param count: 6
param 0: true
param 1: org.serviio.console.ServiioConsole
param 2:
param 3:
param 4: true
param 5: ServiioConsole.exe
calling main
<<

crackedtooth

Streaming enthusiast

Posts: 45

Joined: Thu Sep 27, 2012 9:58 am

Post Sun Mar 24, 2013 10:25 am

Re: JAVA Error every time I open Serviio Console

nh525 wrote:Here is the error logfile from my system as an attachment (I think).

Thanks Petr!

i4j_nlog_2.txt



last line
"checkJavaExe (D:\Program Files\Java\jre7\bin\bin\java.exe, [out], 1.6, , 0)
file doesn't exist"


bin/bin

thats double

is that not a scriptiung error in serviio itself?
<<

nh525

Serviio newbie

Posts: 3

Joined: Sat Mar 23, 2013 11:40 pm

Post Sun Mar 24, 2013 4:13 pm

Re: JAVA Error every time I open Serviio Console

Right! And that means that there is a workaround for the problem.

Until serviio is fixed, the workaround is to got to the jre7/bin folder and
1. create a folder named bin inside that bin folder
2. copy the java.exe executable file into the new bin subfolder. (Copy it, don't move it.)

This way, serviio will find the ...jre7/bin/bin/java.exe file that it is looking for.

I did this, restarted Windows and the serviio service started right up with no errors being reported. Everything looks good.
<<

vikenk

Streaming enthusiast

Posts: 28

Joined: Sat Mar 23, 2013 2:16 pm

Post Sun Mar 24, 2013 5:26 pm

Re: JAVA Error every time I open Serviio Console

nh525 wrote:Right! And that means that there is a workaround for the problem.

Until serviio is fixed, the workaround is to got to the jre7/bin folder and
1. create a folder named bin inside that bin folder
2. copy the java.exe executable file into the new bin subfolder. (Copy it, don't move it.)

This way, serviio will find the ...jre7/bin/bin/java.exe file that it is looking for.

I did this, restarted Windows and the serviio service started right up with no errors being reported. Everything looks good.


Unfortunately, that didn't work for me. It was worth a try though. I don't think my log file shows a bin/bin path. In fact, it seems to find all the files it's looking for but still thinks there's no Java. If you look at my log file, you'll see that it searches for a file and then reports "file exists" but in the end it says no JVM found.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 24, 2013 7:39 pm

Re: JAVA Error every time I open Serviio Console

This can usually be resolved by uninstalling Java and installing it again. Anyway, I've sent the logs to the exe4j wrapper devs to look at what might be wrong and hopefully fix it on their end, for future Serviio inclusion.
<<

vikenk

Streaming enthusiast

Posts: 28

Joined: Sat Mar 23, 2013 2:16 pm

Post Sun Mar 24, 2013 7:59 pm

Re: JAVA Error every time I open Serviio Console

zip wrote:This can usually be resolved by uninstalling Java and installing it again. Anyway, I've sent the logs to the exe4j wrapper devs to look at what might be wrong and hopefully fix it on their end, for future Serviio inclusion.


That's always what fixes it for me. However, after I install Java again, I soon get prompted that an update is available. When I do an auto update, the problem starts all over again.

For now, I have reinstalled Java and disabled the auto update notification.

Is this a Serviio problem or a Java problem? Just curious...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Mar 25, 2013 12:51 am

Re: JAVA Error every time I open Serviio Console

I will have to wait for what the developer of the exe Java wrapper says, based on the logs.
<<

dellengwyn

Serviio newbie

Posts: 2

Joined: Sun Mar 24, 2013 1:18 am

Post Tue Mar 26, 2013 7:07 am

Re: JAVA Error every time I open Serviio Console

I tried the "bin/bin" solution and it didnt' work for me. I'm using Windows XP SP3, BTW, on a home-built system.

My workaround was (as with others) to uninstall Java 7 and Serviio, and then re-install Serviio, allowing it to auto-install Java 6. That worked fine, though I now can't upgrade to JRE7 (apparently), if I want to keep using Serviio (which I do... because it's awesome!).

Thanks to you, Zip, for all your work, and I hope this feedback helps in some way....
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 26, 2013 1:28 pm

Re: JAVA Error every time I open Serviio Console

The exe4j devs sent me a new build, that should hopefully fix it. I'll be able to use it only in a new Serviio version though.
<<

_SDK_

Streaming enthusiast

Posts: 46

Joined: Sun Dec 23, 2012 6:10 am

Location: NYC, NY

Post Wed Mar 27, 2013 12:16 pm

Re: JAVA Error every time I open Serviio Console

I wonder if this may, somehow, be related to my problems with Mac computers and Serviio 1.2.... I do not have enough knowledge or experience to fix it myself.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 27, 2013 1:35 pm

Re: JAVA Error every time I open Serviio Console

_SDK_ wrote:I wonder if this may, somehow, be related to my problems with Mac computers and Serviio 1.2.... I do not have enough knowledge or experience to fix it myself.

No, this is Windows only
<<

vikenk

Streaming enthusiast

Posts: 28

Joined: Sat Mar 23, 2013 2:16 pm

Post Sat Mar 30, 2013 1:45 pm

Re: JAVA Error every time I open Serviio Console

Thanks for the update zip. I'll keep an eye out for a future Serviio release.
<<

Mitcho

Serviio newbie

Posts: 2

Joined: Tue Apr 09, 2013 6:37 am

Post Tue Apr 09, 2013 6:39 am

Re: JAVA Error every time I open Serviio Console

I am experiencing this issue as well - tried the folder solution and reinstalling Java .. no dice.
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 64 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.