Re: [rules-users] Problem with Guvnor using Rest API

2013-07-15 Thread calcacuervo
This worked!

Thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Problem-with-Guvnor-using-Rest-API-tp4024901p4024919.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Problem with Guvnor using Rest API

2013-07-14 Thread kurrent93
Hi Demian

have you tried calling
http://localhost:8080/guvnor-5.5.0.Final/rest/packages/{packageName}/binary
?

According to the documentation (
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html/ch09.html#d0e3485)
this is the call that will compile.



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Problem-with-Guvnor-using-Rest-API-tp4024901p4024907.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Problem with Guvnor using Rest API

2013-07-13 Thread Demian Calcaprina
Hey Guys.

I am using guvnor 5.5.0.Final.

I am accesing to from another app using the REST API. I am currently having
a problem. I create a new package, sending a post to guvnor/rest/packages/,
sending it an xml version of PackageMetadata. Then, I create assets (drl
files), by sending a post to guvnor/rest/packages/ + packageName +
/asset, with the drl contents. This works fine. The problem in with
package building. I read somewhere that it is automatically built when you
create a new asset or update one. But just after creating the package, I go
to the package url, the one I configure in the changeset,
localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/mypackage/LATEST,
and I get a NPE,

java.lang.NullPointerException
java.io.OutputStream.write(OutputStream.java:75)

org.drools.guvnor.server.files.FileManagerService.loadBinaryPackage(FileManagerService.java:201)

org.drools.guvnor.server.files.FileManagerService$Proxy$_$$_WeldClientProxy.loadBinaryPackage(FileManagerService$Proxy$_$$_WeldClientProxy.java)

org.drools.guvnor.server.files.PackageDeploymentServlet$1.execute(PackageDeploymentServlet.java:260)

org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:59)

org.drools.guvnor.server.files.PackageDeploymentServlet.doGet(PackageDeploymentServlet.java:139)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)


If I  build the package manually, I am able to get the PKG there. I am
making something wrong? Is there a way to make it build the package
from REST?

Thanks!


Demian
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users