You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/03/22 07:29:37 UTC

[GitHub] sijie opened a new issue #1419: Pulsar standalone fails to start with java 9

sijie opened a new issue #1419: Pulsar standalone fails to start with java 9
URL: https://github.com/apache/incubator-pulsar/issues/1419
 
 
   #### Expected behavior
   
   `./bin/pulsar standalone` should be able to run with java 9
   
   #### Actual behavior
   
   standalone fails to start with following errors.
   
   ```
   Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
   	at com.ea.agentloader.AgentLoader$1.loadAgent(AgentLoader.java:244)
   	at com.ea.agentloader.AgentLoader.loadAgent(AgentLoader.java:77)
   	at com.ea.agentloader.AgentLoader.loadAgentClass(AgentLoader.java:148)
   	at com.ea.agentloader.AgentLoader.loadAgentClass(AgentLoader.java:102)
   	at org.apache.pulsar.PulsarStandaloneStarter.start(PulsarStandaloneStarter.java:178)
   	at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:252)
   Caused by: java.lang.reflect.InvocationTargetException
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
   	at com.ea.agentloader.AgentLoader$1.loadAgent(AgentLoader.java:240)
   	... 5 more
   Caused by: java.lang.RuntimeException: java.io.IOException: Can not attach to current VM
   	at com.ea.agentloader.AgentLoaderHotSpot.getVirtualMachine(AgentLoaderHotSpot.java:90)
   	at com.ea.agentloader.AgentLoaderHotSpot.loadAgent(AgentLoaderHotSpot.java:56)
   	... 10 more
   Caused by: java.io.IOException: Can not attach to current VM
   	at jdk.attach/sun.tools.attach.HotSpotVirtualMachine.<init>(HotSpotVirtualMachine.java:75)
   	at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:58)
   	at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
   	at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
   	at com.ea.agentloader.AgentLoaderHotSpot.getVirtualMachine(AgentLoaderHotSpot.java:86)
   	... 11 more
   ```
   
   #### Steps to reproduce
   
   use java 9
   
   ```
   $ java --version
   java 9.0.1
   Java(TM) SE Runtime Environment (build 9.0.1+11)
   Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
   ```
   
   run `bin/pulsar standalone`
   
   #### System configuration
   **Pulsar version**: master
   **Java**: java 9
   **OS**: mac
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services