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

Fails to run under Capsule 1.0.1 under OS/X #12

Open
talios opened this issue Apr 7, 2016 · 2 comments
Open

Fails to run under Capsule 1.0.1 under OS/X #12

talios opened this issue Apr 7, 2016 · 2 comments

Comments

@talios
Copy link

talios commented Apr 7, 2016

I'm using capsule 1.0.1 and when I run my capsule on OSX I get the following:

CAPSULE: Launching app com.smxemail.appsuite.vacationservice-1.0.1-SNAPSHOT-capsule
CAPSULE: Copying daemon native helpers [jsvc/linux64-brew/jsvc, jsvc/macosx-yosemite-brew/jsvc, procrun/prunsrv.exe] in /Users/amrk/.capsule/apps/com.smxemail.appsuite.vacationservice-1.0.1-SNAPSHOT-capsule/bin
CAPSULE: Creating temp file/dir /Users/amrk/.capsule/apps/com.smxemail.appsuite.vacationservice-1.0.1-SNAPSHOT-capsule/bin
CAPSULE: Unlocking /Users/amrk/.capsule/apps/com.smxemail.appsuite.vacationservice-1.0.1-SNAPSHOT-capsule/.lock
CAPSULE: Cleanup
CAPSULE EXCEPTION: tried to access method Capsule.copy(Ljava/io/InputStream;Ljava/io/OutputStream;)V from class DaemonCapsule
java.lang.IllegalAccessError: tried to access method Capsule.copy(Ljava/io/InputStream;Ljava/io/OutputStream;)V from class DaemonCapsule
  at DaemonCapsule.copy(DaemonCapsule.java:183)
  at DaemonCapsule.setupBinDir(DaemonCapsule.java:171)
  at DaemonCapsule.getJavaExecutable(DaemonCapsule.java:116)
  at Capsule.getJavaExecutable(Capsule.java:2245)
  at Capsule.buildJavaProcess(Capsule.java:2203)
  at Capsule.buildProcess0(Capsule.java:1519)
  at Capsule.buildProcess(Capsule.java:1510)
  at Capsule.buildProcess(Capsule.java:1510)
  at Capsule.buildProcess(Capsule.java:1510)
  at Capsule.buildProcess(Capsule.java:1510)
  at Capsule.prelaunch0(Capsule.java:1483)
  at Capsule.prelaunch(Capsule.java:1476)
  at Capsule.prelaunch(Capsule.java:1476)
  at Capsule.prelaunch(Capsule.java:1476)
  at DaemonCapsule.prelaunch(DaemonCapsule.java:141)
  at Capsule.prelaunch(Capsule.java:1476)
  at Capsule.prepareForLaunch(Capsule.java:1329)
  at Capsule.launch(Capsule.java:1258)
  at Capsule.main0(Capsule.java:394)
  at Capsule.main(Capsule.java:374)

I'm using the capsule-maven-plugin with the following basic configuration:

  <plugin>
    <groupId>com.github.chrischristo</groupId>
    <artifactId>capsule-maven-plugin</artifactId>
    <version>1.1.1</version>
    <executions>
      <execution>
        <goals>
          <goal>build</goal>
        </goals>
        <configuration>
          <appClass>com.smxemail.appsuite.vacationservice.VacationMessageService</appClass>
          <caplets>co.paralleluniverse:capsule-daemon:0.1.0</caplets>
          <chmod>true</chmod>
          <types>fat</types>
        </configuration>
      </execution>
    </executions>
  </plugin>
@talios
Copy link
Author

talios commented Apr 7, 2016

I just build 0.2.0-SNAPSHOT locally from HEAD@master and the above problem no longer occurs, when after switching to using:

compile 'co.paralleluniverse:capsule:1.0'

in the build.gradle file.

Is there any chances of a new release?

@circlespainter
Copy link
Member

It looks the same as #4. You don't need to build locally though, 0.2.0-SNAPSHOT is published on SonaType. Can you try with the capsule 1.0.2-SNAPSHOT and capsule-daemon 0.2.0-SNAPSHOT both from SonaType?

As for the release, soon.

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

2 participants