Re: [rules-users] KnowledgeBase & Classloader - reload class or re-create
by Edson Tirelli
Nick,
I see. In any case, Drools will not allow you to do that without
recompiling the knowledge base, but, why don't you simply make your
"MyFunctions" class be a delegate to your actual functions? So, whenever you
reload your fuctions, all you need to do is rewire things inside your
MyFunctions class... isolated and clean... no need to have things rewired in
Drools side... sounds much lighter than any other approach, even if it was
possible to do the rewire in Drools, it would certainly be heavier...
Just an idea...
Edson
2009/10/14 Nicholas Hemley <nic.hemley(a)sidonis.com>
> Edson,
>
>
>
> Actually, I only use custom action classes in the RHS (see below)
>
>
>
> e.g.
>
> rule TEARDOWN_3004865719
>
> when
>
> child0:MyClass (
>
> state1 == 0,
>
> state2 == 0
>
> )
>
> then
>
> MyFunctions.performOperation( "TEARDOWN
> _3004865719",
>
> "message",
>
> child0,
>
> true );
>
> end
>
>
>
> The classes referenced in the LHS will always stay the same.
>
>
>
> So if we want to re-load the class MyFunctions (since these custom actions
> may be updated), then I currently have to re-create the
> StatefulKnowledgeSession from a new KnowledgeBase, etc. so that the
> findClass() method is called on MyClassLoader.
>
>
>
> Cheerio,
>
> Nic
>
>
>
> *Nicholas Hemley*
>
> *Senior Developer*
>
> *Sidonis | Powering a New Generation of Service Assurance*
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
15 years, 1 month
Re: [rules-users] KnowledgeBase & Classloader - reload class or re-create
by Nicholas Hemley
Edson,
Actually, I only use custom action classes in the RHS (see below)
e.g.
rule TEARDOWN_3004865719
when
child0:MyClass (
state1 == 0,
state2 == 0
)
then
MyFunctions.performOperation( "TEARDOWN
_3004865719",
"message",
child0,
true );
end
The classes referenced in the LHS will always stay the same.
So if we want to re-load the class MyFunctions (since these custom actions
may be updated), then I currently have to re-create the
StatefulKnowledgeSession from a new KnowledgeBase, etc. so that the
findClass() method is called on MyClassLoader.
Cheerio,
Nic
Nicholas Hemley
Senior Developer
Sidonis | Powering a New Generation of Service Assurance
15 years, 1 month
Re: [rules-users] KnowledgeBase & Classloader - reload class or re-create Knowledgebase?
by Edson Tirelli
Nicholas,
I assume that you are using your classes not only in the consequence, but
in the LHS of the rules as well, right? In this case, a knowledge base
recompilation will be necessary. That is because Drools must indeed keep
references to your class in order to be able to properly match incoming
facts, extract their attribute values, etc. Drools already provides
re-wiring for most of its artifacts, but providing the same to user defined
classes would be close to recompile the knowledge base again.
Now, I am curious about your use case? why do you need to re-load your
classes?
[]s
Edson
2009/10/14 Nicholas Hemley <nic.hemley(a)sidonis.com>
> Hello,
>
>
>
> I am using various classes in the consequences of my rules and I would like
> to dynamically re-load the classes.
>
>
>
> Currently, I include the following code snippet which sets the class
> loader:
>
>
>
> KnowledgeBaseConfiguration kbConf =
> KnowledgeBaseFactory.newKnowledgeBaseConfiguration(properties,
> MyClassLoader.getInstance());
>
> KnowledgeBase knowledgeBase =
> KnowledgeBaseFactory.newKnowledgeBase(kbConf);
>
>
>
> However, if I change the underlying jar and inform my classloader of this
> change, the old class is still used in the rule consequences.
>
>
>
> I therefore assume that Drools is storing a reference to the old class in
> the previously created KnowledgeBases so MyClassLoader.loadClass() is only
> invoked the first time the class is required.
>
>
>
> My question is thus: Is there any way to force a class reload on a
> KnowledgeBase or do I have to re-create the Knowledgebase?
>
>
>
> If so, would it be a case of getAllFactHandles() (or similar) and assert
> these into a newly created KnowledgeBase with a new instance of
> MyClassloader?
>
>
>
> Cheerio,
>
> Nic
>
>
>
> *Nicholas Hemley*
>
> *Senior Developer*
>
> *Sidonis | Powering a New Generation of Service Assurance*
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
15 years, 1 month
KnowledgeBase & Classloader - reload class or re-create Knowledgebase?
by Nicholas Hemley
Hello,
I am using various classes in the consequences of my rules and I would like
to dynamically re-load the classes.
Currently, I include the following code snippet which sets the class loader:
KnowledgeBaseConfiguration kbConf =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration(properties,
MyClassLoader.getInstance());
KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(kbConf);
However, if I change the underlying jar and inform my classloader of this
change, the old class is still used in the rule consequences.
I therefore assume that Drools is storing a reference to the old class in
the previously created KnowledgeBases so MyClassLoader.loadClass() is only
invoked the first time the class is required.
My question is thus: Is there any way to force a class reload on a
KnowledgeBase or do I have to re-create the Knowledgebase?
If so, would it be a case of getAllFactHandles() (or similar) and assert
these into a newly created KnowledgeBase with a new instance of
MyClassloader?
Cheerio,
Nic
Nicholas Hemley
Senior Developer
Sidonis | Powering a New Generation of Service Assurance
15 years, 1 month
[droolsflow] ForEach
by Anderson vasconcelos
Hi all
I have a flow that has a "for each" where for each Ticket (List of
FactObject) create a subflow that contains a HumanTask
How can i set the Ticket inside a Content of HumanTask of subflow?
I Tried to put #{ticket} inside a content of HumanTask, but the just put a
string of class (Ticket.toString()), and not a instance of Ticket.
15 years, 1 month
Re: [rules-users] unable to determine value type class *** URGENT***
by Corneil du Plessis
Srithu wrote:
>
> I have a wired behavior..
>
> I have a set of rules and i have used drools-guvnor to packaging them...
> It is working in windows machines where i have jboss which is running on
> IBM java 5 and 6..
>
> When i connect the same from jboss Which is running on 64 bit IBM java 6
> on linux is not working...
> The same is working If i used 64 bit IBM java 5 on linux.....
>
>
> I getting following exception...
>
>
>
> Please help....
>
>>> [2009-02-11 12:30:29,697] [705980] [http-0.0.0.0-8080-12] [ERROR]
>>> [STDERR ] - org.drools.RuntimeDroolsException: unable to determine
>>> ValueType for Class [class java.lang.Object]
>
>>> [2009-02-11 12:30:29,698] [705981] [http-0.0.0.0-8080-12] [ERROR]
>>> [STDERR ] - at
>>> org.drools.base.ValueType.determineValueType(ValueType.java:193)
>
>>> [2009-02-11 12:30:29,698] [705981] [http-0.0.0.0-8080-12] [ERROR]
>>> [STDERR ] - at
>>> org.drools.base.ValueType.readResolve(ValueType.java:125)
>
>>> [2009-02-11 12:30:29,698] [705981] [http-0.0.0.0-8080-12] [ERROR]
>>> [STDERR ] - at
>>> sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
>
>>> [2009 -02-11 12:30:29,698] [705981] [http-0.0.0.0-8080-12]
>>> [ERROR] [STDERR ] - at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>
>>> [2009-02-11 12:30:29,698] [705981] [http-0.0.0.0-8080-12] [ERROR]
>>> [STDERR ] - at java.lang.reflect.Method.invoke(Method.java:599)
>
> [deleted stacktrace]
>
>
We are experiencing same issue on WebSphere 6.1 FP 23 on Linux and AIX.
Has anyone found a resolution?
Regards
Corneil
--
View this message in context: http://www.nabble.com/unable-to-determine-value-type-class--***-URGENT***...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 1 month
Drool 5 API and Agenda Listeners
by SPAAARKY21
I recently moved from Drool 4 to 5 in a little example application I had
written. At first I hesitated because I thought the API had changed
drastically. When I did upgrade, I found that there were few changes.
However, I was still using all of the "Rule" classes instead of the
"Knowledge" classes - like RuleBase and StatefulRuleSession instead of
KnowledgeBase and StatefulKnowledgeBase. It sounds like the "Knowledge" API
is the way of the future so to speak but I haven't been able to find much
information on it. What is the advantage in using the new "Knowledge" API?
Will the "Rule" API become deprecated at some point?
Anyway, after switching to the Knowledge API, I have been working on an
agenda listener I had written. What I want to do is iterate through agenda
groups on the focus stack and, for each group, iterate through the
activations in the order in which they are queued up. However, I don't see
any way to do that. In fact, since switching to Drools 5 and the
"Knowledge" API, it looks like the API for dealing with the agenda and
activations and whatnot has become quite small. Or at least it is when you
stick to the interfaces. Am I missing a better way of doing this?
Brandon
--
View this message in context: http://www.nabble.com/Drool-5-API-and-Agenda-Listeners-tp25844904p2584490...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 1 month
Implementaion of Rule Flow in Guvnor
by Ambika Goel
I am using the following code to add to knowledge builder and run it:
knowledgeBuilder.add(ResourceFactory.newClassPathResource("QueueFlow.rf", GuvnorTest.class), ResourceType.DRF) // ruleflow
knowledgeBuilder.add(ResourceFactory.newUrlResource("http://..."), ResourceType.PKG) // guvnor package
My rule flow is connection of two tables. I set a property in action of one decision table and use it as a condition in another decision table to get the desired result.
If I run the above code, I don't get any exception but the output is 'null'.
15 years, 1 month
Re: [rules-users] Drools Flow Persistence Doubt
by Pardeep.Ruhil@lntinfotech.com
Hi Mauricio,
Sorry for late replying, actually office is Off on Saturday's and Sundays.
Full stack trace is :
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.4.0.GA
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.Environment
buildBytecodeProvider
INFO: Bytecode provider name : javassist
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Oct 12, 2009 9:32:56 AM org.hibernate.annotations.common.Version <clinit>
INFO: Hibernate Commons Annotations 3.1.0.GA
Oct 12, 2009 9:32:56 AM org.hibernate.ejb.Version <clinit>
INFO: Hibernate EntityManager 3.4.0.GA
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.QueryBinder
bindQuery
INFO: Binding Named query: ProcessInstancesWaitingForEvent => select
processInstanceInfo.processInstanceId from ProcessInstanceInfo
processInstanceInfo where :type in
elements(processInstanceInfo.eventTypes)
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.QueryBinder
bindQuery
INFO: Binding Named query: VariableInstancesInfoByProcessId => select v
from VariableInstanceInfo v where v.processInstanceInfo.id = :processId
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.session.SessionInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.EntityBinder
bindTable
INFO: Bind entity org.drools.persistence.session.SessionInfo on table
SessionInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.processinstance.ProcessInstanceInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.EntityBinder
bindTable
INFO: Bind entity
org.drools.persistence.processinstance.ProcessInstanceInfo on table
ProcessInstanceInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.processinstance.WorkItemInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.EntityBinder
bindTable
INFO: Bind entity org.drools.persistence.processinstance.WorkItemInfo on
table WorkItemInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.EntityBinder
bindTable
INFO: Bind entity
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
on table VariableInstanceInfo
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.processinstance.variabletypes.JPAPersistedVariable
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.drools.persistence.processinstance.variabletypes.SerializablePersistedVariable
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.plugtree.labs.variablepersistence.StringPersistedVariable
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class:
org.plugtree.labs.variablepersistence.MyEntity
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.annotations.EntityBinder
bindTable
INFO: Bind entity org.plugtree.labs.variablepersistence.MyEntity on table
MyEntity
Oct 12, 2009 9:32:56 AM org.hibernate.cfg.AnnotationConfiguration
secondPassCompile
INFO: Hibernate Validator not found: ignoring
Oct 12, 2009 9:32:56 AM org.hibernate.ejb.Ejb3Configuration configure
WARNING: hibernate.connection.autocommit = false break the EJB3
specification
Oct 12, 2009 9:32:56 AM
org.hibernate.cfg.search.HibernateSearchEventListenerRegister
enableHibernateSearch
INFO: Unable to find org.hibernate.search.event.FullTextIndexEventListener
on the classpath. Hibernate Search is not enabled.
Oct 12, 2009 9:32:56 AM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Oct 12, 2009 9:32:56 AM
org.hibernate.connection.DatasourceConnectionProvider configure
INFO: Using datasource: jdbc/testDS1
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: MySQL, version: 5.0.51a-community-nt
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: MySQL-AB JDBC Driver, version:
mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct
2006) $, $Revision: 5908 $ )
Oct 12, 2009 9:32:57 AM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQL5Dialect
Oct 12, 2009 9:32:57 AM
org.hibernate.transaction.TransactionFactoryFactory
buildTransactionFactory
INFO: Transaction strategy:
org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
Oct 12, 2009 9:32:57 AM
org.hibernate.transaction.TransactionManagerLookupFactory
getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup:
org.hibernate.transaction.BTMTransactionManagerLookup
Oct 12, 2009 9:32:57 AM
org.hibernate.transaction.TransactionManagerLookupFactory
getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 3
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory
createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Oct 12, 2009 9:32:57 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory
<init>
INFO: Using ASTQueryTranslatorFactory
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: enabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory
createRegionFactory
INFO: Cache region factory :
org.hibernate.cache.impl.NoCachingRegionFactory
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Oct 12, 2009 9:32:57 AM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Oct 12, 2009 9:32:57 AM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Oct 12, 2009 9:32:57 AM org.hibernate.impl.SessionFactoryObjectFactory
addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Oct 12, 2009 9:32:57 AM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: Running hbm2ddl schema export
Oct 12, 2009 9:32:57 AM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: exporting generated schema to database
Oct 12, 2009 9:32:58 AM org.hibernate.tool.hbm2ddl.SchemaExport execute
INFO: schema export complete
Oct 12, 2009 9:32:58 AM bitronix.tm.BitronixTransactionManager logVersion
INFO: Bitronix Transaction Manager version 1.3.2
Oct 12, 2009 9:32:58 AM bitronix.tm.Configuration buildServerIdArray
WARNING: cannot get this JVM unique ID. Make sure it is configured and you
only use ASCII characters. Will use IP address instead (unsafe for
production usage!).
Oct 12, 2009 9:32:58 AM bitronix.tm.Configuration buildServerIdArray
INFO: JVM unique ID: <172.17.88.140>
Oct 12, 2009 9:32:58 AM bitronix.tm.journal.DiskJournal open
WARNING: active log file is unclean, previous server crash ?
Oct 12, 2009 9:32:58 AM bitronix.tm.recovery.Recoverer run
INFO: recovery committed 0 dangling transaction(s) and rolled back 0
aborted transaction(s) on 1 resource(s) [jdbc/testDS1]
Oct 12, 2009 9:32:58 AM org.hibernate.impl.SessionFactoryImpl <init>
SEVERE: Error in named query: VariableInstancesInfoByProcessId
org.hibernate.QueryException: could not resolve property:
processInstanceInfo of:
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
[select v from
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
v where v.processInstanceInfo.id = :processId]
at
org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(
AbstractPropertyMapping.java:67)
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(
AbstractPropertyMapping.java:61)
at org.hibernate.persister.entity.AbstractEntityPersister.toType(
AbstractEntityPersister.java:1385)
at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(
FromElementType.java:302)
at org.hibernate.hql.ast.tree.FromElement.getPropertyType(
FromElement.java:407)
at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:589
)
at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:264)
at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:211)
at org.hibernate.hql.ast.tree.DotNode.resolveFirstChild(
DotNode.java:176)
at org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(
HqlSqlWalker.java:482)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(
HqlSqlBaseWalker.java:4326)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(
HqlSqlBaseWalker.java:1212)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(
HqlSqlBaseWalker.java:4041)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(
HqlSqlBaseWalker.java:3525)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(
HqlSqlBaseWalker.java:1762)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(
HqlSqlBaseWalker.java:776)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(
HqlSqlBaseWalker.java:577)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(
HqlSqlBaseWalker.java:281)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(
HqlSqlBaseWalker.java:229)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(
QueryTranslatorImpl.java:251)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(
QueryTranslatorImpl.java:183)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(
QueryTranslatorImpl.java:134)
at org.hibernate.engine.query.HQLQueryPlan.<init>(
HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(
HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(
QueryPlanCache.java:94)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(
SessionFactoryImpl.java:436)
at org.hibernate.impl.SessionFactoryImpl.<init>(
SessionFactoryImpl.java:384)
at org.hibernate.cfg.Configuration.buildSessionFactory(
Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(
AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(
Ejb3Configuration.java:669)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(
HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:83)
at javax.persistence.Persistence.createEntityManagerFactory(
Persistence.java:60)
at org.plugtree.labs.VariablePersistenceStrategiesTest.testApp(
VariablePersistenceStrategiesTest.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)
Oct 12, 2009 9:32:58 AM bitronix.tm.recovery.IncrementalRecoverer recover
Thanks & Regards
Pardeep Ruhil
L&T Infotech Ltd
Mumbai
Ph: +919820283884
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com
This Document is classified as:
L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business
This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.
______________________________________________________________________
15 years, 1 month