[Bug 668] New: grouped collection w/ accessname throws up in certain case

View: New views
6 Messages — Rating Filter:   Alert me  

[Bug 668] New: grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668

           Summary: grouped collection w/ accessname throws up in certain
                    case
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Database Layer
        AssignedTo: helma-dev@...
        ReportedBy: nostalgiker@...


Created an attachment (id=112)
 --> (http://dev.helma.org/bugs/attachment.cgi?id=112)
demo app for groupedcollection NPE-on-add bug

I get NPE "error retrieving node" when *adding* an object to a grouped
collection, right after removing a similar object (belonging to same group)
from this collection, which was added in the same request. before the
NPE-provoking add i do removeChild(addedObject) on everything that makes
remotly sense and the collection isn't even aggressivly cached.

I modified the demo-generic-references app to show the problem - see
attachment. Root.main_action is where it all happens.

see also
http://groups.google.com/group/helma/browse_thread/thread/577854d4c4f7c2f7

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 668] grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668





--- Comment #1 from s o <nostalgiker@...>  2009-06-02 15:58:59 ---
stacktrace when i call add()


Error in application dgr

Wrapped java.lang.RuntimeException: Error retrieving Node
(/home/oberhams/experiments/demo-generic-reference/Root/actions.js#27)
Script Stack

    at /home/oberhams/experiments/demo-generic-reference/Root/actions.js:27

Java Stack

org.mozilla.javascript.WrappedException: Wrapped java.lang.RuntimeException:
Error retrieving Node
(/home/oberhams/experiments/demo-generic-reference/Root/actions.js#27)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at
org.mozilla.javascript.gen.c264._c2(/home/oberhams/experiments/demo-generic-reference/Root/actions.js:27)
    at
org.mozilla.javascript.gen.c264.call(/home/oberhams/experiments/demo-generic-reference/Root/actions.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at
org.mozilla.javascript.gen.c264.call(/home/oberhams/experiments/demo-generic-reference/Root/actions.js)
    at org.mozilla.javascript.Context$1.run(Context.java:504)
    at org.mozilla.javascript.Context.call(Context.java:515)
    at org.mozilla.javascript.Context.call(Context.java:502)
    at helma.scripting.rhino.RhinoEngine.invoke(RhinoEngine.java:300)
    at helma.framework.core.RequestEvaluator.run(RequestEvaluator.java:414)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: Error retrieving Node
    at
helma.objectmodel.db.WrappedNodeManager.getNode(WrappedNodeManager.java:96)
    at helma.objectmodel.db.Node.getChildElement(Node.java:1054)
    at helma.objectmodel.db.Node.addNode(Node.java:910)
    at helma.objectmodel.db.Node.addNode(Node.java:813)
    at helma.objectmodel.db.Node.addNode(Node.java:872)
    at helma.objectmodel.db.Node.addNode(Node.java:813)
    at helma.scripting.rhino.HopObject.jsFunction_add(HopObject.java:535)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    ... 13 more
Caused by: java.lang.NullPointerException
    at helma.objectmodel.db.Relation$Constraint.addToQuery(Relation.java:1460)
    at helma.objectmodel.db.Relation.renderConstraints(Relation.java:1088)
    at helma.objectmodel.db.Relation.buildQuery(Relation.java:951)
    at
helma.objectmodel.db.NodeManager.getNodeByRelation(NodeManager.java:1440)
    at helma.objectmodel.db.NodeManager.getNode(NodeManager.java:278)
    at
helma.objectmodel.db.WrappedNodeManager.getNode(WrappedNodeManager.java:87)
    ... 24 more

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 668] grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hannes@...
   Target Milestone|---                         |1.7.0




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 668] grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668





--- Comment #2 from s o <nostalgiker@...>  2009-07-23 13:18:41 ---
[15:38] <hannesw> what does the subnode mapping look like in the collection you
add to?
[15:39] <simono> like so http://helma.pastebin.com/m6b2f161c
[15:40] <simono> problem with the filter?
[15:42] <hannesw> hm, but the children definition is not generic?
[15:42] <hannesw> shouldn't it have a constraint for the prototype?
[15:42] <hannesw> ah, i see, you have it in the filter...
[15:42] <simono> yes
[15:43] <simono> i'll try with local/foreign instead of filter
[15:43] <hannesw> yes, that should work.
[15:43] <hannesw> however, i want this code to work too...
[15:44] <hannesw> have to think some more about it

----------
_children                  = collection (Content)
_children.local.1            = STO_ID
_children.foreign.1          = CNT_PARENT_ID
_children.local.2       = $prototype
_children.foreign.2    = CNT_PARENT_PROTOTYPE
# BUG HELMA DON'T FILTER
# _children.filter           = CNT_PARENT_PROTOTYPE = 'Story'

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 668] grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668





--- Comment #3 from s o <nostalgiker@...>  2009-07-23 13:42:12 ---
me thinks the regression described here is related

http://helma.pastebin.com/f3f84f20c

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 668] grouped collection w/ accessname throws up in certain case

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=668


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Hannes Wallnoefer <hannes@...>  2009-07-30 11:06:17 ---
Fixed in svn.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev