java.lang.RuntimeException: Invalid resource : jdbc/LADLM__pm

Coderanch | Pierre Franckx | 2 years ago
  1. 0

    GlassFish Users - app scoped resources

    nabble.com | 1 year ago
    java.lang.RuntimeException: Invalid resource : testingPU__pm at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:540) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:469) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:214) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:483) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:221)
  2. 0

    GlassFish Users - Invalid Resource Exception

    nabble.com | 9 months ago
    java.lang.RuntimeException: Invalid resource : jdbc/lemmdb__pm at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:539) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:468) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119)
  3. 0

    [GLASSFISH-15430] Invalid Resource jdbc/resname__pm - Java.net JIRA

    java.net | 1 year ago
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [GLASSFISH-15430] Invalid Resource jdbc/resname__pm - Java.net JIRA

    java.net | 9 months ago
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm
  6. 0

    Am using Embedded version of Glassfish to bootstrap application. Command to create the resource succeeds without any failures. However when the application tries to use the resource it outputs the following: SEVERE: Exception while preparing the app : Invalid resource : jdbc/customname__pm com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.validateResource(ConnectorResourceAdminServiceImpl.java:272) at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.setResourceInfo(ConnectorResourceAdminServiceImpl.java:253) at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl.lookupDataSourceInDAS(ConnectorResourceAdminServiceImpl.java:243) at com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:536) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:467) at org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63) at org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71) at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:154) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:119) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:202) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:475) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:209) at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:162) Note: A similar bug has been marked as resolved http://java.net/jira/browse/GLASSFISH-13672 However I do not have any glassfish-resources.xml which could be used to resolve the issue. It was mentioned in this bug report that the user also found the bug without this file but no extra comments were made on how to resolve.

    Java.net JIRA | 6 years ago | aloleary
    com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/customname__pm

    7 unregistered visitors
    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. com.sun.appserv.connectors.internal.api.ConnectorRuntimeException

      Invalid resource : jdbc/LADLM__pm

      at org.glassfish.jdbcruntime.service.JdbcDataSource.validateResource()
    2. JDBC Runtime Module
      JdbcRuntimeExtension.lookupDataSourceInDAS
      1. org.glassfish.jdbcruntime.service.JdbcDataSource.validateResource(JdbcDataSource.java:81)
      2. org.glassfish.jdbcruntime.service.JdbcDataSource.setResourceInfo(JdbcDataSource.java:62)
      3. org.glassfish.jdbcruntime.JdbcRuntimeExtension.lookupDataSourceInDAS(JdbcRuntimeExtension.java:136)
      3 frames
    3. Connectors Runtime
      ConnectorRuntime.lookupPMResource
      1. com.sun.enterprise.connectors.ConnectorRuntime.lookupDataSourceInDAS(ConnectorRuntime.java:589)
      2. com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(ConnectorRuntime.java:517)
      2 frames
    4. Persistence
      PersistenceHelper.lookupPMResource
      1. org.glassfish.persistence.common.PersistenceHelper.lookupPMResource(PersistenceHelper.java:63)
      1 frame
    5. Embedded GlassFish Web
      JPADeployer.prepare
      1. org.glassfish.persistence.jpa.ProviderContainerContractInfoBase.lookupDataSource(ProviderContainerContractInfoBase.java:71)
      2. org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:108)
      3. org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:142)
      4. org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:107)
      5. org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223)
      6. org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510)
      7. org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230)
      8. org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168)
      8 frames
    6. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:434)
      3. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
      3 frames
    7. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
      1 frame
    8. Kernel Classes
      CommandRunnerImpl$2$1.run
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
      2 frames
    9. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:356)
      2 frames
    10. Kernel Classes
      CommandRunnerImpl$3.run
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
      3 frames
    11. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:356)
      2 frames
    12. Kernel Classes
      CommandRunnerImpl$ExecutionContext.execute
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
      2. com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
      3. com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
      4. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
      5. com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
      5 frames
    13. admin-cli
      DeployerImpl.deploy
      1. com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
      2. com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:109)
      2 frames
    14. Embedded GlassFish Web
      EJBContainerProviderImpl.createEJBContainer
      1. org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:138)
      2. org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
      2 frames
    15. JavaEE 7
      EJBContainer.createEJBContainer
      1. javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
      2. javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)
      2 frames
    16. Services
      ArtiestFacadeRESTTest.testEdit_GenericType
      1. Services.ArtiestFacadeRESTTest.testEdit_GenericType(ArtiestFacadeRESTTest.java:50)
      1 frame
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    18. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
      15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      16. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      17. org.junit.runners.ParentRunner.run(ParentRunner.java:300)
      17 frames
    19. Apache Ant + JUnit
      JUnitTestRunner.main
      1. org.apache.tools.ant.taskdefs.optional.junit.JUnit4TestMethodAdapter.run(JUnit4TestMethodAdapter.java:105)
      2. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:532)
      3. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179)
      4. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030)
      4 frames