Re: I dont get it, still nullpointer exception

2008-10-15 Thread Cheong Hee (Datasonic)

Hi

Not sure if I got it right.  I presumed if this is a many-to-many modelling 
between Employee and Turn, and the relationship is flattened.


The way I think it should do to add Employee to Turn and Turn to Employee 
are as the following:

   localEmployee.addToTurns(actualTurn);
   actualTurn.addToEmployees(localEmployee);

Then call your save changes.  Usually there is no need to 
addBothSideRelationshipWithKey to join table e.g. EmployeeXTurn (presumed 
again this is join table).


The other thing thought may be useful to check is "propogate primary key" is 
ticked between the Employee and its relationship to join table, vice versa 
between Turn and its relationship to join table.


HTH

Cheong Hee


--

Message: 6
Date: Wed, 15 Oct 2008 23:11:16 -0500
From: WebObjects <[EMAIL PROTECTED]>
Subject: I dont get it, still nullpointer exception
To: WebObjects-Dev Apple 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hello, I fixed (or thought I did) the EOmodel, then I did this in my
method.
Employee localEmployee =
(Employee)EOUtilities.localInstanceOfObject(myEC, emp);
System.out.println(selectedItems());


NSArray localSelectedItems =
EOUtilities.localInstancesOfObjects(myEC, selectedItems());
EmployeeXTurn empxTurn = (EmployeeXTurn)
ERXEOControlUtilities.createAndInsertObject(myEC,"EmployeeXTurn");
for (Turn actualTurn:localSelectedItems){
actualTurn.addToEmployeeXTurn(empxTurn);
}
System.out.println(localSelectedItems);

empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee,
EmployeeXTurn.EMPLOYEE_KEY);
inside the for I have tried the
addObjectToBothSidesOfRelationshipWithKey() method and the
addObjectsToBothSidesOfRelationshipWithKey() method and im still
getting this error

java.lang.NullPointerException
at
com
.webobjects
.eoaccess
.EODatabaseContext
._objectFaultWithSnapshotRelationshipEditingContext
(EODatabaseContext.java:2356)
at
com
.webobjects
.eoaccess
.EODatabaseContext
._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
at
com
.webobjects
.eoaccess
.EOAccessDeferredFaultHandler
.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
at
com
.webobjects
.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
at
er
.extensions
.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:348)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer
$
_LazyGenericRecordBinding
.valueInObject(_EOMutableKnownKeyDictionary.java:614)
at
com
.webobjects
.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at
com
.webobjects
.eoaccess
.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:
4814)
at
com
.webobjects
.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
at
com
.webobjects
.eocontrol
.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:
326)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
_KeyValueQualifierSupport
.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
at er.extensions.ERXExtensions
$
KeyValueQualifierSQLGenerationSupport
.schemaBasedQualifierWithRootEntity(ERXExtensions.java:304)
at com.webobjects.eoaccess.EOQualifierSQLGeneration
$
Support
._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
at
com
.webobjects
.eoaccess
.EODatabaseChannel
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
at
com
.webobjects
.eoaccess
.EODatabaseContext
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:
3055)
at
com
.webobjects
.eoaccess
.EODatabaseContext
.objectsWithFetchSpecification(EODatabaseContext.java:3195)
if I just do this :
empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee,
EmployeeXTurn.EMPLOYEE_KEY);

or this :
localEmployee.addObjectToBothSidesOfRelationshipWithKey(empxTurn,
Employee.EMPLOYEE_X_TURNS_KEY);
all its fine, I can add the employee to the EmployeeXTurn, btu the
problem comes when adding the turn to the EmployeeXTurn.
I think you guys are getting tired of this problems Im having, also I
am, can get it why Im having them.

any clues?

Gus








-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.apple.com/pipermail/webobjects-dev/attachments/20081015/0c2118ed/attachment.html


--

___
Webobjects-dev mailing list
Webobjects-dev@lists.apple.com
http://lists.apple.com/mailman/listinfo/webobjects-dev

End of Webobjects-dev Digest, Vol 5, Issue 1007
***




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


I dont get it, still nullpointer exception

2008-10-15 Thread WebObjects
Hello, I fixed (or thought I did) the EOmodel, then I did this in my  
method.
		Employee localEmployee =  
(Employee)EOUtilities.localInstanceOfObject(myEC, emp);

System.out.println(selectedItems());


		NSArray localSelectedItems =  
EOUtilities.localInstancesOfObjects(myEC, selectedItems());
		EmployeeXTurn empxTurn = (EmployeeXTurn)  
ERXEOControlUtilities.createAndInsertObject(myEC,"EmployeeXTurn");

for (Turn actualTurn:localSelectedItems){
actualTurn.addToEmployeeXTurn(empxTurn);
}
System.out.println(localSelectedItems);

		empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee,  
EmployeeXTurn.EMPLOYEE_KEY);
inside the for I have tried the  
addObjectToBothSidesOfRelationshipWithKey() method and the  
addObjectsToBothSidesOfRelationshipWithKey() method and im still  
getting this error


java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectFaultWithSnapshotRelationshipEditingContext 
(EODatabaseContext.java:2356)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessDeferredFaultHandler 
.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
	at  
er 
.extensions 
.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:348)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer 
$ 
_LazyGenericRecordBinding 
.valueInObject(_EOMutableKnownKeyDictionary.java:614)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java: 
4814)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6535)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java: 
326)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.schemaBasedQualifierWithRootEntity(ERXExtensions.java:304)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
Support 
._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3055)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3195)

if I just do this :
empxTurn.addObjectToBothSidesOfRelationshipWithKey(localEmployee,  
EmployeeXTurn.EMPLOYEE_KEY);


or this :  
localEmployee.addObjectToBothSidesOfRelationshipWithKey(empxTurn,  
Employee.EMPLOYEE_X_TURNS_KEY);
all its fine, I can add the employee to the EmployeeXTurn, btu the  
problem comes when adding the turn to the EmployeeXTurn.
I think you guys are getting tired of this problems Im having, also I  
am, can get it why Im having them.


any clues?

Gus








 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Eclipse 3.4.1

2008-10-15 Thread Ricardo J. Parada


Thanks Kieran for these steps... I followed them and converted a small  
project to the new build hotness.  :-)


I find the new build hotness more intuitive.  :-)

I need to re-read the WOLips blog to make sure I understand it better  
and can get full advantage of it.


Thanks,
Ricardo Parada




On Oct 14, 2008, at 6:45 AM, Kieran Kelleher wrote:

Here is the rough checklist for upgrading ... (in my case I have  
Wonder source linked into my workspace ... and I use WO 5.3.3)


- Every project's build.properties needs to have project.name and  
project.name.lowercase defined
- Check Build Path Order and put ERExtensions at the top of the  
build order (that is important!)

- Do a pre-upgrade commit of everything to svn
- Turn off autobuild
- Upgrade to Eclipse 3.4.1 and latest WOLips Nightly (New Hotness)  
and close Eclipse without building

