java.lang.InstantiationException: Cannot activate named servlet: helloServlet Unable to dereference: helloServlet : java.lang.IllegalArgumentException: Null schema supplied

Oracle Community | 3004 | 2 decades ago
  1. 0

    Servlet error, "Null schema supplied "

    Oracle Community | 2 decades ago | 3004
    java.lang.InstantiationException: Cannot activate named servlet: helloServlet Unable to dereference: helloServlet : java.lang.IllegalArgumentException: Null schema supplied
  2. 0

    Unable to find DataSource of type oracle.jdbc.pool.OracleOciConnectionPool

    Oracle Community | 1 decade ago | 383504
    java.lang.InstantiationException: Unable to find DataSource of type oracle.jdbc.pool.OracleOciConnectionPool
  3. 0

    db:: 3.80::Web application startup/initialization method f1

    hivmr.com | 5 months ago
    java.lang.InstantiationException: Unable to create: oracle.jdbc.driver.OracleDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Note: Due to Eclipse debugging weirdness, I haven't been able to trace exactly where this problem goes wrong, but it appears to be around {{MappingMongoConverter:200}} when figuring out {{typeToUse}}. I have a hierarchy of MongoDB document types that inherit from an abstract base class and are saved in a single collection. The subclasses use {{@TypeAlias}} to distinguish between them. If the subclass defines any extra fields in addition to the super's, the mapping works properly, and the runtime type retrieved from the repository is the correct one. However, if the subclass does not define any fields beyond the ones on the superclass, SDM looks up the {{_class}} property on the document but then does not use it to look up the correct child class. Instead, it attempts to invoke the abstract superclass's no-arg constructor, which throws an {{InstantiationException}}. I can't provide a simple example that will run without a live MongoDB database, but it appears that the {{BasicDBObject}} being mapped is completely correct, and the problem is specifically with the selection of the {{PreferredConstructor}}; by the time the mapper gets to the {{createInstance}} call at 249, it's selected the invalid superclass constructor. {code:title=stack trace from the find invocation on the repository interface} java.lang.InstantiationException: null at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) at org.springframework.data.convert.ReflectionEntityInstantiator.createInstance(ReflectionEntityInstantiator.java:76) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:249) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:230) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:190) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:186) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:77) at org.springframework.data.mongodb.core.MongoTemplate$ReadDbObjectCallback.doWith(MongoTemplate.java:2121) at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInternal(MongoTemplate.java:1760) at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTemplate.java:1577) at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemplate.java:497) at org.springframework.data.mongodb.repository.query.AbstractMongoQuery$SingleEntityExecution.execute(AbstractMongoQuery.java:307) at org.springframework.data.mongodb.repository.query.AbstractMongoQuery.execute(AbstractMongoQuery.java:107) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:421) at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:381) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy101.findByKey(Unknown Source) {code}

    Spring JIRA | 2 years ago | Christopher Smith
    java.lang.InstantiationException: null

    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.InstantiationException

      Cannot activate named servlet: helloServlet Unable to dereference: helloServlet : java.lang.IllegalArgumentException: Null schema supplied

      at oracle.aurora.mts.ServletContextImpl.getNamedServlet()
    2. oracle.aurora.mts
      ServiceDriver.newConnection
      1. oracle.aurora.mts.ServletContextImpl.getNamedServlet(ServletContextImpl.java)
      2. oracle.aurora.mts.http.HttpServletContext.getNamedServlet(HttpServletContext.java)
      3. oracle.aurora.mts.http.HttpServletContext.getPathServlet(HttpServletContext.java)
      4. oracle.aurora.mts.http.HttpServletContext.resolveServlet(HttpServletContext.java)
      5. oracle.aurora.mts.http.HttpServletContext.resolveServlet(HttpServletContext.java)
      6. oracle.aurora.mts.http.HttpServletContext.resolveServlet(HttpServletContext.java)
      7. oracle.aurora.mts.ProcessingState.resolveServlet(ProcessingState.java)
      8. oracle.aurora.mts.ProcessingState.resolve(ProcessingState.java)
      9. oracle.aurora.mts.EndpointRunner.service(EndpointRunner.java)
      10. oracle.aurora.mts.rdbms.MtsEndpointRunner.run(MtsEndpointRunner.java)
      11. oracle.aurora.mts.rdbms.ServiceDriver._service(ServiceDriver.java)
      12. oracle.aurora.mts.rdbms.ServiceDriver.newConnection(ServiceDriver.java)
      12 frames
    3. oracle.aurora.net
      Presentation.handleRequest
      1. oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
      2. oracle.aurora.net.Presentation.handleRequest(Presentation.java)
      2 frames