Skip to main content

Glassfish Throws Exception when creating a domain with Java8

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
AndyJu
Offline
Joined: 2013-02-27

Hi,
I've encountered a problem with GF:

$ bin/asadmin --user admin --passwordfile adminpassword.txt create-domain --keytooloptions CN=localhost Local
Using default port 4848 for Admin.
Using default port 8080 for HTTP Instance.
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Using default port 6666 for OSGI_SHELL.
Using default port 9009 for JAVA_DEBUGGER.
Exception in thread "main" java.lang.VerifyError: (class: org/glassfish/security
/common/PrincipalImpl, method: implies signature: (Ljavax/security/auth/Subject;
)Z) Illegal use of nonvirtual function call
at org.glassfish.security.common.FileRealmHelper.createNewUser(FileRealm
Helper.java:777)
at org.glassfish.security.common.FileRealmHelper.addUser(FileRealmHelper
.java:440)
at com.sun.enterprise.admin.servermgmt.RepositoryManager.modifyKeyFile(R
epositoryManager.java:633)
at com.sun.enterprise.admin.servermgmt.RepositoryManager.createAdminKeyF
ile(RepositoryManager.java:595)
at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.createDomain(
PEDomainsManager.java:170)
at com.sun.enterprise.admin.cli.optional.CreateDomainCommand.createTheDo
main(CreateDomainCommand.java:559)
at com.sun.enterprise.admin.cli.optional.CreateDomainCommand.executeComm
and(CreateDomainCommand.java:352)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:264)
at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
ava:306)
at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:238)

It works fine on older JVMs and I was able to reproduce the error several times on Java8.

Andy

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
robilad
Offline
Joined: 2004-05-05

If you believe that you've found a bug, please report it along with example code to reproduce it at http://bugs.sun.com/services/bugreport/index.jsp

Dalibor Topic
Principal Product Manager
Java Platform Group @ Oracle