- Download and install latest Wonder
- Reopen your 3.4 workspace
- Create a new temporary WonderApplication project
- Replace your old application build.xml files with new one from  
temp project
- Replace your old application woproject/*.patternsets with new ones  
from temp project

- Create a new temporary WonderFramework project
- Replace your old framework build.xml files with new one from temp  
project
- Replace your old framework woproject/*.patternsets with new ones  
from temp project

- Delete your old woproject/ant path whatever files in all projects
- Right-click application projects -> Properties -> Turn on  
embedding (the more embed checkboxes you turn on, the less fire  
Future You will be playing with ;-) )

- Clean/Rebuild all
- Test app(s)
- Commit to svn

If you have build issues, open Build Path and check the Order of  
Frameworks and push ERExtensions to the top (Mike, possibly the  
automatic upgrade should do this anyway if ERExtensions is in the  
classpath?)


HTH, Kieran







On Oct 14, 2008, at 12:09 AM, Ramsey Gurley wrote:



On Oct 13, 2008, at 11:55 PM, Mike Schrag wrote:

I tried upgrading to Eclipse 3.4.1, upgraded to the WOLips  
nightly build and downloaded and installed the lastest Wonder- 
latest-frameworks-5.4.  Now, when I open my workspace I don't  
see my WOFrameworks folder, and neither does eclipse since  
nothing in the ERX framework compiles.  What can I do to get my  
frameworks back into my project?  I tried looking at the  
filters, but there are only two listed, *.class and .*


Even when I try to open Eclipse 3.3 my frameworks can no longer  
be seen.  Why would upgrading have blasted my project's  
framework setup?  And why was I dumb enough to try this in the  
first place :-(
WOLips 3.4 has an entirely new classpath system.   Touching a  
WOLips 3.3 project with WOLips 3.4 will cause the .classpath file  
to be upgraded, and it is not backwards compatible.  WO Frameworks  
are no longer handled as a single classpath container, rather each  
framework is now managed independently as its own classpath  
container (which more closely matches reality), and they each  
appear as Libraries in your build path.  As far as ERX not  
compiling, I'm not sure what version of the source you have, but  
given that the trunk of Wonder has been upgraded to WOLips 3.4,  
and I check it out all the time, I can assure you that it compiles  
without any errors under WOLips 3.4 straight out of SVN.  If  
you're using WO 5.4, you will need to change the build path of  
WOOGNL to remove Sources_53 and add Sources_54, but other than  
that, things should work fine.


That said, nightly is not "stable" for a reason.  If you're using  
nightly, you should really either be on the wolips mailing list or  
you should read the wolips blog (http://wolips.blogspot.com/2008/09/its-alive.html 
), so you know what you're getting yourself into.  There are  
SUBSTANTIAL changes to the way things work in the new WOLips that  
you need to be aware of.


ms



You make it sound so scary! :-)

I take it that it's stable enough though...? The only reason I'm  
updating is because the new .classpath files were pushed into the  
repository.  I took that as an 'all clear' :-)  Everything looks  
fine so far (knock on wood).  Any gotcha's that we should be aware  
of??


Ramsey ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rparada 
%40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects

Re: urgent problem addObjectToBothSides...

2008-10-15 Thread Lachlan Deck

On 16/10/2008, at 11:36 AM, WebObjects wrote:


Im having the exact problem when using that method.


I think your problem is different. Mine's rare.

I've found the problem to mine... took a bit of debugging down deep.  
EOF wasn't applying a restricting qualifier properly when generating  
sql that followed a relationship. I know I've talked with Pierre about  
this before... and so I think he's possibly fixed this in 5.4.x (I'm  
on 5.3.3).



On Oct 15, 2008, at 5:49 PM, Lachlan Deck wrote:


Hi there,

anyone got any clues on this one?

I've checked the model and it appears to be okay. What else might  
cause this problem?


with regards,
--

Lachlan Deck


[2008-10-16 09:29:27 EST]   
java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression._flattenRelPathEntity(EOSQLExpression.java:302)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression._aliasForRelationshipPath(EOSQLExpression.java:325)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
._aliasForRelatedAttributeRelationshipPath(EOSQLExpression.java:259)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2135)
	at  
com 
.webobjects 
.eoaccess 
._EOExpressionArray.valueForSQLExpression(_EOExpressionArray.java: 
177)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttribute(EOSQLExpression.java:2060)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2133)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributeNamed(EOSQLExpression.java: 
1935)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForKeyValueQualifier(EOSQLExpression.java: 
1693)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:441)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.sqlStringForSQLExpression(ERXExtensions.java:263)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java: 
151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java: 
151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java: 
151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java: 
151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java: 
151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.prepareSelectExpressionWithAttributes(EOSQLExpression.java:1024)
	at  
com 
.webobjects 
.jdbcadaptor 
.JDBCExpression 
.prepareSelectExpressionWithAttributes(JDBCExpression.java:273)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpressionFactory 
.selectStatementForAttributes(EOSQLExpressionFactory.java:226)
	at  
com 
.webobjects 
.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java:178)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java: 
878)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:215)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext 
(EODatabaseContext.java:3205)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.j

Re: urgent problem addObjectToBothSides...

2008-10-15 Thread WebObjects

Im having the exact problem when using that method.



Gus


On Oct 15, 2008, at 5:49 PM, Lachlan Deck wrote:


Hi there,

anyone got any clues on this one?

I've checked the model and it appears to be okay. What else might  
cause this problem?


with regards,
--

Lachlan Deck


[2008-10-16 09:29:27 EST]   
java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess.EOSQLExpression._flattenRelPathEntity(EOSQLExpression.java: 
302)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression._aliasForRelationshipPath(EOSQLExpression.java:325)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
._aliasForRelatedAttributeRelationshipPath(EOSQLExpression.java:259)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2135)
	at  
com 
.webobjects 
.eoaccess 
._EOExpressionArray.valueForSQLExpression(_EOExpressionArray.java:177)
	at  
com 
.webobjects 
.eoaccess.EOSQLExpression.sqlStringForAttribute(EOSQLExpression.java: 
2060)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2133)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributeNamed(EOSQLExpression.java:1935)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForKeyValueQualifier(EOSQLExpression.java: 
1693)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:441)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.sqlStringForSQLExpression(ERXExtensions.java:263)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.sqlStringForConjoinedQualifiers(EOSQLExpression.java:1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.prepareSelectExpressionWithAttributes(EOSQLExpression.java:1024)
	at  
com 
.webobjects 
.jdbcadaptor 
.JDBCExpression 
.prepareSelectExpressionWithAttributes(JDBCExpression.java:273)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpressionFactory 
.selectStatementForAttributes(EOSQLExpressionFactory.java:226)
	at  
com 
.webobjects 
.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java:178)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java: 
878)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:215)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3205)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3346)
	at  
com 
.ish 
.webobjects 
.eoaccess 
.ISHDatabaseContext 
.objectsWithFetchSpecification(ISHDatabaseContext.java:123)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
.objectsWithFetchSpecification(EOEditingContext.java:4114)

at er.extensions.ERX

Re: Locking problem

2008-10-15 Thread Peter Vandoros
Try commenting out the use of the java.util.concurrent.locks.Lock code  
in you EC subclass and see if that helps. I suspect that somewhere  
under the hood your EC is being locked by directly using the private  
NSLock instance instead of calling the lock() and unlock() method.


Regards

Peter

On 16/10/2008, at 2:20 AM, Florijan Stamenkovic wrote:


OK, some more info, perhaps it will strike a chord with someone?

My latest attempt for solving the threading issue was to essentially  
make every method in my editing context synchronized (though not the  
old fashioned way, but using a java.util.concurrent.locks.Lock in  
ec's lock() and unlock() methods) to see if that helps. I've ditched  
autoLock and autoUnlock, and I simply lock() and unlock() in every  
overridden method in the ec. Well, I've stopped getting  
NSRecursiveLock exceptions, but I still get deadlocks. What is weird  
is that while AWT's event dispatch thread is waiting for the EC lock  
to be released, the other thread working with the EC is blocking on  
this line:


EODistributedObjectStore 
.objectsWithFetchSpecification(EOFetchSpecification,  
EOEditingContext) line: 499


Obviously, this method is called through the blocking EC, so it has  
come past the EC lock. So, I'm really wondering what's happening at  
that line. I've noticed through Eclipse's debugger that the method  
is synchronized. I am oblivious as to why that thread would block in  
such a line. If it was on Object.wait() or something there I could  
understand, but this is bizarre.


Anyone has an idea?

F

On Oct 13, 2008, at 20:14, Mike Schrag wrote:


I don't understand what you say about autoLocking being RR based.
Yep, sorry -- you're right ... Lock coalescing is the one that  
depends on the RR loop.  That said, I definitely ran into cases  
where auto-locking alone was not enough (at least on the web ...  
maybe it's less of an issue with JC).  What would happen is that  
you'd have a series of, say, 5 operations that were logically a  
single transaction, but would be 5 individual lock-unlock  
autolocks, and there would be changes to the snapshot state  
inbetween calls that would cause some weird race conditions.  This  
is actually why I decided to do the lock coalescing stuff in  
Wonder, which seemed to clear up the issues.  But not having done  
JC, maybe this is less of an issue.  It only appeared under higher- 
than-"normal" load.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/flor385%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/peter%40etechgroup.com.au

This email sent to [EMAIL PROTECTED]

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


urgent problem addObjectToBothSides...

2008-10-15 Thread Lachlan Deck

Hi there,

anyone got any clues on this one?

I've checked the model and it appears to be okay. What else might  
cause this problem?


with regards,
--

Lachlan Deck


[2008-10-16 09:29:27 EST]  java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess.EOSQLExpression._flattenRelPathEntity(EOSQLExpression.java: 
302)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression._aliasForRelationshipPath(EOSQLExpression.java:325)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
._aliasForRelatedAttributeRelationshipPath(EOSQLExpression.java:259)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2135)
	at  
com 
.webobjects 
.eoaccess 
._EOExpressionArray.valueForSQLExpression(_EOExpressionArray.java:177)
	at  
com 
.webobjects 
.eoaccess.EOSQLExpression.sqlStringForAttribute(EOSQLExpression.java: 
2060)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributePath(EOSQLExpression.java:2133)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForAttributeNamed(EOSQLExpression.java:1935)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForKeyValueQualifier(EOSQLExpression.java: 
1693)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:441)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.sqlStringForSQLExpression(ERXExtensions.java:263)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForConjoinedQualifiers(EOSQLExpression.java: 
1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForConjoinedQualifiers(EOSQLExpression.java: 
1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForConjoinedQualifiers(EOSQLExpression.java: 
1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForArrayOfQualifiers(EOSQLExpression.java: 
1562)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression.sqlStringForConjoinedQualifiers(EOSQLExpression.java: 
1597)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_AndQualifierSupport 
.sqlStringForSQLExpression(EOQualifierSQLGeneration.java:512)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$Support._sqlStringForSQLExpression(EOQualifierSQLGeneration.java:151)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpression 
.prepareSelectExpressionWithAttributes(EOSQLExpression.java:1024)
	at  
com 
.webobjects 
.jdbcadaptor 
.JDBCExpression 
.prepareSelectExpressionWithAttributes(JDBCExpression.java:273)
	at  
com 
.webobjects 
.eoaccess 
.EOSQLExpressionFactory 
.selectStatementForAttributes(EOSQLExpressionFactory.java:226)
	at  
com 
.webobjects.jdbcadaptor.JDBCChannel.selectAttributes(JDBCChannel.java: 
178)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
._selectWithFetchSpecificationEditingContext(EODatabaseChannel.java:878)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:215)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 
3205)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.objectsWithFetchSpecification(EODatabaseContext.java:3346)
	at  
com 
.ish 
.webobjects 
.eoaccess 
.ISHDatabaseContext 
.objectsWithFetchSpecification(ISHDatabaseContext.java:123)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 
4114)

at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:1090)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext.objectsForSo

Re: _rewriteURL, Tomcat and AjaxUpdateLink

2008-10-15 Thread Lachlan Deck

Hi Helmut,

On 16/10/2008, at 2:37 AM, Helmut Schottmüller wrote:

I still have some problems with my tomcat deployment and the  
rewritten URL's.


I used Lachlans patch to force tomcat to use the _rewriteURL method  
in my application class. This works perfectly fine.


Great.

I also changed the session cookies to use the root "/" dir to store  
the cookies have an rewriteURL independent access to the session  
cookies. This is working for all my actions and directactions  
instead of the AJAX actions. If I try to execute some AjaxUpdateLink  
components, I always get an error because there is no valid session.  
That's strange because I only call setValueForBinding of the parent  
component...


Okay, you'll need to do some debugging in your subclass of  
WOServletContext. You might want to look at the code that's in  
ERXWOContext[54] as well as ERXAjaxContext to see what might need to  
be ported to the servlet context.


Other than that... Mike will probably have a better idea of what might  
be missing.


with regards,
--

Lachlan Deck

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: AjaxSlider

2008-10-15 Thread David LeBer


On 15-Oct-08, at 4:31 PM, David Ress wrote:


Hello Chuck,

My first pointer: JavaScript can make your head hurt, no two ways  
about it.



Yes, Javascript does make my head hurt!

I found a good example by Karl of the tacow(s):

http://code.google.com/p/tacow/source/checkout

There is project called tacowAjaxDemoX which uses 3 AjaxSliders to  
set a color
patch. The project was made with an earlier build of Wonder, but  
after changing
WOApplication and WOSession to ERXAjaxApplication and  
ERXAjaxSession, it works.


So, I am off and happy working on the project again. Thanks for the  
help.


Oooo. Don't blame Karl for that. That is all my fault :-)

I'm glad you were able to get something useful out of that   
considering how little I knew at the time I created it...


I should really go back in and recreate that project so that it works  
the way the Ajax framework is suppose to.


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: AjaxSlider

2008-10-15 Thread David Ress

Hello Chuck,

My first pointer: JavaScript can make your head hurt, no two ways  
about it.



Yes, Javascript does make my head hurt!

I found a good example by Karl of the tacow(s):

http://code.google.com/p/tacow/source/checkout

There is project called tacowAjaxDemoX which uses 3 AjaxSliders to  
set a color
patch. The project was made with an earlier build of Wonder, but  
after changing
WOApplication and WOSession to ERXAjaxApplication and ERXAjaxSession,  
it works.


So, I am off and happy working on the project again. Thanks for the  
help.


David
---
David Ress, PhD  Research Scientist
ISTL, Inc.   Beavercreek Ohio, 45434
www.infoscribe.com   Phone: (937) 431-8870





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


_SSL:443 secure ports question

2008-10-15 Thread Mersida Kurti
Hello all,

I have a question about secure ports in WO.   My app's url is secure, https, 
and the URL goes something like this:  
https://hostname/cgi-bin/WebObjects/Appname.woa blah blah but as soon as i hit 
a submit button i get a _SSL:443 tacked on to my URL, so I see something like 
this: https://hostname_SSL:443/cgi-bin/WebObjects/Appname.woa which is causing 
me problems because my browser tells me address is not found as soon as I hit 
the submit button.  Can you please help me with this?  How do I deal with 
this?  
I'm using Eclipse 3.3.2 Java 5, WO 5.4.3, Leopard 10.5.5

Thanks for all your help.

Mersida



   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: ERXWOForm API ?

2008-10-15 Thread ISHIMOTO Ken

Hi, Thanks for answer, but that wasn't my question.

Sorry for my bad writing^^

In using Wonder there are new Bindings in ERXWOForm, and if I hit  
control space in wod,

only WOForm Bindings shows up, and not the new ones...

In the Header of ERXWOForm.java is writen if you like to see the new  
Bindings in WOBuilder do :


* If you actually want to see those new bindings in WOBuilder, edit  
the file
* WebObjects Builder.app/Contents/Resources/ 
WebObjectDefinitions.xml,

* which contains the .api for the dynamic elements.


But is there a Place in WOLips to change that?

Ken
On 2008/10/14, at 16:41, Ted Archibald wrote:



"In an inline binding or the wod hit control space:"

On Mon, Oct 13, 2008 at 3:00 AM, ISHIMOTO Ken <[EMAIL PROTECTED]> wrote:
Hi,

By translating Wonder to Japanese I have a question.


 * If you actually want to see those new bindings in WOBuilder, edit  
the file
 * WebObjects Builder.app/Contents/Resources/ 
WebObjectDefinitions.xml,

 * which contains the .api for the dynamic elements.


I would love to see this bindings, but not in WOBuilder. How can I  
set these Bindings in Eclipse.


Eclipse 3.3.2 & Latest WOLips.


Thank you


K's ROOM  (ISHIMOTO Ken)

[E-Mail]  <[EMAIL PROTECTED]>
[iChat:]   <[EMAIL PROTECTED]>
[HP]  http://www.ksroom.com/
[HP]  http://wo.ksroom.com/

_
This e-mail has not been scanned vor viruses because it was written  
on an Mac,

and there are NO Viruses on an Apple Computer.
For further information visit http://www.apple.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

This email sent to [EMAIL PROTECTED]

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


EO Caching with global id 'fetching'

2008-10-15 Thread Jonathan Ricker

Hey All,

Heres my basic scenario.  Ive got an entity called a CARule entity.   
For some of these rules the value attribute contains a department  
number which should equal the primary key value of a related entity  
called CADept (which is read-only entity).  So I created this method  
in the CARule.java class to get the CADept related object (if there  
is one).  It works fine, but the problem is that the value is not  
cached.. I log out the sql and it is fetching nearly every time for  
the same editing context.  What am I missing?  I thought it would  
essentially fetch once and be cached thereafter.  It is all in a  
standard ERXEC editing context without any special settings.


/**
 * A method to get the CADept object related to this rule.  It will
 * return null unless it is the appropriate type of role
 */
public CADept dept(){
CADept dept = null;
if (isDeptLeafRule()){
EOGlobalID gid = EOKeyGlobalID.globalIDWithEntityName(
CADept.ENTITY_NAME, new 
String[]{value()});
			System.out.println("Fetching " + value() + " in ec " +  
editingContext());

dept = (CADept)editingContext().objectForGlobalID(gid);

if ( dept == null){
//dept = (CADept)ERXEOGlobalIDUtilities.fetchObjectWithGlobalID 
(editingContext(), gid);
// I tried the above as well and still didn't get the caching I  
wanted.
dept = (CADept)editingContext().faultForGlobalID(gid,  
editingContext());
// Could be a bad rule if the value does not equal to a know dept  
number

// trigger the fault here and catch it.
try{
	System.out.println("Triggering "+value()+" in ec: " +  
editingContext());

dept.deptName();
}catch (ObjectNotAvailableException e){
log.error("Rule has dept value of " + 
value()
+ " which is not in 
common_dept!", e);
dept = null;
}
}else{
System.out.println("Got the dept " + value() + " 
directly");
}

}
return dept;
}



Thanks in advance for any help on this (particularly on my  
understanding of caching, I know I can do some workarounds to make  
the app more efficient but I'm trying to avoid my tendency to do that  
here)


-- Jonathan


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Debugging ERJavaMail

2008-10-15 Thread Ramsey Gurley

Hi everyone,

I'm attempting to repair the ERJavaMail bug that causes the context  
jumping mentioned in the Gotchas section on the wiki:


http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Frameworks-ERJavaMail

Since I'm using D2W pages, the workaround mentioned will not suffice.   
I narrowed the problem down to WOComponent's generateResponse() method  
caching the page and subsequently incrementing the contextID as the  
source of the issue.  By overriding the appendToResponse and calling  
generateResponse, I discovered that all the good stuff happens before  
appendToResponse is called and everything like setting cookies and  
backtrack caching and contextID incrementing that we don't want  
happening occurs afterward.


So... since there's no source available for WOComponent, I stepped  
through the generateResponse method with the debugger and I've managed  
to create a working solution.  I guess what I'm getting around to  
asking here is... does anyone see anything obvious that I've  
overlooked.  I'd like to get this patched and kill that bug once and  
for all :-)


Any comments/suggestions?

Ramsey

	public static WOResponse generateResponseWithoutCaching(WOComponent  
component) {

WOContext context = component.context();
		WOResponse response =  
WOApplication.application().createResponseInContext(context);

context.deleteAllElementIDComponents();
if(!component.equals(context._pageElement())) {
context._setPageChanged(true);
context._setPageElement(component);
context._setCurrentComponent(component);
}
component.appendToResponse(response, context);
return response;
}




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: AjaxSlider

2008-10-15 Thread Chuck Hill

Hi David,

On Oct 15, 2008, at 6:09 AM, David Ress wrote:



I am working a WO application for the US Air Force, and finally have
been able to upgrade the server from 10.3 to 10.4.  This opened up  
the
opportunities to use Java 1.5 as well as adapting the Wonder  
frameworks.



Lots of big and good changes there.


No kidding. The 5 databases within the WOApp I am responsible for is  
both interesting

and frustrating.

Is there an example which shows the AjaxSlider sending its value  
back to the
component available for study?  Otherwise, any hints as to how I  
can send

the value back to the component for further processing?



The AjaxGridNavBar does this.  Here is an example set of bindings:

Does that help?


Not really. It confused me quite a bit, largely due to my lack of  
javascript
experience and being completely new to Wonder. I guess I need to  
start with the

basics, but pointers are always welcomed.


My first pointer: JavaScript can make your head hurt, no two ways  
about it.



I should have mentioned that the AjaxSlider will be one of 4  
controls in a
component - the other 3 (WOCheckBox x2 and a WOPopupButton) are  
submitted with a
WOForm and I need the value of the AjaxSlider to be passed back when  
the WOForm
is submitted.  Having the AjaxSlider update the page is not what my  
end user

is after in this case.

Is this even possible - submitting an AjaxSlider's value via a  
WOForm? If so, is

there an example available for study.


It is not a form element so it can't be used like a form element.  The  
easy way would be to just let it update a local instance variable in  
the page.  When the form is submitted, the method it is submitted to  
can copy the value from this instance variable to its final  
destination.  If the form is cancelled, no action is needed.  The  
other alternative is to use JavaScript to copy the value from the  
slider into a hidden field (WOHiddenField) in the form whenever the  
slider is moved.  This hidden field will the get submitted like any  
other form element.



In perusing the AjaxExamples.woa, it seems that Ajax allows local  
updates in a
component whereas a WOForm forces an entire refresh. That will be  
very useful in

the other sections of the WOApp I am developing.



It can provide a nicer user experience, but it almost always ends up  
being more work.  Sometimes just a little, sometimes a lot!


Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Incorrect css mime type

2008-10-15 Thread Shaft

Thanks for you advice, it works perfectly now!
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: You crossed editing context boundaries...Fixzed, now NullPointerException, now fixing db

2008-10-15 Thread David Avendasora

I don't think it is.

A Turn can have more than one Employee and an Employee and have more  
than one Turn, right?


If so, you need the Employee to EmployeeXTurn to be a to-Many and the  
Turn to EmployeeXTurn to be a to-Man, and EmployeeXTurn has to-One  
relationships to Employee and Turn.


Dave


On Oct 15, 2008, at 1:28 PM, WebObjects wrote:

Hello Dave and David,. Let me know please if its all right now with  
the EOModel



regards

Gus



On Oct 15, 2008, at 11:29 AM, David LeBer wrote:



On 15-Oct-08, at 12:05 PM, WebObjects wrote:

Aha, so im sticking with the initial model. making the changes  
David suggested:




- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to  
EmployeeXTurn

- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.





Im having problem with a nullpointer exception when trying to save  
the turns a employee register, actually its not when saving, but  
when doing this.
Employee localEmployee =  
(Employee)EOUtilities.localInstanceOfObject(myEC, emp);

System.out.println(selectedItems());


		NSArray localSelectedItems =  
EOUtilities.localInstancesOfObjects(myEC, selectedItems());

System.out.println(localSelectedItems);
for (Turn actualTurn : localSelectedItems){
			 
localEmployee 
.addObjectToBothSidesOfRelationshipWithKey(actualTurn,  
Employee.TURNS_KEY);


}
		// 
localEmployee 
.addObjectsToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);

myEC.saveChanges();


I tried before, without the for loop, doing just:
localEmployee 
.addObjecstToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);


and had the same Exception, I guess its because of the relationship.


So im making those changes and see what happens.
and then before saving changes I will need to add the turn and  
emplyee to EmoployeeXTurn  relationships no?


Yes.

You will no longer have a direct relationship between Employee and  
Turn, so you need to do create the EmployeeXTurn instance and join  
it to the Employee and Turn manually. I'd probably add a factory  
method to EmployeeXTurn and maybe a convenience method to Employee  
to make this cleaner.




Gus



On Oct 15, 2008, at 10:30 AM, David Avendasora wrote:


Hi Gus,

Sorry to be so late on this thread as I am the one that suggested  
you model your application like this.


Flattening makes many-to-many relationships more convenient, BUT  
it only works if the join table is nothing but a join table that  
exists simply to manage a relationship. The fact is that in this  
situation it is not _just_ a join table. It contains important  
business information.


You will need to manage this table manually. But with WO,  
"manually" is still pretty simple. Treat it like any other  
relationship. You'll just need to use key paths to resolve the  
relationship and you can create your own convenience methods for  
this so you only have to do it once. For example, if you want all  
a Turn's employees, create the following method on Turn:


public NSArray employees() {
return employeeXTurns().valueForKey("Employee");
}

OR, if more safely:

public NSArray employees() {
return employeeXTurns(). valueForKey(EmployeeXTurn.EMPLOYEE_KEY);
}

Don't go changing your Entity Model to make your programming  
easier. Make it match the real world as closely as possible -  
that in itself will make developing your application easier.


Dave


On Oct 15, 2008, at 11:03 AM, WebObjects wrote:

well is it easier to manage it leaving EOF to handle the  
relationships, i guess, so if ther is a way to get the date the  
turn was assigned to the Employee not doing it by the  
EmployeeXTurn Entity, then will be fine, just I can't see it  
where, or how.



Gus


Begin forwarded message:


From: WebObjects <[EMAIL PROTECTED]>
Date: October 15, 2008 9:58:11 AM GMT-05:00
To: David LeBer <[EMAIL PROTECTED]>
Cc: WebObjects-Dev Apple 
Subject: Re: You crossed editing context boundaries...

Aha, I need the CreationDate in the EmployeeXTurn table  
because  I will need to know sometimes when was created the  
turn by the employee, for administrative reasons.
So  following your advise  I will need to make the relatonship  
again, but this time I shouldn't flattened (im not familiar  
with the term ;-)) ... ok let me see if I can do it, the only  
problem i see, is that i tried once to leave id as the only PK,  
but then when trying to make the relationship, EOModeler  
complained when trying to make the relationship to attributes  
that weren't PK, Im gonna try it once again.. I will let you  
know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using th

Re: You crossed editing context boundaries...Fixzed, now NullPointerException, now fixing db

2008-10-15 Thread David LeBer


On 15-Oct-08, at 12:05 PM, WebObjects wrote:

Aha, so im sticking with the initial model. making the changes David  
suggested:




- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to EmployeeXTurn
- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.





Im having problem with a nullpointer exception when trying to save  
the turns a employee register, actually its not when saving, but  
when doing this.
Employee localEmployee =  
(Employee)EOUtilities.localInstanceOfObject(myEC, emp);

System.out.println(selectedItems());


		NSArray localSelectedItems =  
EOUtilities.localInstancesOfObjects(myEC, selectedItems());

System.out.println(localSelectedItems);
for (Turn actualTurn : localSelectedItems){
			 
localEmployee.addObjectToBothSidesOfRelationshipWithKey(actualTurn,  
Employee.TURNS_KEY);


}
		// 
localEmployee 
.addObjectsToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);

myEC.saveChanges();


I tried before, without the for loop, doing just:
localEmployee 
.addObjecstToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);


and had the same Exception, I guess its because of the relationship.


So im making those changes and see what happens.
and then before saving changes I will need to add the turn and  
emplyee to EmoployeeXTurn  relationships no?


Yes.

You will no longer have a direct relationship between Employee and  
Turn, so you need to do create the EmployeeXTurn instance and join it  
to the Employee and Turn manually. I'd probably add a factory method  
to EmployeeXTurn and maybe a convenience method to Employee to make  
this cleaner.




Gus



On Oct 15, 2008, at 10:30 AM, David Avendasora wrote:


Hi Gus,

Sorry to be so late on this thread as I am the one that suggested  
you model your application like this.


Flattening makes many-to-many relationships more convenient, BUT it  
only works if the join table is nothing but a join table that  
exists simply to manage a relationship. The fact is that in this  
situation it is not _just_ a join table. It contains important  
business information.


You will need to manage this table manually. But with WO,  
"manually" is still pretty simple. Treat it like any other  
relationship. You'll just need to use key paths to resolve the  
relationship and you can create your own convenience methods for  
this so you only have to do it once. For example, if you want all a  
Turn's employees, create the following method on Turn:


public NSArray employees() {
return employeeXTurns().valueForKey("Employee");
}

OR, if more safely:

public NSArray employees() {
return employeeXTurns(). valueForKey(EmployeeXTurn.EMPLOYEE_KEY);
}

Don't go changing your Entity Model to make your programming  
easier. Make it match the real world as closely as possible - that  
in itself will make developing your application easier.


Dave


On Oct 15, 2008, at 11:03 AM, WebObjects wrote:

well is it easier to manage it leaving EOF to handle the  
relationships, i guess, so if ther is a way to get the date the  
turn was assigned to the Employee not doing it by the  
EmployeeXTurn Entity, then will be fine, just I can't see it  
where, or how.



Gus


Begin forwarded message:


From: WebObjects <[EMAIL PROTECTED]>
Date: October 15, 2008 9:58:11 AM GMT-05:00
To: David LeBer <[EMAIL PROTECTED]>
Cc: WebObjects-Dev Apple 
Subject: Re: You crossed editing context boundaries...

Aha, I need the CreationDate in the EmployeeXTurn table because   
I will need to know sometimes when was created the turn by the  
employee, for administrative reasons.
So  following your advise  I will need to make the relatonship  
again, but this time I shouldn't flattened (im not familiar with  
the term ;-)) ... ok let me see if I can do it, the only problem  
i see, is that i tried once to leave id as the only PK, but then  
when trying to make the relationship, EOModeler complained when  
trying to make the relationship to attributes that weren't PK, Im  
gonna try it once again.. I will let you know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using the  
addObjectToBothSidesOfRelationshipWithKey() method

and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..




The join table between Employee and Turn looks whacked.

- It has a three way compound primary key. (employeeId, id,  
turnId)

- It has a 'creationDate' attribute.
- It participates in a flattened relationship between Employee  
and Turn.


EOF is not going to know how generate that three way compound  
primary key.


If

Re: You crossed editing context boundaries...Fixzed, now NullPointerException, now fixing db

2008-10-15 Thread WebObjects
Aha, so im sticking with the initial model. making the changes David  
suggested:




- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to EmployeeXTurn
- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.





Im having problem with a nullpointer exception when trying to save the  
turns a employee register, actually its not when saving, but when  
doing this.
Employee localEmployee =  
(Employee)EOUtilities.localInstanceOfObject(myEC, emp);

System.out.println(selectedItems());


		NSArray localSelectedItems =  
EOUtilities.localInstancesOfObjects(myEC, selectedItems());

System.out.println(localSelectedItems);
for (Turn actualTurn : localSelectedItems){
			localEmployee.addObjectToBothSidesOfRelationshipWithKey(actualTurn,  
Employee.TURNS_KEY);


}
		// 
localEmployee 
.addObjectsToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);

myEC.saveChanges();


I tried before, without the for loop, doing just:
localEmployee 
.addObjecstToBothSidesOfRelationshipWithKey(localSelectedItems,  
Employee.TURNS_KEY);


and had the same Exception, I guess its because of the relationship.


So im making those changes and see what happens.
and then before saving changes I will need to add the turn and emplyee  
to EmoployeeXTurn  relationships no?




Gus



On Oct 15, 2008, at 10:30 AM, David Avendasora wrote:


Hi Gus,

Sorry to be so late on this thread as I am the one that suggested  
you model your application like this.


Flattening makes many-to-many relationships more convenient, BUT it  
only works if the join table is nothing but a join table that exists  
simply to manage a relationship. The fact is that in this situation  
it is not _just_ a join table. It contains important business  
information.


You will need to manage this table manually. But with WO, "manually"  
is still pretty simple. Treat it like any other relationship. You'll  
just need to use key paths to resolve the relationship and you can  
create your own convenience methods for this so you only have to do  
it once. For example, if you want all a Turn's employees, create the  
following method on Turn:


public NSArray employees() {
return employeeXTurns().valueForKey("Employee");
}

OR, if more safely:

public NSArray employees() {
return employeeXTurns(). valueForKey(EmployeeXTurn.EMPLOYEE_KEY);
}

Don't go changing your Entity Model to make your programming easier.  
Make it match the real world as closely as possible - that in itself  
will make developing your application easier.


Dave


On Oct 15, 2008, at 11:03 AM, WebObjects wrote:

well is it easier to manage it leaving EOF to handle the  
relationships, i guess, so if ther is a way to get the date the  
turn was assigned to the Employee not doing it by the EmployeeXTurn  
Entity, then will be fine, just I can't see it where, or how.



Gus


Begin forwarded message:


From: WebObjects <[EMAIL PROTECTED]>
Date: October 15, 2008 9:58:11 AM GMT-05:00
To: David LeBer <[EMAIL PROTECTED]>
Cc: WebObjects-Dev Apple 
Subject: Re: You crossed editing context boundaries...

Aha, I need the CreationDate in the EmployeeXTurn table because  I  
will need to know sometimes when was created the turn by the  
employee, for administrative reasons.
So  following your advise  I will need to make the relatonship  
again, but this time I shouldn't flattened (im not familiar with  
the term ;-)) ... ok let me see if I can do it, the only problem i  
see, is that i tried once to leave id as the only PK, but then  
when trying to make the relationship, EOModeler complained when  
trying to make the relationship to attributes that weren't PK, Im  
gonna try it once again.. I will let you know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using the  
addObjectToBothSidesOfRelationshipWithKey() method

and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..




The join table between Employee and Turn looks whacked.

- It has a three way compound primary key. (employeeId, id, turnId)
- It has a 'creationDate' attribute.
- It participates in a flattened relationship between Employee  
and Turn.


EOF is not going to know how generate that three way compound  
primary key.


If EmployeeXTurn is just a join table and is going to be  
flattened out of the object graph then it should just have a 2  
way compound PK based on the FKs from Employee and Turn and it  
should NOT have any other attributes.


If EmployeeXTurn has attributes you need to gain access to (i.e.  
creationDate) then you should treat it like a standard EO.


- Re

_rewriteURL, Tomcat and AjaxUpdateLink

2008-10-15 Thread Helmut Schottmüller

Hi,

I still have some problems with my tomcat deployment and the rewritten  
URL's.


I used Lachlans patch to force tomcat to use the _rewriteURL method in  
my application class. This works perfectly fine. I also changed the  
session cookies to use the root "/" dir to store the cookies have an  
rewriteURL independent access to the session cookies. This is working  
for all my actions and directactions instead of the AJAX actions. If I  
try to execute some AjaxUpdateLink components, I always get an error  
because there is no valid session. That's strange because I only call  
setValueForBinding of the parent component...


I'll appreciate any hint.
Thanks,
Helmut
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: You crossed editing context boundaries...Fixzed, no NullPointerException, now fixing db

2008-10-15 Thread David Avendasora

Hi Gus,

Sorry to be so late on this thread as I am the one that suggested you  
model your application like this.


Flattening makes many-to-many relationships more convenient, BUT it  
only works if the join table is nothing but a join table that exists  
simply to manage a relationship. The fact is that in this situation it  
is not _just_ a join table. It contains important business information.


You will need to manage this table manually. But with WO, "manually"  
is still pretty simple. Treat it like any other relationship. You'll  
just need to use key paths to resolve the relationship and you can  
create your own convenience methods for this so you only have to do it  
once. For example, if you want all a Turn's employees, create the  
following method on Turn:


public NSArray employees() {
return employeeXTurns().valueForKey("Employee");
}

OR, if more safely:

public NSArray employees() {
return employeeXTurns(). valueForKey(EmployeeXTurn.EMPLOYEE_KEY);
}

Don't go changing your Entity Model to make your programming easier.  
Make it match the real world as closely as possible - that in itself  
will make developing your application easier.


Dave


On Oct 15, 2008, at 11:03 AM, WebObjects wrote:

well is it easier to manage it leaving EOF to handle the  
relationships, i guess, so if ther is a way to get the date the turn  
was assigned to the Employee not doing it by the EmployeeXTurn  
Entity, then will be fine, just I can't see it where, or how.



Gus


Begin forwarded message:


From: WebObjects <[EMAIL PROTECTED]>
Date: October 15, 2008 9:58:11 AM GMT-05:00
To: David LeBer <[EMAIL PROTECTED]>
Cc: WebObjects-Dev Apple 
Subject: Re: You crossed editing context boundaries...

Aha, I need the CreationDate in the EmployeeXTurn table because  I  
will need to know sometimes when was created the turn by the  
employee, for administrative reasons.
So  following your advise  I will need to make the relatonship  
again, but this time I shouldn't flattened (im not familiar with  
the term ;-)) ... ok let me see if I can do it, the only problem i  
see, is that i tried once to leave id as the only PK, but then when  
trying to make the relationship, EOModeler complained when trying  
to make the relationship to attributes that weren't PK, Im gonna  
try it once again.. I will let you know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using the  
addObjectToBothSidesOfRelationshipWithKey() method

and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..




The join table between Employee and Turn looks whacked.

- It has a three way compound primary key. (employeeId, id, turnId)
- It has a 'creationDate' attribute.
- It participates in a flattened relationship between Employee and  
Turn.


EOF is not going to know how generate that three way compound  
primary key.


If EmployeeXTurn is just a join table and is going to be flattened  
out of the object graph then it should just have a 2 way compound  
PK based on the FKs from Employee and Turn and it should NOT have  
any other attributes.


If EmployeeXTurn has attributes you need to gain access to (i.e.  
creationDate) then you should treat it like a standard EO.


- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to EmployeeXTurn
- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.

apart of the consistency names and other stuff, are the relations  
good?


Regards

Gus



On Oct 14, 2008, at 7:43 PM, Ricardo J. Parada wrote:

How about your registerTurns() method?  Did you change it to use  
myEC instead of ERXEC.newEditingContext()?



On Oct 14, 2008, at 8:17 PM, WebObjects wrote:

aha... you are right, after whole day sitting here,  I didn't  
realize I had teh emp at login with the  
session().defaultEditingContext, and here at PaguinaUsuario I m  
using another one.


My mind its kind of distracted...

I made the changes, and still Im getting the nullpointerexception


java.lang.NullPointerException
[2008-10-14 19:13:51 COT]   
java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectFaultWithSnapshotRelationshipEditingContext 
(EODatabaseContext.java:2356)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessDeferredFaultHandler 
.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java: 
49)
	at  
com 
.webobjects 
.eocontrol 
.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
	at  
er 
.extensions 
.eof 
.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:348)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary 
$Initializer 
$ 

Re: Locking problem

2008-10-15 Thread Florijan Stamenkovic

OK, some more info, perhaps it will strike a chord with someone?

My latest attempt for solving the threading issue was to essentially  
make every method in my editing context synchronized (though not the  
old fashioned way, but using a java.util.concurrent.locks.Lock in  
ec's lock() and unlock() methods) to see if that helps. I've ditched  
autoLock and autoUnlock, and I simply lock() and unlock() in every  
overridden method in the ec. Well, I've stopped getting  
NSRecursiveLock exceptions, but I still get deadlocks. What is weird  
is that while AWT's event dispatch thread is waiting for the EC lock  
to be released, the other thread working with the EC is blocking on  
this line:


EODistributedObjectStore.objectsWithFetchSpecification 
(EOFetchSpecification, EOEditingContext) line: 499


Obviously, this method is called through the blocking EC, so it has  
come past the EC lock. So, I'm really wondering what's happening at  
that line. I've noticed through Eclipse's debugger that the method is  
synchronized. I am oblivious as to why that thread would block in  
such a line. If it was on Object.wait() or something there I could  
understand, but this is bizarre.


Anyone has an idea?

F

On Oct 13, 2008, at 20:14, Mike Schrag wrote:


I don't understand what you say about autoLocking being RR based.
Yep, sorry -- you're right ... Lock coalescing is the one that  
depends on the RR loop.  That said, I definitely ran into cases  
where auto-locking alone was not enough (at least on the web ...  
maybe it's less of an issue with JC).  What would happen is that  
you'd have a series of, say, 5 operations that were logically a  
single transaction, but would be 5 individual lock-unlock  
autolocks, and there would be changes to the snapshot state  
inbetween calls that would cause some weird race conditions.  This  
is actually why I decided to do the lock coalescing stuff in  
Wonder, which seemed to clear up the issues.  But not having done  
JC, maybe this is less of an issue.  It only appeared under higher- 
than-"normal" load.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/flor385% 
40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Converting my App to Wonder

2008-10-15 Thread Q
Is newsDisplayGroup being initialized using a WOO file entry by any  
chance?  If so you need to either change the newsDisplayGroup  
declaration back to a WODisplayGroup or manually edit your woo file in  
the source view to use an ERXDisplayGroup.


This isn't ideal particularly if you want to use generics, but I  
haven't had a chance to look into solving this any other way just yet.


On 16/10/2008, at 12:08 AM, Amedeo Mantica wrote:

all seem to works, but I missed someting regarding the Display  
Groups...



Error:   java.lang.reflect.InvocationTargetException
Reason:	 java.lang.IllegalArgumentException: While trying to set the  
field "newsDisplayGroup" on an object of type  
com.didonatospa.components.Main we expected a  
er.extensions.appserver.ERXDisplayGroup but received a  
com.webobjects.appserver.WODisplayGroup with a value of  
[EMAIL PROTECTED]  
delegate=Class: 'com.webobjects.appserver.WODisplayGroup$Delegate'  
Object:  sortOrdering=() qualifier=null localKeys=()  
insertedObjectDefaultValues={} numberOfObjectsPerBatch=10>. This  
often happens if you forget to use a formatter.



 we expected a er.extensions.appserver.ERXDisplayGroup but  
received a com.webobjects.appserver.WODisplayGroup =



Any help?
a tutorial?

Regards
Amedeo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [EMAIL PROTECTED]




--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Using ERXEC with defaultEditingContext?

2008-10-15 Thread David LeBer

On 15-Oct-08, at 10:38 AM, David Avendasora wrote:

I have a very similar question. I have a small, 3-component single- 
user web application that does one business function. I had been  
using session().defaultEditingContext() as my EC without any problem  
(technical or business).


I have since made this app a Wonder app and have been slowly  
AJAXifying it. I have not changed any of my calls to the EC. The  
problem is that now I am having problems with WO trying to delete  
things that have already been deleted from the DB and issues with  
cascading deletes and owned objects not propagating the way they  
used to.


I don't think it is an AJAX-specific problem as the issues started  
happening prior to my adding AJAX to the app, but after turning it  
into a Wonder app (extending ERXApplication, ERXSession, etc).


I just want to be clear on what you are saying. This is what I'm  
hearing:


defaultEditingContext() should be okay for one user doing one  
business function (includes creating and deleting many objects).  
It's not good to use if your application has numerous business  
functions that wouldn't make sense to have a save in one save the  
changes in another.


Or is the default EC just plain bad for more technical reasons?


By using the session().defaultEditingContext() exclusively, you  
consign ALL of your user's activities to one universal sandbox. If the  
user aborts a task you are left having to cleanup their mess so their  
changes don't end up getting accidentally committed to the db. There  
are lots of ways to dirty the object graph (got onclick bound to a  
form submit anywhere?).


If multiple ECs are used correctly, this is  not an issue. A user can  
abort a task and any changes they might have made will just go away  
when the EC does.


I'm not sure if multiple ECs would solve your particular problems,  
they sound more like backtracking or model related, but I use multiple  
ECs as a matter of best practice for all my apps regardless of size/ 
complexity.



Dave


On Oct 14, 2008, at 11:18 PM, David LeBer wrote:


[Please keep replies on the list]

On 14-Oct-08, at 11:04 PM, Jeff Schmitz wrote:

Thanks, and just to be sure, no locking or unlocking at all if  
just using these contexts within a single session and single  
thread, right?


As long as you enable autolocking with the appropriate settings in  
your app properties and always use the ERXEC.newEditingContext()  
factory method to generate your new EOEditingContext.









On Oct 14, 2008, at 9:58 PM, David LeBer wrote:



On 14-Oct-08, at 10:51 PM, Jeff Schmitz wrote:

After some "thorough" research, I've decided I need to use new  
ERXEC editing contexts instead of using the Session  
defaultEditingContext everywhere, especially in cases where I'm  
make changes to EO's.  I had a question about the ERXEC  
documentation.  It states:


"... you will need to use this class and its subclasses  
exclusively as your ECs, it also contains a factory class to  
create editing contexts. ...


Does this mean, if I an ERXEC editing context, I can't use the  
Session's defaultEditingContext anywhere in my application?


No.

If you are using Wonder and doing the 'using Wonder' things:

Your Application class subclasses ERXApplication
Your Session class subclassess ERXSession

Then your Session defaultEditignContext IS an ERXEC vended  
editing context. Its magic that Project Wonder...


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: You crossed editing context boundaries...Fixzed, no NullPointerException, now fixing db

2008-10-15 Thread WebObjects
well is it easier to manage it leaving EOF to handle the  
relationships, i guess, so if ther is a way to get the date the turn  
was assigned to the Employee not doing it by the EmployeeXTurn Entity,  
then will be fine, just I can't see it where, or how.



Gus


Begin forwarded message:


From: WebObjects <[EMAIL PROTECTED]>
Date: October 15, 2008 9:58:11 AM GMT-05:00
To: David LeBer <[EMAIL PROTECTED]>
Cc: WebObjects-Dev Apple 
Subject: Re: You crossed editing context boundaries...

Aha, I need the CreationDate in the EmployeeXTurn table because  I  
will need to know sometimes when was created the turn by the  
employee, for administrative reasons.
So  following your advise  I will need to make the relatonship  
again, but this time I shouldn't flattened (im not familiar with the  
term ;-)) ... ok let me see if I can do it, the only problem i see,  
is that i tried once to leave id as the only PK, but then when  
trying to make the relationship, EOModeler complained when trying to  
make the relationship to attributes that weren't PK, Im gonna try it  
once again.. I will let you know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using the  
addObjectToBothSidesOfRelationshipWithKey() method

