Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: MVEL error (was: 3.1 M Help Needed): msg#00070

java.drools.user

Subject: Re: MVEL error (was: 3.1 M Help Needed)

Can you try out trunk and see if you still get the bug? As its using a much newer version of MVEL.

Mark
vista2007 wrote:
hi,
What is the possible reason to cause this error ? 

regards
Gaminda



Mark Proctor wrote:
  
MVEL is currently only used for 'from', it should work fine for that 
purpose.

Mark
Edson Tirelli wrote:
    
   Mark,

   What is the status on MVEL stuff used in core?

   []s
   Edson

2007/4/6, vista2007 <my_vista2007@xxxxxxxxx 
<mailto:my_vista2007@xxxxxxxxx> >:


    I implement the following logic using 3.1M edition,

    package com.software.warehouse.rules.impl ;

    #list any import classes here.
    import com.software.warehouse.model.Item;
    import com.software.warehouse.model.ItemCollect;


    #declare any global variables here

    global com.software.warehouse.model.ItemCollect itemCollect;

    rule "Rule 1"

    salience 20
            when
                    # itemCollect.getItemList() method returns a List
    of objects

                                 m : Item(status == Item.ACTIVE ) from
    itemCollect.getItemList()

            then
                    m.setStatus(Item.INACTIVE);
                    System.out.println(m.getStatus());
            end


    It gave me the followin error.

    ObjectAsserted:
    handle=[fid:1:1:com.software.warehouse.model.ItemCollect@12a3722];
    object=com.software.warehouse.model.ItemCollect@12a3722]
    org.mvel.PropertyAccessException: null pointer exception in property:
    itemCollect.getItemList().list()
            at
   
org.mvel.optimizers.impl.refl.ReflectiveOptimizer.compileGetChain(ReflectiveOptimizer.java:137)
            at
    org.mvel.optimizers.impl.refl.ReflectiveOptimizer.optimize
    (ReflectiveOptimizer.java:92)
            at org.mvel.Token.getReducedValueAccelerated(Token.java:302)
            at
    org.mvel.ExecutableAccessor.getValue(ExecutableAccessor.java:46)
            at org.mvel.MVEL.executeExpression (MVEL.java:173)
            at
   
org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:43)
            at org.drools.reteoo.FromNode.assertTuple(FromNode.java:61)
            at
   
org.drools.reteoo.SingleTupleSinkAdapter.createAndPropagateAssertTuple
    (SingleTupleSinkAdapter.java:55)
            at
   
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:147)
            at
   
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java
    :20)
            at
   
org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:163)
            at org.drools.reteoo.Rete.assertObject(Rete.java:121)
            at
    org.drools.reteoo.ReteooRuleBase.assertObject(
    ReteooRuleBase.java:196)
            at
   
org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.propagate(ReteooWorkingMemory.java:157)
            at
    org.drools.common.AbstractWorkingMemory.propagateQueuedActions
    (AbstractWorkingMemory.java:998)
            at
   
org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:733)


    Can anyone please help me to slove this problum. Thank You.
    --
    View this message in context:
    http://www.nabble.com/3.1-M-Help-Needed-tf3535402.html#a9868300
    Sent from the drools - user mailing list archive at Nabble.com
    <http://Nabble.com>.

    _______________________________________________
    rules-users mailing list
    rules-users@xxxxxxxxxxxxxxx <mailto:rules-users@xxxxxxxxxxxxxxx>
    https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3124-6000
  Mobile: +55 11 9218-4151
  JBoss, a division of Red Hat @ www.jboss.com <http://www.jboss.com>
------------------------------------------------------------------------

_______________________________________________
rules-users mailing list
rules-users@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/rules-users
  
      
_______________________________________________
rules-users mailing list
rules-users@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/rules-users


    

  

_______________________________________________
rules-users mailing list
rules-users@xxxxxxxxxxxxxxx
https://lists.jboss.org/mailman/listinfo/rules-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation