Skip to content

JNI FindClass can fail running in an OSGi container #210

Closed

Description

@stuartcampbell

Original reporter: zjttoefs

The java binding tries generate Exceptions in a callback routine. This is known to fail running in an OSGi container like in an eclipse RCP application.

Due to some unfriendly assert statements this leads to a complete crash of the application/JVM. Only message in this case:
java: native/NexusFile.c:80: JapiError: Assertion `jc' failed.

Thanks to Ken Evans a workaround exists: http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg11072.html

This should be implemented and the asserts removed.

Activity

  1. stuartcampbell commented on May 6, 2014

    @stuartcampbell
    MemberAuthor

    Original reporter: zjttoefs

    (In [1421]) refs #210

    This should fix the problem when running in eclipse and not have
    an impact otherwise.

  2. stuartcampbell commented on May 6, 2014

    @stuartcampbell
    MemberAuthor

    Original reporter: zjttoefs

    (In [1423]) refs #210 #219

    work around threading issue in c api by getting environment dynamically
    simplify error reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy