2 Replies Latest reply on Feb 3, 2009 5:38 PM by 681095

    NegativeArraySizeException- readNode- RouteServerImplementation constructor

    681841
      Hi people,

      I started oc4j after to create tables (node, egde and sign_post tables) and running SQL> exec sdo_router_partition.partition_router('NODE_PART', xxx);

      The things mean ok. There are data in node, egde and partition tables. There are 530 lines in edge, 501 in node and x lines in PARTITION table. I think this is ok...

      When I have 5 lines in PARTITION table, the NegativeArraySizeException is showed. But, if I change the second parameter of exec sdo_router_partition.partition_router to generate 3 lines in PARTITION table, the IOException is showed.

      The two logs are presented here:

      A) 5 lines in PARTITION table:
      09/01/25 12:59:01 Loading partition 0 from database: Exception caught in RouteServerImplementation constructor
      09/01/25 12:59:01 [oracle.spatial.router.server.RouteServerImplementation, Mon Jan 25 11:50:44 BRST 2009,#OC4J Launcher, FATAL] java.lang.NegativeArraySizeException
      at oracle.spatial.router.engine.Node.readNode(Node.java:87)
      at oracle.spatial.router.engine.Partition.readPartition(Partition.java:86)
      at oracle.spatial.router.engine.PartitionCache.loadPartitionFromDatabase(PartitionCache.java:286)
      at oracle.spatial.router.engine.PartitionCache.obtainPartitionReference(PartitionCache.java:244)
      at oracle.spatial.router.engine.Network.<init>(Network.java:77)
      at oracle.spatial.router.server.RouteServerImplementation.<init>(RouteServerImplementation.java:136)
      at oracle.spatial.router.server.RouteServerServlet.init(RouteServerServlet.java:299)
      at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4830)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
      at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:431)
      at com.evermind.server.Application.getHttpApplication(Application.java:586)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
      at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
      at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
      at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
      at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
      at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      at java.lang.Thread.run(Thread.java:595)

      09/01/25 12:59:01 Exception caught while trying to initialize Oracle RouteServer

      09/01/25 12:59:01 java.lang.NegativeArraySizeException
      09/01/25 12:59:01 at oracle.spatial.router.engine.Node.readNode(Node.java:87)
      09/01/25 12:59:01 at oracle.spatial.router.engine.Partition.readPartition(Partition.java:86)
      09/01/25 12:59:01 at oracle.spatial.router.engine.PartitionCache.loadPartitionFromDatabase(PartitionCache.java:286)
      09/01/25 12:59:01 at oracle.spatial.router.engine.PartitionCache.obtainPartitionReference(PartitionCache.java:244)
      09/01/25 12:59:01 at oracle.spatial.router.engine.Network.<init>(Network.java:77)
      09/01/25 12:59:01 at oracle.spatial.router.server.RouteServerImplementation.<init>(RouteServerImplementation.java:136)
      09/01/25 12:59:01 at oracle.spatial.router.server.RouteServerServlet.init(RouteServerServlet.java:299)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4830)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
      09/01/25 12:59:01 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
      09/01/25 12:59:01 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:431)
      09/01/25 12:59:01 at com.evermind.server.Application.getHttpApplication(Application.java:586)
      09/01/25 12:59:01 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
      09/01/25 12:59:01 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
      09/01/25 12:59:01 at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
      09/01/25 12:59:01 at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
      09/01/25 12:59:01 at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
      09/01/25 12:59:01 at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
      09/01/25 12:59:01 at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
      09/01/25 12:59:01 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
      09/01/25 12:59:01 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      09/01/25 12:59:01 at java.lang.Thread.run(Thread.java:595)
      09/01/25 12:59:01 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized


      B) 3 lines in PARTITION table:
      09/01/27 18:08:10 Loading partition 0 from database: Exception caught in RouteServerImplementation constructor
      09/01/27 18:08:11 [oracle.spatial.router.server.RouteServerImplementation, Tue Jan 27 18:08:11 BRST 2009,#OC4J Launcher, FATAL] oracle.spatial.router.engine.Rou
      tingEngineException: [REE-0123: IOException caught while trying to read Partition 0 from the database: [null]]
      at oracle.spatial.router.engine.PartitionCache.loadPartitionFromDatabase(PartitionCache.java:303)
      at oracle.spatial.router.engine.PartitionCache.obtainPartitionReference(PartitionCache.java:244)
      at oracle.spatial.router.engine.Network.<init>(Network.java:77)
      at oracle.spatial.router.server.RouteServerImplementation.<init>(RouteServerImplementation.java:136)
      at oracle.spatial.router.server.RouteServerServlet.init(RouteServerServlet.java:299)
      at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4830)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
      at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:431)
      at com.evermind.server.Application.getHttpApplication(Application.java:586)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
      at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
      at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
      at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
      at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
      at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      at java.lang.Thread.run(Thread.java:595)

      09/01/27 18:08:11 Exception caught while trying to initialize Oracle RouteServer
      09/01/27 18:08:11 oracle.spatial.router.engine.RoutingEngineException: [REE-0123: IOException caught while trying to read Partition 0 from the database: [null]]

      09/01/27 18:08:11 at oracle.spatial.router.engine.PartitionCache.loadPartitionFromDatabase(PartitionCache.java:303)
      09/01/27 18:08:11 at oracle.spatial.router.engine.PartitionCache.obtainPartitionReference(PartitionCache.java:244)
      09/01/27 18:08:11 at oracle.spatial.router.engine.Network.<init>(Network.java:77)
      09/01/27 18:08:11 at oracle.spatial.router.server.RouteServerImplementation.<init>(RouteServerImplementation.java:136)
      09/01/27 18:08:11 at oracle.spatial.router.server.RouteServerServlet.init(RouteServerServlet.java:299)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4830)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4754)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4942)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1144)
      09/01/27 18:08:11 at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741)
      09/01/27 18:08:11 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:431)
      09/01/27 18:08:11 at com.evermind.server.Application.getHttpApplication(Application.java:586)
      09/01/27 18:08:11 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1987)
      09/01/27 18:08:11 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1906)
      09/01/27 18:08:11 at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:643)
      09/01/27 18:08:11 at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
      09/01/27 18:08:11 at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
      09/01/27 18:08:11 at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
      09/01/27 18:08:11 at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2493)
      09/01/27 18:08:11 at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1042)
      09/01/27 18:08:11 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      09/01/27 18:08:11 at java.lang.Thread.run(Thread.java:595)
      09/01/27 18:08:11 Oracle Containers for J2EE 10g (10.1.3.4.0) initialized


      Could you help me please?

      Thank you very much,

      user10862608