Re: DukeScript netbeans installation on windows7

171 views
Skip to first unread message

Anton Epple

unread,
May 11, 2015, 5:11:42 AM5/11/15
to dukes...@googlegroups.com
Hi Max,

forwarding this to our forum. Can you send me (or share via dropbox) the project? It’s easier to debug.

Thanks

Toni

Am 10.05.2015 um 21:45 schrieb Max:

Hi,

I am writing to you because i'am stuck when trying to launch javascript with java callback with @JavaScriptBody tag.

All other stuff seems to work correctly but not this part.

i have a stack overflow error ->

NetBeans: No suitable Deployment Server is defined for the project or globally.
cd C:\Users\Max\NetBeansProjects\Magic\client; "MAVEN_OPTS=-Xms4096m -Xmx4096m -XX:MaxPermSize=4096m -XX:StackShadowPages=50" "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_25" cmd /c "\"\"D:\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -DskipTests=true -Dnetbeans.inspect.port=53212 -Dmaven.ext.class.path=\"D:\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 exec:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...
                                                                       
------------------------------------------------------------------------
Building Magic Client for JavaFX 1.0-SNAPSHOT
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ Magic ---
An unrecoverable stack overflow has occurred.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 14.809s
Finished at: Sun May 10 21:21:42 CEST 2015
Final Memory: 34M/3925M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project Magic: Command execution failed. Process exited with an error: 255 (Exit value: 255) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
**************************************************************************************

Like you see i've increase allowed memory with -Xmx but always the same :
i've attach an error log which was auto generate log_error.txt

the log file is not always generated but it seems to be always a stack overflow error.

****************************************************************************

Actually i am trying to export a game in the DukeScript framework so i have looked your game model code at https://github.com/dukescript/dukescript-games

So i'm using this ->

****************************************************************

@JavaScriptResource(value = "GameLoop.js")
public class GameLoop {

    private final Handler handler;

    public GameLoop(Handler handler) {
        this.handler = handler;
    }

    public void start() {
        startAnimation(handler);
    }

    public void stop() {

    }

    @JavaScriptBody(args = {"handler"}, javacall = true,
            body = "Game_Singleton.prototype.mainLoop = function () {\n"
            + "var date = new Date();\n"
            + "var time = date.getTime();\n"
            + "handler.@Magic.Magic.Handler::pulse()();\n"
            + "requestAnimationFrame(Game.mainLoop);\n"
            + "console.log('running');\n"
                    + "};\n"
            + "Game.start();\n")
    public static native void startAnimation(Handler handler);
}

*****************************************************************

when i withdraw -> javacall = true,
and -> "handler.@Magic.Magic.Handler::pulse()();\n"

no problem with "GameLoop.js" which is found but when i put this two instruction the bug appear.

also when i put -> ::pulse(J)(time);

i don't have understood the signification of the first call with (J) ?
what is the signification of J ? (java call ?)


In advance thanks for help if you have an idea.


<log_error.txt>



Anton Epple
Eppleton IT Consulting
Bergmannstr. 66
80339 München

Tel: +49 (0)89 54043186

* JavaONE Rockstar: http://www.oracle.com/javaone/rock-stars/index.html
* Java Champion: http://java-champions.java.net

* Community Leader JavaTools: http://community.java.net/javatools
* Blog: http://jayskills.com/news-2/

Connect on:
* XING: https://www.xing.com/profile/Anton_Epple
* LinkedIn: http://www.linkedin.com/pub/8/203/555
* Twitter @monacotoni



Anton Epple

unread,
May 12, 2015, 8:51:26 AM5/12/15
to Maxime Roelandt, dukes...@googlegroups.com
thanks, it’s the address I sent the last mail to (dukes...@googlegroups.com).

cheers

—Toni



Am 11.05.2015 um 21:24 schrieb Maxime Roelandt <mroe...@gmail.com>:

hi, thanks for your response

I haven't found the link of the forum on google or dukescript.com can you give me the link and i will post a topic ?

I've attached the sources.

Anyway I wanted to say congratulations this framework is really a great initiative, awesome work.

have a good day

Max

Actually i am trying to export a game in the DukeScript framework so i have looked your game model code athttps://github.com/dukescript/dukescript-games

<log_error.txt>


<Magic.zip>

signature.asc
Reply all
Reply to author
Forward
0 new messages