Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-411

Unresolved type names in route definitions break dynamic reloading

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • Core
    • None
    • 3.1 - final QA sprint

    Description

      When mistyping type values for heap object declarations in routes, this is throwing an Exception, but that also breaks dynamic reloading: even after fixing the typo, the route can't get loaded !

      org.forgerock.json.fluent.JsonValueException: /heap/0/type: java.lang.ClassNotFoundException: ConsoleLogSinkA
      	at org.forgerock.openig.util.Json.classForName(Json.java:119)
      	at org.forgerock.openig.util.Json.asClass(Json.java:146)
      	at org.forgerock.openig.heap.HeapImpl.addDeclaration(HeapImpl.java:256)
      	at org.forgerock.openig.heap.HeapImpl.init(HeapImpl.java:186)
      	at org.forgerock.openig.handler.router.Route.<init>(Route.java:137)
      	at org.forgerock.openig.handler.router.RouteBuilder.build(RouteBuilder.java:67)
      	at org.forgerock.openig.handler.router.RouterHandler.onAddedFile(RouterHandler.java:197)
      	at org.forgerock.openig.handler.router.RouterHandler.onChanges(RouterHandler.java:183)
      	at org.forgerock.openig.handler.router.DirectoryMonitor.scan(DirectoryMonitor.java:138)
      	at org.forgerock.openig.handler.router.PeriodicDirectoryScanner.scan(PeriodicDirectoryScanner.java:89)
      	at org.forgerock.openig.handler.router.RouterHandler.start(RouterHandler.java:152)
      	at org.forgerock.openig.handler.router.RouterHandler$Heaplet.start(RouterHandler.java:305)
      	at org.forgerock.openig.heap.GenericHeaplet.create(GenericHeaplet.java:89)
      	at org.forgerock.openig.heap.HeapImpl.extract(HeapImpl.java:315)
      	at org.forgerock.openig.heap.HeapImpl.get(HeapImpl.java:281)
      	at org.forgerock.openig.heap.HeapImpl.init(HeapImpl.java:214)
      	at org.forgerock.openig.servlet.GatewayServlet.init(GatewayServlet.java:207)
      

      Attachments

        Activity

          People

            guillaume.sauthier Guillaume Sauthier
            guillaume.sauthier Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: