Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 178 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Play framework 2: Error when trying to start application in production mode

#1
OS: Windows 7 64bit

java version: 1.7.0_17

javac Version: 1.7.0_17

I'm new to Play Framework, basically wanted to get a feel of everything.

There's a sample application called java/helloworld. Haven't changed anything and went on using the "start" command.


[helloworld] $ start

(Starting server. Type Ctrl+D to exit logs, the server will remain in background
)

Error occurred during initialization of VM
java.lang.ExceptionInInitializerError
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at java.lang.System.initializeSystemClass(Unknown Source)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range:
0
at java.lang.String.charAt(Unknown Source)
at java.io.Win32FileSystem.<init>(Unknown Source)
at java.io.WinNTFileSystem.<init>(Unknown Source)
at java.io.FileSystem.getFileSystem(Native Method)
at java.io.File.<clinit>(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at java.lang.System.initializeSystemClass(Unknown Source)

Reply

#2
I don't think this is anything to do with Play. It seems like you have encountered [this issue](

[To see links please register here]

), which looks to be a JVM bug on your flavour of Windows.

To run the sample applications in production mode, you may have to proceed as follows:

1. Run the `play stage` command (outside the Play console, just on the command line). The stage task is described [here](

[To see links please register here]

)
2. Add [this JVM argument](

[To see links please register here]

) to the `target\start` script generated by the stage task, before then starting the application.
Reply

#3
As a workaround add

-Dfile.separator=\/

parameter to play.bat and build.bat.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through