Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-25 Thread Carolina Pellecchia
Hi everyone!

we have made other tow tests:


1 - As suggested by Vincent, we have just used the source gets from Guvnor
and all work fine.

In addition, it would seem that putting observations and events in the same
package all work fine!!!

2 -  We have tried to put the observation in the same packet of event in
the model and the new drl becomes:


from *package* org.dfms.model; to *package* org.dfms.model.situation;

from* import* org.dfms.model.observation.ACObservation; to *import*
org.dfms.model.situation.ACObservation;

*
*

*import* org.dfms.model.situation.AccessControlEvent;

*import* org.dfms.model.situation.SituationManager;

*import* org.dfms.model.situation.Event;

*import* org.dfms.model.mapfeature.AccessControlPoint;

*import* com.vividsolutions.jts.geom.Point;

*import* com.vividsolutions.jts.geom.Geometry;







*import* java.util.HashSet;

*import* java.util.ArrayList;



*declare* ACObservation

  @role(event)

*end*



*declare* AccessControlEvent

  @role(event)

*end*



*rule* "AccessControl"

  *no-loop*

  *when*

$obs  : ACObservation( $sensorid : sensorId, $location :
location ) over window:length(1) *from* entry-point access_control

  *then*

*insert*( SituationManager.createAccessControlEvent( $obs, "Access
Control Detection", Event.THREAT_NO, $location, $sensorid ));

*end*



then we have loaded the pkg from Guvnor (by this link

http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/org.dfms.model/LATEST
)

into our application and all work fine!!!


Thank you and best regards.

Carolina

2012/7/24 Vincent LEGENDRE 

> > Our application is using this url:
> http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/org.dfms.model/LATEST
>
> > to loading from Guvnor5.3.0 the pkg. Is it correct?
>
>
> Yes, to get the compiled package, compiled inside Guvnor, but this is the
> problem here.
>
> The compiled package is a serialized kPackage object. When you get this
> from guvnor, and put it inside your kBase, the object is simply
> deserialized. The ObjectTypeConf conf.getTypeDeclaration() will look in
> the kBase, and for guvnor compiled package this method returns null (don't
> know why). I think you may have a difference between your Guvnor version
> and the drools runtime version.
>
>
> You can either use the source got from guvnor (
> http://localhost:8080/guvnor/rest/packages/org.dfms.model/source) to
> build your kBase, and this should work fine.
>
>
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-24 Thread Carolina Pellecchia
Hello, I made another test.


I downloaded the source


URL for package source:

http://localhost:8080/guvnor/rest/packages/org.dfms.model/source


from Guvnor, then I saved the file like drl on file system and I tried
loading this drl file through application and all have worked fine.


Our application is using this url:
http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/org.dfms.model/LATEST


to loading from Guvnor5.3.0 the pkg. Is it correct?


Thanks in advanced

Carolina


2012/7/24 Vincent LEGENDRE 

>
> > @Vincent: I'm concerned about the first stack trace line, which is
> > where no executable code can be. Clear this up first...
>
> Me ? Really no idea why this line ...
> This line, in 5.3 code, is the class declaration. Indeed, node an
> executable piece of code ...
>
> I've found another thread :
> http://drools.46999.n3.nabble.com/rules-users-Drools-5-4-0-FINAL-and-OSGI-Unable-to-instantiate-service-for-Class-org-drools-concurren-td4017660.html
> where we can see a stack trace giving a
> "org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:53) " which
> is the class declaration line in 5.4 source code...
>
> May be that some JVMs points that because there are some static inits in
> the class ?
> Or may be some AOP usage ?
>
> All other line calls (insert etc etc) matches exactly the lines shown in
> the stack trace, so to me, it is not so important ... at least not for the
> problem here.
> The real problem is why ObjectTypeConf conf.getTypeDeclaration();
> returns null using Guvnor compiled pkg and not via DRL local compilation
> ...
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-24 Thread Carolina Pellecchia
The entryPoint and obs aren't null. I'm sorry, where do you see the error?


Carolina

2012/7/24 Wolfgang Laun 

> Well, then it's a bug in your code. Do we all agree on this now?
>
> -W
>
>
> On 24/07/2012, Carolina Pellecchia  wrote:
> >>>If there is an insert() call in
> >>>org.tass.utils.ExpertSystemManager.java in line 156 then *this* is
> >>>where the insert occurs, not the insert() in the rule.
> >
> > org.tass.utils.ExpertSystemManager.java is our class and the source code
> is
> > this:
> >
> > 153. *public* *void* insertObservation(String entryPoint,
> > Observation obs) {
> >
> >
> > 154. *try* {
> >
> > 155. *if*(entryPoints.containsKey(entryPoint)) {
> >
> > 156. entryPoints.get(entryPoint).insert(obs);
> >
> > 157.
> >
> > 158. ksession.fireAllRules();
> >
> > 159. }
> >
> > 160. }
> >
> > 161. *catch* (Exception e) {
> >
> > 162. logger.error(e, e);
> >
> > 163. }
> >
> > 164. }
> >
> >>>Where is org.tass.utils coming from?
> >
> > Where is org.tass.utils coming from? it is our class.
> >
> >
> >>>It's still a mystery to me how it's possible to have a stack trace
> >>>element from NamedEntryPoint.java line 48 - there's no code in this
> >>>line.
> >
> >
> > I agree, at the line 48 there isn't code. It would seem that "Drools
> 5.3.0
> > final" has different binary and  source code.
> >
> >
> >>>There is another mystery : why this is working when getting rules from a
> > DRL file and not from Guvnor ...
> >>>Did you add the POJO model into the Guvnor's package ?
> >
> >
> > Yes, I did.
> >
> >>>But if this is it, package compilation should raise a compilation error
> > ...
> >
> >
> > The package compilation is ok.
> >
> >
> >>>What is sure is that the problem does not comes from the rules, as the
> > stack trace shows an "insert" call outside the rules, otherwise there
> would
> > be a >>reteoo...ConsequenceInvocator (something like that) before ..
> >
> >
> > yes, It is sure
> >
> >
> >>>And a last question : is "org.tass.utils.ExpertSystemManager" a class
> > from you, or does it take place into another third-party framework (that
> > could use a >>different or modified version of drools).
> >
> >
> > org.tass.utils.ExpertSystemManager.java is our class. We aren't using
> > third-party
> > framework.
> >
> >
> > Thank you
> >
> > Carolina
> >
> >
> > 2012/7/23 Vincent LEGENDRE 
> >
> >> There is another mystery : why this is working when getting rules from a
> >> DRL file and not from Guvnor ...
> >> Did you add the POJO model into the Guvnor's package ?
> >> But if this is it, package compilation should raise a compilation error
> >> ...
> >>
> >> What is sure is that the problem does not comes from the rules, as the
> >> stack trace shows an "insert" call outside the rules, otherwise there
> >> would
> >> be a reteoo...ConsequenceInvocator (something like that) before ..
> >>
> >> And a last question : is "org.tass.utils.ExpertSystemManager" a class
> >> from
> >> you, or does it take place into another third-party framework (that
> could
> >> use a different or modified version of drools).
> >>
> >>
> >> ___
> >> rules-users mailing list
> >> rules-users@lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/rules-users
> >>
> >>
> >
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-24 Thread Carolina Pellecchia
>>If there is an insert() call in
>>org.tass.utils.ExpertSystemManager.java in line 156 then *this* is
>>where the insert occurs, not the insert() in the rule.

org.tass.utils.ExpertSystemManager.java is our class and the source code is
this:

153. *public* *void* insertObservation(String entryPoint,
Observation obs) {


154. *try* {

155. *if*(entryPoints.containsKey(entryPoint)) {

156. entryPoints.get(entryPoint).insert(obs);

157.

158. ksession.fireAllRules();

159. }

160. }

161. *catch* (Exception e) {

162. logger.error(e, e);

163. }

164. }

>>Where is org.tass.utils coming from?

Where is org.tass.utils coming from? it is our class.


>>It's still a mystery to me how it's possible to have a stack trace
>>element from NamedEntryPoint.java line 48 - there's no code in this
>>line.


I agree, at the line 48 there isn't code. It would seem that "Drools 5.3.0
final" has different binary and  source code.


>>There is another mystery : why this is working when getting rules from a
DRL file and not from Guvnor ...
>>Did you add the POJO model into the Guvnor's package ?


Yes, I did.

>>But if this is it, package compilation should raise a compilation error
...


The package compilation is ok.


>>What is sure is that the problem does not comes from the rules, as the
stack trace shows an "insert" call outside the rules, otherwise there would
be a >>reteoo...ConsequenceInvocator (something like that) before ..


yes, It is sure


>>And a last question : is "org.tass.utils.ExpertSystemManager" a class
from you, or does it take place into another third-party framework (that
could use a >>different or modified version of drools).


org.tass.utils.ExpertSystemManager.java is our class. We aren't using
third-party
framework.


Thank you

Carolina


2012/7/23 Vincent LEGENDRE 

> There is another mystery : why this is working when getting rules from a
> DRL file and not from Guvnor ...
> Did you add the POJO model into the Guvnor's package ?
> But if this is it, package compilation should raise a compilation error ...
>
> What is sure is that the problem does not comes from the rules, as the
> stack trace shows an "insert" call outside the rules, otherwise there would
> be a reteoo...ConsequenceInvocator (something like that) before ..
>
> And a last question : is "org.tass.utils.ExpertSystemManager" a class from
> you, or does it take place into another third-party framework (that could
> use a different or modified version of drools).
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-23 Thread Carolina Pellecchia
of course, the answers are:



> (1) Is the originally posted stack trace complete? What you have
> posted doesn't make sense.
>
it is the stack trace complete of this exception. Now I added some other
log lines.

If  you mean other thing, please let me know.

DEBUG [2012-07-23 16:27:51,374] [Thread-19] (*StorageManager.java:778*)
- Asking a con. to DB: jdbc:postgresql://tass-server/gsn_geo_dev_c => busy:
1, max-size: 8, idle: 2

 [*java*] DEBUG [2012-07-23 16:27:51,375] [Thread-19] (*
StorageManager.java:457*) - Executing query: select * from __435941104
( Binary Field Linked:false)

 [*java*] DEBUG [2012-07-23 16:27:51,375] [Thread-19] (*
StorageManager.java:778*) - Asking a con. to DB:
jdbc:postgresql://tass-server/gsn_geo_dev_c => busy: 2, max-size: 8, idle: 1

 [*java*] DEBUG [2012-07-23 16:27:51,382] [Thread-19] (*
ObservationFactory.java:226*) -
org.dfms.model.observation.ACObservation/1343053671381/920/sim_bidv:1343053671381

 [*java*] ERROR [2012-07-23 16:27:51,385] [Thread-19] (*
ExpertSystemManager.java:162*) - *java.lang.NullPointerException*

 [*java*] *java.lang.NullPointerException*

 [*java*]   at
org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(*
ReteooFactHandleFactory.java:56*)

 [*java*]   at
org.drools.common.AbstractFactHandleFactory.newFactHandle(*
AbstractFactHandleFactory.java:80*)

 [*java*]   at
org.drools.common.AbstractFactHandleFactory.newFactHandle(*
AbstractFactHandleFactory.java:65*)

 [*java*]   at org.drools.common.NamedEntryPoint.createHandle(*
NamedEntryPoint.java:720*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:280*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:116*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:48*)

 [*java*]   at org.tass.utils.ExpertSystemManager.insertObservation(
*ExpertSystemManager.java:156*)

 [*java*]   at org.tass.vsensor.ExpertVS.dataAvailable(*
ExpertVS.java:59*)

 [*java*]   at gsn.beans.InputStream.executeQuery(*
InputStream.java:277*)

 [*java*]   at gsn.beans.StreamSource.windowSlided(*
StreamSource.java:325*)

 [*java*]   at
gsn.beans.windowing.SQLViewQueryRewriter.dataAvailable(*
SQLViewQueryRewriter.java:83*)

 [*java*]   at
gsn.beans.windowing.TupleBasedSlidingHandler.dataAvailable(*
TupleBasedSlidingHandler.java:56*)

 [*java*]   at gsn.wrappers.AbstractWrapper.postStreamElement(*
AbstractWrapper.java:222*)

 [*java*]   at
gsn.http.rest.LocalDeliveryWrapper.writeStreamElement(*
LocalDeliveryWrapper.java:147*)

 [*java*]   at
gsn.http.rest.DefaultDistributionRequest.deliverStreamElement(*
DefaultDistributionRequest.java:57*)

 [*java*]   at gsn.DataDistributer.flushStreamElement(*
DataDistributer.java:165*)

 [*java*]   at gsn.DataDistributer.run(*DataDistributer.java:220*)

 [*java*]   at java.lang.Thread.run(*Thread.java:662*)

 [*java*] DEBUG [2012-07-23 16:27:51,387] [Thread-19] (*
VirtualSensor.java:112*) - Enforcing the limit size on the VS table by
: delete from sim_tassllfvs where sim_tassllfvs.timed <= ( SELECT * FROM (
SELECT timed FROM sim_tassllfvs group by sim_tassllfvs.timed ORDER BY
sim_tassllfvs.timed DESC LIMIT 1 offset 5000  ) AS TMP)

 [*java*] DEBUG [2012-07-23 16:27:51,387] [Thread-19] (*
StorageManager.java:778*) - Asking a con. to DB:
jdbc:postgresql://tass-server/gsn_geo_dev_c => busy: 1, max-size: 8, idle: 2

 [*java*] DEBUG [2012-07-23 16:27:51,389] [Thread-19] (*
VirtualSensor.java:119*) - 0 old rows dropped from sim_tassllfvs
 [*java*] DEBUG [2012-07-23 16:27:51,391] [Thread-19] (*
InputStream.java:292*) - Input Stream's result has *1* stream elements


> > In particular the exception (I mentioned above) happens before calling
> the
> > method "SituationManager.createAccessControlEvent":
> >
>
> This isn't possible. The call must have completed, and we're already
> in insert().
>
> We are using drools Fusion and then we are inserting some events(
ACObservation )
through entry point. Is it possible that the error is related to this
insert operation?

Thank you and kindly regards!
Carolina
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-23 Thread Carolina Pellecchia
Hello,

first of all, I would like to thank you for suggestions.

I tried loading drl from file and all work fine. The issue append when the
application load from Guvnor5.3.0 the pkg.

In particular the exception (I mentioned above) happens before calling the
method "SituationManager.createAccessControlEvent":



*public* *static* Event *createAccessControlEvent(*ACObservation obs,
String description, *int* threat_level, Geometry location, *int* sensorid) {

Event event = *new* AccessControlEvent(description,
threat_level, (Geometry)location.clone(), sensorid, obs.getLoginfo(),
obs.getErrno(), obs.getPersonelId());

event.addObservation(obs.getServiceIdentification());

*return* event;

  }


I opened the source code at line 56 of
org.drools.reteoo.ReteooFactHandleFactory (I'm using Drools 5.3.0 final):


 45. *protected* *final* InternalFactHandle newFactHandle(*final* *int* id,


46. *final* Object object,


47. *final* *long* recency,


48. *final*
ObjectTypeConf conf,


49. *final*
InternalWorkingMemory workingMemory,


50. *final*
WorkingMemoryEntryPoint wmEntryPoint) {


51.*if* ( conf != *null* && conf.isEvent() ) {

52.TypeDeclaration type = conf.getTypeDeclaration();

53.*long* timestamp;

56.*if* ( type.getTimestampExtractor() != *null* ) {

57.*if* ( Date.*class*.isAssignableFrom(
type.getTimestampExtractor().getExtractToClass() ) ) {


58.timestamp = ((Date)
type.getTimestampExtractor().getValue( workingMemory,


59.

   object )).getTime();


60.} *else* {



it seems that "type" is null.



Regards

Carolina

2012/7/23 Wolfgang Laun 

> On 23/07/2012, Vincent LEGENDRE  wrote:
> > are you sure that your " SituationManager.createAccessControlEvent"
> method
> > returns something not null ?
>
> An insert of null is handled by insert(): nothing is done, null is
> returned. NP
> -W
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-23 Thread Carolina Pellecchia
Is there anybody that can help ME with this issue, please?

Regards,
Carolina

2012/7/20 Carolina Pellecchia 

> *Hi everyone! *
>
> *I'm loading from Guvnor5.3.0 the pkg below ** into my application. *
>
>
>
> *package* org.dfms.model;
>
>
>
> *import* org.dfms.model.observation.ACObservation;
>
> *import* org.dfms.model.situation.AccessControlEvent;
>
> *import* org.dfms.model.situation.SituationManager;
>
> *import* org.dfms.model.situation.Event;
>
> *import* org.dfms.model.mapfeature.AccessControlPoint;
>
>
>
>
>
> *import* java.util.HashSet;
>
> *import* java.util.ArrayList;
>
>
>
> *declare* ACObservation
>
>   @role(event)
>
> *end*
>
>
>
> *declare* AccessControlEvent
>
>   @role(event)
>
> *end*
>
>
>
> *rule* "AccessControl"
>
>   *no-loop*
>
>   *when*
>
> $obs  : ACObservation( $sensorid : sensorId, $location :
> location ) over window:length(1) *from* entry-point access_control
>
>   *then*
>
> *insert*( SituationManager.createAccessControlEvent( $obs, "Access
> Control Detection", Event.THREAT_NO, $location, $sensorid ));
>
> *end*
>
>
>
> *When the rule is executed the application get this exception:*
>
>
>  [*java*] ERROR [2012-07-20 14:32:17,422] [Thread-19] (*
> ExpertSystemManager.java:162*) - *java.lang.NullPointerException*
>
>  [*java*] *java.lang.NullPointerException*
>
>  [*java*]   at
> org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(*
> ReteooFactHandleFactory.java:56*)
>
>  [*java*]   at
> org.drools.common.AbstractFactHandleFactory.newFactHandle(*
> AbstractFactHandleFactory.java:80*)
>
>  [*java*]   at
> org.drools.common.AbstractFactHandleFactory.newFactHandle(*
> AbstractFactHandleFactory.java:65*)
>
>  [*java*]   at org.drools.common.NamedEntryPoint.createHandle(*
> NamedEntryPoint.java:720*)
>
>  [*java*]   at org.drools.common.NamedEntryPoint.insert(*
> NamedEntryPoint.java:280*)
>
>  [*java*]   at org.drools.common.NamedEntryPoint.insert(*
> NamedEntryPoint.java:116*)
>
>  [*java*]   at org.drools.common.NamedEntryPoint.insert(*
> NamedEntryPoint.java:48*)
>
>  [*java*]   at
> org.tass.utils.ExpertSystemManager.insertObservation(*
> ExpertSystemManager.java:156*)
>
>  [*java*]   at org.tass.vsensor.ExpertVS.dataAvailable(*
> ExpertVS.java:59*)
>
>  [*java*]   at gsn.beans.InputStream.executeQuery(*
> InputStream.java:277*)
>
>  [*java*]   at gsn.beans.StreamSource.windowSlided(*
> StreamSource.java:325*)
>
>  [*java*]   at
> gsn.beans.windowing.SQLViewQueryRewriter.dataAvailable(*
> SQLViewQueryRewriter.java:83*)
>
>  [*java*]   at
> gsn.beans.windowing.TupleBasedSlidingHandler.dataAvailable(*
> TupleBasedSlidingHandler.java:56*)
>
>  [*java*]   at gsn.wrappers.AbstractWrapper.postStreamElement(*
> AbstractWrapper.java:222*)
>
>  [*java*]   at
> gsn.http.rest.LocalDeliveryWrapper.writeStreamElement(*
> LocalDeliveryWrapper.java:147*)
>
>  [*java*]   at
> gsn.http.rest.DefaultDistributionRequest.deliverStreamElement(*
> DefaultDistributionRequest.java:57*)
>
>  [*java*]   at gsn.DataDistributer.flushStreamElement(*
> DataDistributer.java:165*)
>
>  [*java*]   at gsn.DataDistributer.run(*DataDistributer.java:220*)
>
>  [*java*]   at java.lang.Thread.run(*Thread.java:662*)
>
> *How can I solve this issue?*
> *
>
> Thank you in advance,
> Carolina Pellecchia*
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] java.lang.NullPointerException at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)

2012-07-20 Thread Carolina Pellecchia
*Hi everyone! *

*I'm loading from Guvnor5.3.0 the pkg below ** into my application. *



*package* org.dfms.model;



*import* org.dfms.model.observation.ACObservation;

*import* org.dfms.model.situation.AccessControlEvent;

*import* org.dfms.model.situation.SituationManager;

*import* org.dfms.model.situation.Event;

*import* org.dfms.model.mapfeature.AccessControlPoint;





*import* java.util.HashSet;

*import* java.util.ArrayList;



*declare* ACObservation

  @role(event)

*end*



*declare* AccessControlEvent

  @role(event)

*end*



*rule* "AccessControl"

  *no-loop*

  *when*

$obs  : ACObservation( $sensorid : sensorId, $location :
location ) over window:length(1) *from* entry-point access_control

  *then*

*insert*( SituationManager.createAccessControlEvent( $obs, "Access
Control Detection", Event.THREAT_NO, $location, $sensorid ));

*end*



*When the rule is executed the application get this exception:*


[*java*] ERROR [2012-07-20 14:32:17,422] [Thread-19] (*
ExpertSystemManager.java:162*) - *java.lang.NullPointerException*

 [*java*] *java.lang.NullPointerException*

 [*java*]   at
org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(*
ReteooFactHandleFactory.java:56*)

 [*java*]   at
org.drools.common.AbstractFactHandleFactory.newFactHandle(*
AbstractFactHandleFactory.java:80*)

 [*java*]   at
org.drools.common.AbstractFactHandleFactory.newFactHandle(*
AbstractFactHandleFactory.java:65*)

 [*java*]   at org.drools.common.NamedEntryPoint.createHandle(*
NamedEntryPoint.java:720*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:280*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:116*)

 [*java*]   at org.drools.common.NamedEntryPoint.insert(*
NamedEntryPoint.java:48*)

 [*java*]   at org.tass.utils.ExpertSystemManager.insertObservation(
*ExpertSystemManager.java:156*)

 [*java*]   at org.tass.vsensor.ExpertVS.dataAvailable(*
ExpertVS.java:59*)

 [*java*]   at gsn.beans.InputStream.executeQuery(*
InputStream.java:277*)

 [*java*]   at gsn.beans.StreamSource.windowSlided(*
StreamSource.java:325*)

 [*java*]   at
gsn.beans.windowing.SQLViewQueryRewriter.dataAvailable(*
SQLViewQueryRewriter.java:83*)

 [*java*]   at
gsn.beans.windowing.TupleBasedSlidingHandler.dataAvailable(*
TupleBasedSlidingHandler.java:56*)

 [*java*]   at gsn.wrappers.AbstractWrapper.postStreamElement(*
AbstractWrapper.java:222*)

 [*java*]   at
gsn.http.rest.LocalDeliveryWrapper.writeStreamElement(*
LocalDeliveryWrapper.java:147*)

 [*java*]   at
gsn.http.rest.DefaultDistributionRequest.deliverStreamElement(*
DefaultDistributionRequest.java:57*)

 [*java*]   at gsn.DataDistributer.flushStreamElement(*
DataDistributer.java:165*)

 [*java*]   at gsn.DataDistributer.run(*DataDistributer.java:220*)

 [*java*]   at java.lang.Thread.run(*Thread.java:662*)

*How can I solve this issue?*
*

Thank you in advance,
Carolina Pellecchia*
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] [rules-use​rs] The Temporal Operators in Guvnor

2012-05-15 Thread Carolina Pellecchia
Hi all

I have a new question. How can I define a Temporal Operators in GUVNOR?

I need to do something like this:

DoorOpeningEvent( this meets[25s] $obs )
thank you and kindly regards!
Carolina Pellecchia
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] The drools.packagebuilder.conf directory

2012-05-14 Thread Carolina Pellecchia
Hi all

I am novice on GUVNOR/DROOLS, but I  defined some Drools Evaluator
functions and to make the function available to the rules engine I inserted
drools.packagebuilder.conf  into user home directory. Is there different
directory to do this?



Thank you in advance,

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