and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..




The join table between Employee and Turn looks whacked.

- It has a three way compound primary key. (employeeId, id, turnId)
- It has a 'creationDate' attribute.
- It participates in a flattened relationship between Employee and  
Turn.


EOF is not going to know how generate that three way compound  
primary key.


If EmployeeXTurn is just a join table and is going to be flattened  
out of the object graph then it should just have a 2 way compound  
PK based on the FKs from Employee and Turn and it should NOT have  
any other attributes.


If EmployeeXTurn has attributes you need to gain access to (i.e.  
creationDate) then you should treat it like a standard EO.


- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to EmployeeXTurn
- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.

apart of the consistency names and other stuff, are the relations  
good?


Regards

Gus



On Oct 14, 2008, at 7:43 PM, Ricardo J. Parada wrote:

How about your registerTurns() method?  Did you change it to use  
myEC instead of ERXEC.newEditingContext()?



On Oct 14, 2008, at 8:17 PM, WebObjects wrote:

aha... you are right, after whole day sitting here,  I didn't  
realize I had teh emp at login with the  
session().defaultEditingContext, and here at PaguinaUsuario I m  
using another one.


My mind its kind of distracted...

I made the changes, and still Im getting the nullpointerexception


java.lang.NullPointerException
[2008-10-14 19:13:51 COT]   
java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectFaultWithSnapshotRelationshipEditingContext 
(EODatabaseContext.java:2356)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessDeferredFaultHandler 
.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
	at  
com 
.webobjects 
.eocontrol 
.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
	at  
er 
.extensions 
.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java: 
348)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary 
$Initializer 
$ 
_LazyGenericRecordBinding 
.valueInObject(_EOMutableKnownKeyDictionary.java:614)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java: 
1634)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.databaseOperationForObject(EODatabaseContext.java:4814)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java: 
6535)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.valuesForKeys(EOObjectStoreCoordinator.java:326)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.schemaBasedQualifierWithRootEntity 
(EOQualifierSQLGeneration.java:439)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.schemaBasedQualifierWithRootEntity(ERXExtensions.java:304)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
Support 
._schemaBasedQualifierWithRootEntity 
(EOQualifierSQLGeneration.java:179)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)


and more much more.
On Oct 14, 2008, at 7:06 PM, Ricardo J. Parada wrote:



It looks like you got the employee object using the session's  
default editing context.  And you are saying th

Re: You crossed editing context boundaries...

2008-10-15 Thread WebObjects
Aha, I need the CreationDate in the EmployeeXTurn table because  I  
will need to know sometimes when was created the turn by the employee,  
for administrative reasons.
So  following your advise  I will need to make the relatonship again,  
but this time I shouldn't flattened (im not familiar with the  
term ;-)) ... ok let me see if I can do it, the only problem i see, is  
that i tried once to leave id as the only PK, but then when trying to  
make the relationship, EOModeler complained when trying to make the  
relationship to attributes that weren't PK, Im gonna try it once  
again.. I will let you know.



Gus

PS taking care of babies and trying to programing hard work.


On Oct 14, 2008, at 10:32 PM, David LeBer wrote:



On 14-Oct-08, at 10:19 PM, WebObjects wrote:

mmm.. weird I tried to add it one by one using the  
addObjectToBothSidesOfRelationshipWithKey() method

and it stills giving me the java.lang.nullpointerexception
:S:S:S:
maybe something wrong with my EOModel???

Im attaching it..




The join table between Employee and Turn looks whacked.

- It has a three way compound primary key. (employeeId, id, turnId)
- It has a 'creationDate' attribute.
- It participates in a flattened relationship between Employee and  
Turn.


EOF is not going to know how generate that three way compound  
primary key.


If EmployeeXTurn is just a join table and is going to be flattened  
out of the object graph then it should just have a 2 way compound PK  
based on the FKs from Employee and Turn and it should NOT have any  
other attributes.


If EmployeeXTurn has attributes you need to gain access to (i.e.  
creationDate) then you should treat it like a standard EO.


- Remove the flattened relationships from Employee to Turn
- Expose the relationships from Employee and Turn to EmployeeXTurn
- Use only id as the PK.
- Manage the creation of EmployeeXTurn manually.

apart of the consistency names and other stuff, are the relations  
good?


Regards

Gus



On Oct 14, 2008, at 7:43 PM, Ricardo J. Parada wrote:

How about your registerTurns() method?  Did you change it to use  
myEC instead of ERXEC.newEditingContext()?



On Oct 14, 2008, at 8:17 PM, WebObjects wrote:

aha... you are right, after whole day sitting here,  I didn't  
realize I had teh emp at login with the  
session().defaultEditingContext, and here at PaguinaUsuario I m  
using another one.


My mind its kind of distracted...

I made the changes, and still Im getting the nullpointerexception


java.lang.NullPointerException
[2008-10-14 19:13:51 COT]   
java.lang.NullPointerException
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectFaultWithSnapshotRelationshipEditingContext 
(EODatabaseContext.java:2356)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
	at  
com 
.webobjects 
.eoaccess 
.EOAccessDeferredFaultHandler 
.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
	at  
com 
.webobjects 
.eocontrol 
.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
	at  
er 
.extensions 
.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java: 
348)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary 
$Initializer 
$ 
_LazyGenericRecordBinding 
.valueInObject(_EOMutableKnownKeyDictionary.java:614)
	at  
com 
.webobjects 
.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java: 
1634)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
.databaseOperationForObject(EODatabaseContext.java:4814)
	at  
com 
.webobjects 
.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java: 
6535)
	at  
com 
.webobjects 
.eocontrol 
.EOObjectStoreCoordinator 
.valuesForKeys(EOObjectStoreCoordinator.java:326)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
_KeyValueQualifierSupport 
.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java: 
439)
	at er.extensions.ERXExtensions 
$ 
KeyValueQualifierSQLGenerationSupport 
.schemaBasedQualifierWithRootEntity(ERXExtensions.java:304)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration 
$ 
Support 
._schemaBasedQualifierWithRootEntity 
(EOQualifierSQLGeneration.java:179)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseChannel 
.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)


and more much more.
On Oct 14, 2008, at 7:06 PM, Ricardo J. Parada wrote:



It looks like you got the employee object using the session's  
default editing context.  And you are saying that your  
PaginaUsuario creates its own editing context in the  
constructor.  So there you have it: two different editing  
contexts.


I would modify your setEmp() method in the PaginaUsuario that  
you make a copy of the emp object passed in to the editing  
context used in that page.  Something like this:


public void estEmp(Employee anEmp) {
emp = anEmp.localInstanceIn(myEC);
}

Then your registerTurns() method is yet creating another editing  
conte

Re: NSCoding

2008-10-15 Thread Florijan Stamenkovic
Huh, I've never had data loss experiences, but then again I never  
really did use it for long term storage / across Java versions etc.  
Will need to keep this in mind though. I always assumed that as long  
as the internal data structure of a class does not change, the  
serialized data will remain readable, regardless of the functional  
changes in the class. Anyway, interesting, thanks.


As for NSCoder and company, never manually used it.

F

On Oct 15, 2008, at 10:22, Oliver Scheel wrote:

It depends too much on the class signature. For temporary storage  
it's ok, but when the class definition changes (or serialVersionUID  
must be modified), the data is lost. That's my experience.

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Using ERXEC with defaultEditingContext?

2008-10-15 Thread David Avendasora
I have a very similar question. I have a small, 3-component single- 
user web application that does one business function. I had been using  
session().defaultEditingContext() as my EC without any problem  
(technical or business).


I have since made this app a Wonder app and have been slowly  
AJAXifying it. I have not changed any of my calls to the EC. The  
problem is that now I am having problems with WO trying to delete  
things that have already been deleted from the DB and issues with  
cascading deletes and owned objects not propagating the way they used  
to.


I don't think it is an AJAX-specific problem as the issues started  
happening prior to my adding AJAX to the app, but after turning it  
into a Wonder app (extending ERXApplication, ERXSession, etc).


I just want to be clear on what you are saying. This is what I'm  
hearing:


defaultEditingContext() should be okay for one user doing one business  
function (includes creating and deleting many objects). It's not good  
to use if your application has numerous business functions that  
wouldn't make sense to have a save in one save the changes in another.


Or is the default EC just plain bad for more technical reasons?

Dave


On Oct 14, 2008, at 11:18 PM, David LeBer wrote:


[Please keep replies on the list]

On 14-Oct-08, at 11:04 PM, Jeff Schmitz wrote:

Thanks, and just to be sure, no locking or unlocking at all if just  
using these contexts within a single session and single thread,  
right?


As long as you enable autolocking with the appropriate settings in  
your app properties and always use the ERXEC.newEditingContext()  
factory method to generate your new EOEditingContext.









On Oct 14, 2008, at 9:58 PM, David LeBer wrote:



On 14-Oct-08, at 10:51 PM, Jeff Schmitz wrote:

After some "thorough" research, I've decided I need to use new  
ERXEC editing contexts instead of using the Session  
defaultEditingContext everywhere, especially in cases where I'm  
make changes to EO's.  I had a question about the ERXEC  
documentation.  It states:


"... you will need to use this class and its subclasses  
exclusively as your ECs, it also contains a factory class to  
create editing contexts. ...


Does this mean, if I an ERXEC editing context, I can't use the  
Session's defaultEditingContext anywhere in my application?


No.

If you are using Wonder and doing the 'using Wonder' things:

