The latest GlassFish (5.0.1-SNAPSHOT) Failed to start

Answered

Idea version: IntelliJ IDEA 2018.2.4

Successfully started the domain : domain1
domain Location: /Users/rieon/Developments/glassfish5/glassfish/domains/domain1
Log File: /Users/rieon/Developments/glassfish5/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
Error running admin process:
Message: java.lang.NoSuchMethodError: com.sun.enterprise.admin.util.AuthenticationInfo.<init>(Ljava/lang/String;Ljava/lang/String;)V Stack trace: com.intellij.javaee.process.common.JavaeeProcessUtilException: java.lang.NoSuchMethodError: com.sun.enterprise.admin.util.AuthenticationInfo.<init>(Ljava/lang/String;Ljava/lang/String;)V at com.intellij.javaee.process.common.MethodInvocator.invoke(MethodInvocator.java:47) at com.intellij.javaee.oss.process.JavaeeProcess.processRequest(JavaeeProcess.java:112) at com.intellij.javaee.oss.process.JavaeeProcess.run(JavaeeProcess.java:52) at com.intellij.javaee.oss.process.JavaeeProcess.main(JavaeeProcess.java:31) Caused by: java.lang.NoSuchMethodError: com.sun.enterprise.admin.util.AuthenticationInfo.<init>(Ljava/lang/String;Ljava/lang/String;)V at com.intellij.javaee.oss.glassfish.agent.Glassfish31Agent.getConnection(Glassfish31Agent.java:36) at com.intellij.javaee.oss.glassfish.agent.Glassfish3AgentBase.invoke(Glassfish3AgentBase.java:183) at com.intellij.javaee.oss.glassfish.agent.Glassfish3AgentBase.doConnect(Glassfish3AgentBase.java:39) at com.intellij.javaee.oss.agent.SimpleAgentBase$1.doJob(SimpleAgentBase.java:17) at com.intellij.javaee.oss.agent.SimpleAgentBase$1.doJob(SimpleAgentBase.java:13) at com.intellij.javaee.oss.agent.SimpleAgentJob.perform(SimpleAgentJob.java:12) at com.intellij.javaee.oss.agent.SimpleAgentBase.connect(SimpleAgentBase.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.javaee.process.common.MethodInvocator.invoke(MethodInvocator.java:41) ... 3 more /Users/rieon/Developments/glassfish5/glassfish/bin/asadmin stop-domain domain1

Disconnected from the target VM, address: '127.0.0.1:9009', transport: 'socket'

AuthenticationInfo's signature has been changed.

AuthenticationInfo(String user, String password) => AuthenticationInfo(String user, char[] password)


AuthenticationInfo.java Code Link Here
 

0
1 comment

Hello,

Please see https://youtrack.jetbrains.com/issue/IDEA-194181. The problem is caused by the broken backward compatibility in the GF codebase.

As a general policy we are not supporting the nightly streams of the application servers before they reach at least RC state. 
I have requested the GF team to rollback the change at https://github.com/javaee/glassfish/pull/22336.

Until then please consider switching to the corresponding Payara builds, they reported to have this backward compatibility issue addressed.

If the issue can't be addressed at GF before their RC, we will add version-specific workaround in IDEA code.

0

Please sign in to leave a comment.