1 Reply Latest reply on Jul 3, 2012 11:46 AM by Chad Sturtz

    help with http access to packages

    Chad Sturtz Newbie

      I've got a number of packages in Guvnor.. about 5 (1 of these doesn't have any assets)., but am having troubles accessing them via HTTP.

       

      I was using this URL format to download package binaries, but it's only working for some of the packages.  (See NPE below)

       

      http://localhost:8080/guvnor-webapp/org.drools.guvnor.Guvnor/package/PACKAGE.NAME/LATEST

       

       

      Exception I'm getting on one of the packages it won't let me pull down.. Guvnor is deployed on JBoss AS 7

       

      13:55:30,342 ERROR [org.drools.guvnor.server.files.PackageDeploymentServlet] (ht

      tp--0.0.0.0-8080-4) null: java.lang.NullPointerException

              at java.io.OutputStream.write(OutputStream.java:75) [rt.jar:1.7.0_04]

              at org.drools.guvnor.server.files.FileManagerService.loadBinaryPackage(F

      ileManagerService.java:195) [guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]

              at org.drools.guvnor.server.files.FileManagerService$Proxy$_$$_WeldClien

      tProxy.loadBinaryPackage(FileManagerService$Proxy$_$$_WeldClientProxy.java) [guv

      nor-webapp-core-5.4.0.Final.jar:5.4.0.Final]

              at org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(Pac

      kageDeploymentServlet.java:260) [guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]

       

       

              at org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(R

      epositoryServlet.java:58) [guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]

              at org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(Package

      DeploymentServlet.java:139) [guvnor-webapp-core-5.4.0.Final.jar:5.4.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [jboss-s

      ervlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-s

      ervlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(Convers

      ationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31

      ]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(Catc

      hExceptionFilter.java:65) [solder-impl-3.1.1.Final.jar:3.1.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(Serv

      letEventBridgeFilter.java:74) [solder-impl-3.1.1.Final.jar:3.1.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:275) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:161) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(Secu

      rityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

       

       

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:155) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:368) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :877) [jbossweb-7.0.13.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:93

      0) [jbossweb-7.0.13.Final.jar:]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

       

       

      Bug? Is there possibly something special with this particular package???

        • 1. Re: help with http access to packages
          Chad Sturtz Newbie

          I eventually figured this out.  It ends up the package wasn't building correctly.  I stumbled onto this after visiting the Edit tab for the package (while just looking around).  There's a 'Build Package' button that I clicked and then, errors were shown.  The bad part is that being new to Guvnor, I spent hours on this before finding the solution.  It would have been nice to know the package wasn't building w/o having to navigate over to the Edit tab for the package

           

          Hopefully this saves someone else some time...