Your Application class subclasses ERXApplication
Your Session class subclassess ERXSession

Then your Session defaultEditignContext IS an ERXEC vended editing  
context. Its magic that Project Wonder...


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org








;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Lachlan Deck

Hi again,

On 16/10/2008, at 12:31 AM, Lachlan Deck wrote:


On 15/10/2008, at 10:59 PM, Mike Schrag wrote:

I've attached a patch for ERXWOServletContext (Mike, if you'd like  
to apply this... it's a project relative patch).
The problem with this is that this method call changed between 5.3  
and 5.4 in an API-incompatible way, which means we actually now  
have to have an ERXWOServletContext53 and ERXWOServletContext54.   
This is actually exactly the reason we have that stupid  
ERXWOContext54 -- it's only for this one method.


in 5.4:
public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure,  
int somePort) {


in 5.3:
public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean secure) {


Ah. I overlooked that.

The problem is that you have to call "super." and you can't call  
super with reflection, which means you can't build a version that  
works in 5.4 against 5.3 API's.


Updated patches attached...
Woops, missed the patch for ERXApplication.installPatches() also. Here  
they all are again with this one too.






with regards,
--

Lachlan Deck




ERXApplication.java.patch
Description: Binary data


ERXWOServletContext.java.patch
Description: Binary data


ERXWOServletContext54.java.patch
Description: Binary data
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: NSCoding

2008-10-15 Thread Oliver Scheel


Why not use Java's serialization? Should be simpler.



It depends too much on the class signature. For temporary storage it's  
ok, but when the class definition changes (or serialVersionUID must be  
modified), the data is lost. That's my experience.


An alternate way for WO would be WOXMLEncoder, but NSCoding seems to  
me more familar in the Apple world.


Oliver



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Converting my App to Wonder

2008-10-15 Thread David Avendasora
I'm not a DisplayGroup expert by any means, but what does you display  
group component extend? WODisplayGroup or ERXDisplayGroup?


Dave

On Oct 15, 2008, at 10:08 AM, Amedeo Mantica wrote:

all seem to works, but I missed someting regarding the Display  
Groups...



Error:   java.lang.reflect.InvocationTargetException
Reason:	 java.lang.IllegalArgumentException: While trying to set the  
field "newsDisplayGroup" on an object of type  
com.didonatospa.components.Main we expected a  
er.extensions.appserver.ERXDisplayGroup but received a  
com.webobjects.appserver.WODisplayGroup with a value of  
[EMAIL PROTECTED]  
delegate=Class: 'com.webobjects.appserver.WODisplayGroup$Delegate'  
Object:  sortOrdering=() qualifier=null localKeys=()  
insertedObjectDefaultValues={} numberOfObjectsPerBatch=10>. This  
often happens if you forget to use a formatter.



 we expected a er.extensions.appserver.ERXDisplayGroup but  
received a com.webobjects.appserver.WODisplayGroup =



Any help?
a tutorial?

Regards
Amedeo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [EMAIL PROTECTED]




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Converting my App to Wonder

2008-10-15 Thread Amedeo Mantica

all seem to works, but I missed someting regarding the Display Groups...


Error:   java.lang.reflect.InvocationTargetException
Reason:	 java.lang.IllegalArgumentException: While trying to set the  
field "newsDisplayGroup" on an object of type  
com.didonatospa.components.Main we expected a  
er.extensions.appserver.ERXDisplayGroup but received a  
com.webobjects.appserver.WODisplayGroup with a value of  
[EMAIL PROTECTED]  
delegate=Class: 'com.webobjects.appserver.WODisplayGroup$Delegate'  
Object:  sortOrdering=() qualifier=null localKeys=()  
insertedObjectDefaultValues={} numberOfObjectsPerBatch=10>. This often  
happens if you forget to use a formatter.



 we expected a er.extensions.appserver.ERXDisplayGroup but  
received a com.webobjects.appserver.WODisplayGroup =



Any help?
a tutorial?

Regards
Amedeo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: ZHTML WebObject problem

2008-10-15 Thread Amedeo Mantica

Thank you mike! :-)
it works

On 15/ott/08, at 15:40, Mike Schrag wrote:

hello, I have an "old" html project that was an Xcode project, now  
imported to eclipse..


I got there errors...
This is not an eclipse error, it's a WO 5.4 error ... I don't know  
if you can choose to use a less strict parser in WO 5.4.  Wonder's  
WOOGNL parser, however, does not require this level of strict  
compliance, and you can use it independently of the rest of Wonder.   
You can grab the Wonder 54 framework build, add WOOGNL to your build  
path and then set:


ognl.helperFunctions=true
ognl.inlineBindings=true

and you'll get the full use of the ognl parser.

ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/amedeomailing%40insigno.it

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WOHost and JavaClient

2008-10-15 Thread David Avendasora

Hi all,

This is one for the record, just incase future-self or other Java  
Client developers (ha, ha, I know) run into this problem.


If you define the -WOHost launch parameter in WOLips, your client  
application will not be able to connect to the server.


If you try to launch using the Client Launch Script, the client will  
begin to open, but then simply die with no explanation or error in the  
console.


If you launch it using WebStart, then you will get the following  
exception reported by Java WebStart:


com.webobjects.foundation.NSForwardException for  
java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.(Socket.java:367)
at java.net.Socket.(Socket.java:209)
	at com.webobjects.foundation.NSSocketUtilities 
$SocketThread.run(NSSocketUtilities.java:190)


If you simply remove -WOHost from the list of WO launch parameters or  
simply uncheck it, then the client application will launch either way  
without problem.


Dave
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: NSCoding

2008-10-15 Thread Florijan Stamenkovic

Why not use Java's serialization? Should be simpler.

F

On Oct 15, 2008, at 06:12, Oliver Scheel wrote:



I want to use NSCoding to archive data structures, but didn't find  
any examples on the net. Anyone using it?


(and I don't want to write a complete coder) ;-)

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/flor385% 
40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: ZHTML WebObject problem

2008-10-15 Thread Mike Schrag
hello, I have an "old" html project that was an Xcode project, now  
imported to eclipse..


I got there errors...
This is not an eclipse error, it's a WO 5.4 error ... I don't know if  
you can choose to use a less strict parser in WO 5.4.  Wonder's WOOGNL  
parser, however, does not require this level of strict compliance, and  
you can use it independently of the rest of Wonder.  You can grab the  
Wonder 54 framework build, add WOOGNL to your build path and then set:


ognl.helperFunctions=true
ognl.inlineBindings=true

and you'll get the full use of the ognl parser.

ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: AjaxSlider

2008-10-15 Thread Lachlan Deck

On 16/10/2008, at 12:09 AM, David Ress wrote:

In perusing the AjaxExamples.woa, it seems that Ajax allows local  
updates in a
component whereas a WOForm forces an entire refresh. That will be  
very useful in

the other sections of the WOApp I am developing.


You might want to also have a look at AjaxExample2 in case there's  
anything useful there (being more recent).


with regards,
--

Lachlan Deck



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Lachlan Deck

Hi Mike,

On 15/10/2008, at 10:59 PM, Mike Schrag wrote:

I've attached a patch for ERXWOServletContext (Mike, if you'd like  
to apply this... it's a project relative patch).
The problem with this is that this method call changed between 5.3  
and 5.4 in an API-incompatible way, which means we actually now have  
to have an ERXWOServletContext53 and ERXWOServletContext54.  This is  
actually exactly the reason we have that stupid ERXWOContext54 --  
it's only for this one method.


in 5.4:
 public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure, int  
somePort) {


in 5.3:
public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean secure) {


Ah. I overlooked that.

The problem is that you have to call "super." and you can't call  
super with reflection, which means you can't build a version that  
works in 5.4 against 5.3 API's.


Updated patches attached...

with regards,
--

Lachlan Deck




ERXWOServletContext.java.patch
Description: Binary data


ERXWOServletContext54.java.patch
Description: Binary data
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

ZHTML WebObject problem

2008-10-15 Thread Amedeo Mantica
hello, I have an "old" html project that was an Xcode project, now  
imported to eclipse..


I got there errors...

Error:	  
com.webobjects.appserver.parser.woml.WOMLTemplateParserException:  
corporateTop: 1:486: The element type "img" must be terminated by the  
matching end-tag "".
Reason:	 The element type "img" must be terminated by the matching end- 
tag "".


ok, I don't want now to convert my project to at the momentto XHTML,  
how can I disable checks or switch to HTML ??


Thanks in Advance
Amedeo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Helmut Schottmüller

Cool, thanks Mike!

Regards,
Helmut

Am 15.10.2008 um 15:09 schrieb Mike Schrag:

I use setStoresIDsInCookies(true) and the cookie containing the  
session is now stored in the original root path of my application  
but the URL is rewritten so it seems that the browser is not able  
to retrieve the cookie because it is not in the correct root  
directory. Does anyone know how to force the cookie to use the  
rewritten URL or (even if it is less secure) simple the "/" path  
for the cookie?

on your session:

  @Override
  public String domainForIDCookies() {
return "/";
  }

ms
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/hschottm%40googlemail.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: AjaxSlider

2008-10-15 Thread David Ress

Hello Chuck,


I am working a WO application for the US Air Force, and finally have
been able to upgrade the server from 10.3 to 10.4.  This opened up  
the
opportunities to use Java 1.5 as well as adapting the Wonder  
frameworks.



Lots of big and good changes there.



No kidding. The 5 databases within the WOApp I am responsible for is  
both interesting

and frustrating.

Is there an example which shows the AjaxSlider sending its value  
back to the
component available for study?  Otherwise, any hints as to how I  
can send

the value back to the component for further processing?



The AjaxGridNavBar does this.  Here is an example set of bindings:

Does that help?


Not really. It confused me quite a bit, largely due to my lack of  
javascript
experience and being completely new to Wonder. I guess I need to  
start with the

basics, but pointers are always welcomed.

I should have mentioned that the AjaxSlider will be one of 4 controls  
in a
component - the other 3 (WOCheckBox x2 and a WOPopupButton) are  
submitted with a
WOForm and I need the value of the AjaxSlider to be passed back when  
the WOForm
is submitted.  Having the AjaxSlider update the page is not what my  
end user

is after in this case.

Is this even possible - submitting an AjaxSlider's value via a  
WOForm? If so, is

there an example available for study.

In perusing the AjaxExamples.woa, it seems that Ajax allows local  
updates in a
component whereas a WOForm forces an entire refresh. That will be  
very useful in

the other sections of the WOApp I am developing.

David
---
David Ress, PhD  Research Scientist
ISTL, Inc.   Beavercreek Ohio, 45434
www.infoscribe.com   Phone: (937) 431-8870






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Mike Schrag
I use setStoresIDsInCookies(true) and the cookie containing the  
session is now stored in the original root path of my application  
but the URL is rewritten so it seems that the browser is not able to  
retrieve the cookie because it is not in the correct root directory.  
Does anyone know how to force the cookie to use the rewritten URL or  
(even if it is less secure) simple the "/" path for the cookie?

on your session:

  @Override
  public String domainForIDCookies() {
return "/";
  }

ms ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Helmut Schottmüller

Ok,

the patch workes fine, but now I have another problem :-)

