Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception at the end of capsule execution #90

Closed
adrienlauer opened this issue Sep 14, 2015 · 3 comments
Closed

Exception at the end of capsule execution #90

adrienlauer opened this issue Sep 14, 2015 · 3 comments

Comments

@adrienlauer
Copy link

When using Capsule 1.0, I encounter an exception at the end of the execution, after my program successfully executed but before its returns to the OS.

    CAPSULE EXCEPTION: Connection reset while processing null null: null
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(Unknown Source)
            at java.net.SocketInputStream.read(Unknown Source)
            at java.net.SocketInputStream.read(Unknown Source)
            at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
            at java.io.DataInputStream.readInt(Unknown Source)
            at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
            at java.io.ObjectInputStream.readInt(Unknown Source)
            at Capsule.receive(Capsule.java:1782)
            at Capsule.receiveLoop(Capsule.java:1743)
            at Capsule.launch0(Capsule.java:1349)
            at Capsule.launch(Capsule.java:1322)
            at Capsule.launch(Capsule.java:1252)
            at Capsule.main0(Capsule.java:391)
            at Capsule.main(Capsule.java:370)
    CAPSULE: Cleanup
    CAPSULE: Sending message 1 : 1
    CAPSULE: Sending of message 1: 1 failed - Connection reset by peer: socket write error

This doesn't happen when using Capsule 1.0-rc1, as it seems related to the capsule agent feature I noticed:

    CAPSULE: Waiting for client to connect...
    CAPSULE AGENT: Jar: ...\test\target\test-1.0.0-SNAPSHOT-capsule.jar
    CAPSULE AGENT: Platform: windows
    CAPSULE AGENT: Initializing app ID
    CAPSULE AGENT: Initialized app ID: test-1.0.0-SNAPSHOT-capsule.jar
    CAPSULE AGENT: Starting capsule client: 0.0.0.0:65289
    CAPSULE AGENT: Client connected,CAPSULE: Client connected
@circlespainter
Copy link
Member

Is the exception printed only with -Dcapsule.log=verbose or anyway?

@pron pron closed this as completed in 1affcb6 Sep 16, 2015
@adrienlauer
Copy link
Author

The detailed exception is only printed with -Dcapsule.log=verbose but the following error message is still displayed without:

CAPSULE EXCEPTION: Connection reset while processing null null: null (for stack trace, run with -Dcapsule.log=verbose)

@pron
Copy link
Contributor

pron commented Sep 16, 2015

You can try it with the new snapshot (1.0.1-SNAPSHOT). I believe this should now be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants