• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
strange Error using DirectAction with querydictionary...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange Error using DirectAction with querydictionary...


  • Subject: strange Error using DirectAction with querydictionary...
  • From: "Thomas Engeroff" <email@hidden>
  • Date: Wed, 10 Mar 2004 14:12:02 +0100

Hallo List,

I'm using direct Actions to navigate between my pages so the user can
bookmark. So far this worked just fine. I also use the querydictionary
Binding of the WOHyperlink to pass some NSDictionary along.
The code below is the method which creates the dictionary.


/**
 * get the navigation Dictionary for the ImmoGroupLayer2
 * @return the Dictionary
 */
public NSDictionary getGroupL2Dict() {
	NSMutableArray valueArray = new NSMutableArray();
	valueArray.addObject(this.groupIdentifier());
valueArray.addObject(this.toImmoGroup().groupIdentifier());

	NSMutableArray keyArray = new NSMutableArray();
	keyArray.addObject("groupL2");
	keyArray.addObject("group");

	return new NSDictionary(valueArray, keyArray);
}

When I click on the link in my app which uses this QueryDictionary, along
with a DirectAction named "gotoImmoObjectListe" it produces the following
error.
The link looks like the following:
http://192.168.0.4:1368/cgi-bin/WebObjects/ImmoShopInternational.woa/wa/goto
ImmoObjectListe?groupL2=4&wosid=RWe6ogzXLagwkphitwj1gg&group=3

The strange thing is that I can use the exact same code at another point in
my application and everything works fine.
When I remove the queryDictionary Binding but the same DirectAction it works
also fine!
I debugged to check if the values in the dictionary are correct and found
out, that this is not the problem. The values are for ex.:

	{groupL2 = "4"; group = "3"; }
	{groupL2 = "5"; group = "3"; }

Any help is greatly appreciated!!!
Thanks in advance,
Thomas E.


2004-03-10 13:52:05,605 INFO  ImmoShopInternational[-:1368 1]
ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:40)  -
<er.extensions.ERXDirectActionRequestHandler>: Exception while handling
action named "gotoImmoObjectListe" on action class "null"
:java.lang.NullPointerException
 [2004-03-10 13:52:05 CET] <WorkerThread2> java.lang.NullPointerException
	at
com.webobjects.appserver._private.WOHTMLDynamicElement.computeQueryDictionar
yInContext(WOHTMLDynamicElement.java:268)
	at
com.webobjects.appserver._private.WOHyperlink._appendCGIActionURLToResponse(
WOHyperlink.java:154)
	at
com.webobjects.appserver._private.WOHyperlink.appendAttributesToResponse(WOH
yperlink.java:199)
	at
com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToRespo
nse(WOHTMLDynamicElement.java:395)
	at
com.webobjects.appserver._private.WOHyperlink._appendOpenTagToResponse(WOHyp
erlink.java:110)
	at
com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse(WOHT
MLDynamicElement.java:420)
	at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(WOComp
onentContent.java:43)
	at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WO
DynamicGroup.java:121)
	at
com.webobjects.appserver._private.WOConditional.appendToResponse(WOCondition
al.java:70)
	at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
	at
com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOCo
mponentReference.java:111)
	at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WO
DynamicGroup.java:121)
	at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicG
roup.java:130)
	at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
	at
com.webobjects.appserver._private.WOComponentReference.appendToResponse(WOCo
mponentReference.java:111)
	at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WO
DynamicGroup.java:121)
	at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicG
roup.java:130)
	at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:992)
	at
com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:
1388)
	at
com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.
java:1356)
	at
com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1351)
	at
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOAc
tionRequestHandler.java:259)
	at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOAct
ionRequestHandler.java:142)
	at
er.extensions.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionReq
uestHandler.java:79)
	at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:13
08)
	at
er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:444)
	at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java
:173)
	at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254
)
	at java.lang.Thread.run(Thread.java:536)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Random Int between x and y
      • From: David Griffith <email@hidden>
  • Prev by Date: Re: directActionBug
  • Next by Date: Random Int between x and y
  • Previous by thread: Re: Regarding database connectivity
  • Next by thread: Random Int between x and y
  • Index(es):
    • Date
    • Thread