Re: [rules-users] Noob desperately needing help
Mattias (and Esteban)... Well.you guys gave me the solution to the problem, but in a wildly indirect way. I downloaded the source for zip4j, added a bunch of logging so I could figure out where the code was hanging, went to replace the existing library and.hmmm, where the heck IS the existing library? Long story short, was not including the zip4j.jar in the app classpath. Added the debug version, and, surprise, surprise, it worked. So, it turns out I should have been getting a ClassNotFound exception from the classloader. Not sure why drools would just stop and NOT throw a ClassNotFound exception, but that is no longer my concern. Thanks to everyone who participated in leading me to a solution...a typical false-positive error. And to Davideyou were right, not a Drools problem at all. It was the nut behind the keyboard (aka PEBKAC). Paul -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589p4020627.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] Noob desperately needing help
Wolfgang, Here's my dilemma...there is no exception thrown! I wouldn't even be here asking the question if I was getting an OOME...my problem is that the rule hangs, and from that point on, the entire rules engine is hung, even though other processing continues on that jboss node. Note that I'm using zip4j, as the default zip library provided in Java does not support password-protecting the zip file. That is a requirement of this process. And this is new code...it works perfectly outside the rules container, but not at all inside it. What baffles me is the process hanging...I've been writing Java code for 13 years, and I've never seen a process just hang... Paul -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589p4020615.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] Noob desperately needing help
Davide, Thanks for the response…I have also fired the attached code from outside a rule, and it works perfectly (I created a hidden test menu option that allows me to call runNeedleChestDecompressionReport()). In fact, every other instance of using ZipUtil works fine. And the place where the rule is hanging hasn’t actually gotten to the byte array yet…it’s creating internal data structures to handle the input. I’m grasping for straws, I know… Paul -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589p4020609.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] Noob desperately needing help
Code posting failif you want to help, I guess go to the mailing list web site and read the codesigh -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589p4020591.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] Noob desperately needing help
I will provide some code, however: The rule that fails The runNeedleChestDecompressionReport method: And the method in the zip utility that fails (I'm using zip4j, as I need to password-protect the zip file): One additional useful pointif I remove the compression call (in other words, I skip the call to compress the file and just send the attachment as a CSV file, it works fine, and the rule completes. -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589p4020590.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] Noob desperately needing help
So, we have a massive web-based application with a rules engine powered by drools 4.0.7...I have a time-based rule that fires, executes about 80% of the java code, and then just stops. No error, no exception, no nothing...it just stops. Until I restart the node, all rules processing is suspended. I've let this process run for 24 hours without intervention, but it really is hung. And I know it's not in a loop, as I'm outputting console messages, and I know the exact line that the app is hanging on. I have tried upgrading to drools 5.4, but we didn't write the kernel of the rules engine, and I'm not really in the mood to deal with re-writing it, unless I absolutely have to. This is the first time I've ever seen anything like this, and this app has been running for 4 years with no rules-engine issues. We use it everywherewe are an EMS research organization supporting 3 states, and the application uses the rules engine to determine state-based EMS logic. We also use it as a timing trigger to email notifications to various EMS personnel to notify them of hospital facility closings, bed availability, etc. I have absolutely no idea what the problem is, or how to present it to the mailing list users in a way that might identify what the issue really is...so anyone who is game to help, ask me questions, and I'll answer them as best I can. Thanks for anyone interested in helping debug this issue Paul Cooper Developer EMS Performance Improvement Center Chapel Hill, NC -- View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589.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