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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    Porting project JBoss AS 6 to JBoss AS 7

    Stack Overflow | 5 years ago | Rounak
    java.lang.RuntimeException: com.sun.faces.config.ConfigurationException : CONFIGURATION FAILED! Class org.jboss.as.web.deployment.jsf.JandexAnnotationPr ovider is not an instance of com.sun.faces.spi.AnnotationProvider at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi stener.java:292) [jsf-impl.jar:] at org.apache.catalina.core.StandardContext.contextListenerStart(Standar dContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 821) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentS ervice.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se rviceControllerImpl.java:1824) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont rollerImpl.java:1759) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1110) [:1.7.0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:603) [:1.7.0]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error initializing GroovyPageView

    Stack Overflow | 3 years ago | mrquad
    org.codehaus.groovy.grails.web.mapping.exceptions.UrlMappingException: Error map ping onto view [/index]: Error initializing GroovyPageView
  6. 0

    Android Asynctask method does not display the data

    Stack Overflow | 3 years ago | user3316775
    java.lang.RuntimeException: An error occured while executing doInBackground() android.os.AsyncTask$3.done(AsyncTask.java:278) java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) java.util.concurrent.FutureTask.setException(FutureTask.java:124) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) java.util.concurrent.FutureTask.run(FutureTask.java:137) android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

    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