I use setStoresIDsInCookies(true) and the cookie containing the  
session is now stored in the original root path of my application but  
the URL is rewritten so it seems that the browser is not able to  
retrieve the cookie because it is not in the correct root directory.  
Does anyone know how to force the cookie to use the rewritten URL or  
(even if it is less secure) simple the "/" path for the cookie?


Regards,

Helmut

Am 15.10.2008 um 13:46 schrieb Lachlan Deck:


(this is a Wonder question)

On 15/10/2008, at 9:10 PM, Helmut Schottmüller wrote:

I am trying to rewrite my ERXApplication URL's in my Tomcat  
deployment with mod_rewrite and I want to overwrite the _rewriteURL  
method in my ERXApplication baseclass. When I test my application  
on my local machine with directconnect everything works fine and  
_rewriteURL is being called anytime an URL is generated. But in the  
deployment system on tomcat it seems that _rewriteURL is not  
called. I placed debug statements at the beginning of the method  
but nothing happens when I create some actions in the application.


Is there something I have to set that _rewriteURL is called in the  
deployment too?


This difference is that in development the WOContext subclass is  
ERXWOContext (or ERXWOContext54 if using WO5.4.x). However in  
deployment you're getting ERXWOServletContext which doesn't  
implement the necessary call to app._rewriteURL because it's a  
subclass of WOServletContext.


I've attached a patch for ERXWOServletContext (Mike, if you'd like  
to apply this... it's a project relative patch).


In the meantime you can subclass ERXWOServletContext and implement  
the following...


/**
	 [EMAIL PROTECTED]  
com 
.webobjects 
.appserver 
.WOContext 
#_urlWithRequestHandlerKey 
(java.lang.String,java.lang.String,java.lang.String,boolean,int)

 */
@Override
	public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure, int  
somePort) {
		String url = super._urlWithRequestHandlerKey(requestHandlerKey,  
requestHandlerPath, queryString, isSecure, somePort);

url = ERXApplication.erxApplication()._rewriteURL(url);
return url;
}

Then in your Application class
public void finishInitilization()
{
super.finishInitialization();
	ERXPatcher.setClassForName(YourServletContext.class,  
"com.webobjects.jspservlet.WOServletContext");	

}

with regards,
--

Lachlan Deck




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: NSBundle.pathURLForResourcePath Error

2008-10-15 Thread Mike Schrag
My app works fine in development but when i move it to deployment i  
get an error:  NSForwardException [java.lang.NoSuchMethodError]  
NSBundle.pathURLForResourcePath(Ljava/lang/String;)Ljava/net/URL;
NoSuchMethodError can only happen if you're building and deploying  
against different versions of the frameworks.  Presumably you're  
developing against 5.3 but deploying against 5.2 or some other crazy  
mixture.  Never mix versions between development and deployment ..  
It's just asking for problems to be caught at runtime.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


NSBundle.pathURLForResourcePath Error

2008-10-15 Thread mike deavila


Anyone know why i getting this error?

My app works fine in development but when i move it to deployment i  
get an error:  NSForwardException [java.lang.NoSuchMethodError]  
NSBundle.pathURLForResourcePath(Ljava/lang/String;)Ljava/net/URL;


I'm working with WO 5.2.4 java 1.4.2.x  deployment windows xp 64bit  
and devlopment is windows xp 64bit. I have the same jars in the same  
places. Any ideas?


Cheers
mike
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Helmut Schottmüller

Hi Lachlan,

great and thanks a lot!

Regards,
Helmut

Am 15.10.2008 um 13:46 schrieb Lachlan Deck:


(this is a Wonder question)

On 15/10/2008, at 9:10 PM, Helmut Schottmüller wrote:

I am trying to rewrite my ERXApplication URL's in my Tomcat  
deployment with mod_rewrite and I want to overwrite the _rewriteURL  
method in my ERXApplication baseclass. When I test my application  
on my local machine with directconnect everything works fine and  
_rewriteURL is being called anytime an URL is generated. But in the  
deployment system on tomcat it seems that _rewriteURL is not  
called. I placed debug statements at the beginning of the method  
but nothing happens when I create some actions in the application.


Is there something I have to set that _rewriteURL is called in the  
deployment too?


This difference is that in development the WOContext subclass is  
ERXWOContext (or ERXWOContext54 if using WO5.4.x). However in  
deployment you're getting ERXWOServletContext which doesn't  
implement the necessary call to app._rewriteURL because it's a  
subclass of WOServletContext.


I've attached a patch for ERXWOServletContext (Mike, if you'd like  
to apply this... it's a project relative patch).


In the meantime you can subclass ERXWOServletContext and implement  
the following...


/**
	 [EMAIL PROTECTED]  
com 
.webobjects 
.appserver 
.WOContext 
#_urlWithRequestHandlerKey 
(java.lang.String,java.lang.String,java.lang.String,boolean,int)

 */
@Override
	public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure, int  
somePort) {
		String url = super._urlWithRequestHandlerKey(requestHandlerKey,  
requestHandlerPath, queryString, isSecure, somePort);

url = ERXApplication.erxApplication()._rewriteURL(url);
return url;
}

Then in your Application class
public void finishInitilization()
{
super.finishInitialization();
	ERXPatcher.setClassForName(YourServletContext.class,  
"com.webobjects.jspservlet.WOServletContext");	

}

with regards,
--

Lachlan Deck




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Mike Schrag
I've attached a patch for ERXWOServletContext (Mike, if you'd like  
to apply this... it's a project relative patch).
The problem with this is that this method call changed between 5.3 and  
5.4 in an API-incompatible way, which means we actually now have to  
have an ERXWOServletContext53 and ERXWOServletContext54.  This is  
actually exactly the reason we have that stupid ERXWOContext54 -- it's  
only for this one method.


in 5.4:
  public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure, int  
somePort) {


in 5.3:
public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean secure) {


The problem is that you have to call "super." and you can't call super  
with reflection, which means you can't build a version that works in  
5.4 against 5.3 API's.


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: _rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Lachlan Deck

(this is a Wonder question)

On 15/10/2008, at 9:10 PM, Helmut Schottmüller wrote:

I am trying to rewrite my ERXApplication URL's in my Tomcat  
deployment with mod_rewrite and I want to overwrite the _rewriteURL  
method in my ERXApplication baseclass. When I test my application on  
my local machine with directconnect everything works fine and  
_rewriteURL is being called anytime an URL is generated. But in the  
deployment system on tomcat it seems that _rewriteURL is not called.  
I placed debug statements at the beginning of the method but nothing  
happens when I create some actions in the application.


Is there something I have to set that _rewriteURL is called in the  
deployment too?


This difference is that in development the WOContext subclass is  
ERXWOContext (or ERXWOContext54 if using WO5.4.x). However in  
deployment you're getting ERXWOServletContext which doesn't implement  
the necessary call to app._rewriteURL because it's a subclass of  
WOServletContext.


I've attached a patch for ERXWOServletContext (Mike, if you'd like to  
apply this... it's a project relative patch).


In the meantime you can subclass ERXWOServletContext and implement the  
following...


/**
	 [EMAIL PROTECTED]  
com 
.webobjects 
.appserver 
.WOContext 
#_urlWithRequestHandlerKey 
(java.lang.String,java.lang.String,java.lang.String,boolean,int)

 */
@Override
	public String _urlWithRequestHandlerKey(String requestHandlerKey,  
String requestHandlerPath, String queryString, boolean isSecure, int  
somePort) {
		String url = super._urlWithRequestHandlerKey(requestHandlerKey,  
requestHandlerPath, queryString, isSecure, somePort);

url = ERXApplication.erxApplication()._rewriteURL(url);
return url;
}

Then in your Application class
public void finishInitilization()
{
super.finishInitialization();
	ERXPatcher.setClassForName(YourServletContext.class,  
"com.webobjects.jspservlet.WOServletContext");	

}

with regards,
--

Lachlan Deck



ERXWOServletContext.java.patch
Description: Binary data
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: NSCoding

2008-10-15 Thread Oliver Scheel


I want to use NSCoding to archive data structures, but didn't find  
any examples on the net. Anyone using it?


(and I don't want to write a complete coder) ;-)



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

_rewriteURL is not called in Tomcat Deployment

2008-10-15 Thread Helmut Schottmüller

Hi,

I am trying to rewrite my ERXApplication URL's in my Tomcat deployment  
with mod_rewrite and I want to overwrite the _rewriteURL method in my  
ERXApplication baseclass. When I test my application on my local  
machine with directconnect everything works fine and _rewriteURL is  
being called anytime an URL is generated. But in the deployment system  
on tomcat it seems that _rewriteURL is not called. I placed debug  
statements at the beginning of the method but nothing happens when I  
create some actions in the application.


Is there something I have to set that _rewriteURL is called in the  
deployment too?


Regards,
Helmut


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


NSCoding

2008-10-15 Thread Oliver Scheel
I want to use NSCoding to archive data structures, but didn't find any  
examples on the net. Anyone using it?


Oliver



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Getting the JDBC Connection from the current WOApplication

2008-10-15 Thread Frédéric JECKER

Hi list,

I have to perform some SQL batch processing in my app and rather than  
opening a new JDBC connection i'd like to get the

one opened by my app.

How could I achieve to get this one ?

Thanks

Fred



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Doing WebServices? Does "dotNetSoapEncFix" mean anything to you...?

2008-10-15 Thread Hugi Thordarson

...if it does, you might be able to help me :-).

I'm in the progress of upgrading an app that provides WO WebServices  
from WO 5.3 to WO 5.4, and it's been giving me some headaches. After a  
bit of tinkering I've got almost everything working, except one thing:


WO 5.3 generated WSDL and SOAP responses using type="xsd:string" for  
Strings, which, appparently is correct, but WO 5.4 OTOH, likes to  
generate type="soapenc:string", which causes problems for some web  
service consumers (specifically, those using .NET).


Google informs me that setting this property in my wsdd:

 

should fix this problem - but alas, it does not. WO 5.4 still defines  
Strings as "soapenc:string".


Has anyone here bumped into this?

Cheers,
- Hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]