java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)

Oracle Community | redhat19 | 5 years ago
  1. 0

    My applications are not launching in GlassFish 3.1.1 on RHE Linux server. Help requested in diagnosising contents of server.log

    Oracle Community | 5 years ago | redhat19
    java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)
  2. 0

    Three Win 2008 machines (all machines had Cygwin installation), 3.1.2 build 16. Tried to setup a cluster with three instances, one instance per a machine. But either nodes creation or instances creation or both failed randomly with such messages: ============================================================= remote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish .config.support.Create with value _register-instance on method public abstract c om.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbean s.Servers.getServer(java.lang.String) Cannot find annotation org.glassfish.config.support.Create with value _register- instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String) ========================================================== For example, I've unzippped bits and tried such sequence of commands: ============================================= asadmin start-domain Waiting for domain1 to start ... Successfully started the domain : domain1 domain Location: C:\export\glassfish3\glassfish\domains\domain1 Log File: C:\export\glassfish3\glassfish\domains\domain1\logs\server.log Admin Port: 4848 Command start-domain executed successfully. asadmin change-admin-password Enter admin user name [default: admin]> Enter admin password> Enter new admin password> Enter new admin password again> Command change-admin-password executed successfully. asadmin enable-secure-admin Enter admin user name> admin Enter admin password for user "admin"> You must restart all running servers for the change in secure admin to take effect. Command enable-secure-admin executed successfully. asadmin stop-domain Waiting for the domain to stop .... Command stop-domain executed successfully. asadmin start-domain Waiting for domain1 to start ... Successfully started the domain : domain1 domain Location: C:\export\glassfish3\glassfish\domains\domain1 Log File: C:\export\glassfish3\glassfish\domains\domain1\logs\server.log Admin Port: 4848 Command start-domain executed successfully. asadmin --user admin --passwordfile password.txt create-cluster c1 Command create-cluster executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-x2250-1 node1 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-oblade-1 node2 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-oblade-2 node3 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-instance --cluster c1 --node node1 in1 remote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbean s.Servers.getServer(java.lang.String) Cannot find annotation org.glassfish.config.support.Create with value _register- instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String) Command create-instance failed. ============================================================================= Other time create-node-ssh also failed: ========================================================================= asadmin --user admin --passwordfile password.txt create-node-ssh --nodhost bigapp-x2250-1 node1 emote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish config.support.Create with value _create-node on method public abstract com.sun enterprise.config.serverbeans.Node com.sun.enterprise.config.serverbeans.Nodes. etNode(java.lang.String) annot find annotation org.glassfish.config.support.Create with value _create-no e on method public abstract com.sun.enterprise.config.serverbeans.Node com.sun. nterprise.config.serverbeans.Nodes.getNode(java.lang.String) ommand create-node-ssh failed. =========================================================================

    Java.net JIRA | 5 years ago | easarina
    java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _create-node on method public abstract com.sun.enterprise.config.serverbeans.Node com.sun.enterprise.config.serverbeans.Nodes.getNode(java.lang.String)^M at org.glassfish.config.support.GenericCrudCommand.getAnnotation(GenericCrudCommand.java:196)^M
  3. 0

    Glassfish - can't log in to admin console

    Stack Overflow | 5 years ago | mm1
    java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String) at org.glassfish.config.support.GenericCrudCommand.getAnnotation(GenericCrudCommand.java:196) at org.glassfish.config.support.GenericCreateCommand.postConstruct(GenericCreateCommand.java:90) at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131) at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91) at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82) at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76) at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796) at com.sun.enterprise.v3.admin.CommandRunnerImpl.getModel(CommandRunnerImpl.java:150) at org.glassfish.admin.rest.generator.ResourcesGeneratorBase.commandIsPresent(ResourcesGeneratorBase.java:315) at org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateCommandResources(ResourcesGeneratorBase.java:296) at org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateSingle(ResourcesGeneratorBase.java:100) at org.glassfish.admin.rest.LazyJerseyInit.generateASM(LazyJerseyInit.java:311) at org.glassfish.admin.rest.LazyJerseyInit.getResourcesConfigForManagement(LazyJerseyInit.java:255) at org.glassfish.admin.rest.adapter.RestManagementAdapter.getResourcesConfig(RestManagementAdapter.java:62) at org.glassfish.admin.rest.adapter.RestAdapter.exposeContext(RestAdapter.java:455) at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RE at com.intellij.util.xml.impl.DomInvocationHandler.a

    YouTrack | 2 years ago
    java.lang.RuntimeException: No implementation for method public abstract java.lang.String com.intellij.spring.model.CommonSpringBean.getBeanName() in class interface com.intellij.spring.integration.model.xml.core.RouterType
  6. 0

    Sending a post query with multiple (LOTS) of parameters

    Stack Overflow | 4 years ago | user1686524
    java.lang.RuntimeException: Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam("custShipMap") on public abstract void com.waudware.pics.service.ICustshipService.postCustship(java.util.HashMap) for basetype: java.util.HashMap

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)

      at org.glassfish.config.support.GenericCrudCommand.getAnnotation()
    2. admin-config-api
      GenericCreateCommand.postConstruct
      1. org.glassfish.config.support.GenericCrudCommand.getAnnotation(GenericCrudCommand.java:196)
      2. org.glassfish.config.support.GenericCreateCommand.postConstruct(GenericCreateCommand.java:90)
      2 frames
    3. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      2. com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      3. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      4. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      5. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      5 frames
    4. HK2 Implementation Utilities
      Habitat.getComponent
      1. org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
      1 frame
    5. Kernel Classes
      CommandRunnerImpl.getModel
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl.getModel(CommandRunnerImpl.java:150)
      1 frame
    6. GlassFish Admin
      RestAdapter.service
      1. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.commandIsPresent(ResourcesGeneratorBase.java:315)
      2. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateCommandResources(ResourcesGeneratorBase.java:296)
      3. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateSingle(ResourcesGeneratorBase.java:100)
      4. org.glassfish.admin.rest.LazyJerseyInit.generateASM(LazyJerseyInit.java:311)
      5. org.glassfish.admin.rest.LazyJerseyInit.getResourcesConfigForManagement(LazyJerseyInit.java:255)
      6. org.glassfish.admin.rest.adapter.RestManagementAdapter.getResourcesConfig(RestManagementAdapter.java:62)
      7. org.glassfish.admin.rest.adapter.RestAdapter.exposeContext(RestAdapter.java:455)
      8. org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)
      8 frames
    7. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
      1 frame
    8. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
      2 frames
    9. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame