Leopard friendly JavaBrowser alternative

2009-01-06 Thread Stamenkovic Florijan

Hi all,

So, the JavaBrowser app is gone. I found some info saying that Tiger's  
version can work on Leopard too, but it seems I'd have to do some  
hacks. So, before I do that, I'd like to hear how others browse Java  
docs / source? I am especially interested in standalone apps (though  
I'd prefer not using a browser to do this, for reasons of  
convenience), as I like to Cmd+Tab between the doc and Eclipse.


Thanks,
F
___
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 arch...@mail-archive.com


Test, ignore

2009-01-06 Thread Kevin Windham

Testing
___
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 arch...@mail-archive.com


Re: EO Not deleting

2009-01-06 Thread Joe Moreno

I've made this mistake before and I keep forgetting...

I forgot to remove the EO from it's relationship before deleting it.  
Once I did that, the EOs were deleted as expected.


I'm not sure why EOF would sometimes delete the EO and sometimes it  
didn't - but, unhooking it before the delete solved the problem is all  
cases.


Cheers,
Joe

On Dec 31, 2008, at 17:33:12, Joe Moreno wrote:


Happy New Year!

I believe I've seen this issue before, but I don't recall what I'm  
doing wrong...


I have an EO deleting itself from an editing context, but,  
sometimes, only the EO's foreign key is getting set to NULL, which  
has the same effect of deleting the EO. Other times, the row in the  
database actually gets deleted.


The SQL going to the database sometimes is DELETE and sometimes it's:
UPDATE DEPARTMENT SET OID_EMPOYEE = NULL WHERE OID = ?...

Did I cross EC or something else bad?

Thanks,
Joe


___
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 arch...@mail-archive.com


test

2009-01-06 Thread Kieran Kelleher

test, sorry for any inconvenience
___
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 arch...@mail-archive.com


Re: PDF generator/converter

2009-01-06 Thread Jeff Schmitz


   I downloaded the example flying saucer stuff and got it to run,  
but I'm having trouble figuring out how to wrap this up in a  
component.  Since I am generating a WOComponent  that I want to  
transform to a pdf, I'm unsure how to send that finished component  
(i.e. html file) to the pdf renderer for further processing.  Do I  
need to somehow write my WOComponent to a file where the renderer can  
see it?  Or is there a way to divert it to the renderer directly?   
i.e. How can I get a serialized version of a WOComponent for further  
processing instead of just sending it back to the user?   Or am I off  
on the wrong path somehow?


Thanks,
Jeff


On Dec 11, 2008, at 3:57 AM, John Corrigan wrote:


On 10/12/2008, at 1:31 AM, Sherry Tirko wrote:


Hi All,

I'm wondering if anyone knows if there is a pdf generator out there  
for WO sites or even a converter for WO Components. I'd like to  
take a form and make a pdf version for printing.


Thanks,
Sherry



Another option may be The Flying Saucer Project - An XML/XHTML/CSS  
2.1 Renderer, 100% Java, open-source (LGPL).

http://xhtmlrenderer.dev.java.net/

This seems a little less known but I've had good success with it (no  
affiliation). Converts any XHTML + CSS 2.1 compliant input to other  
formats, usually PDF but apparently can do Swing no less. Passes  
ACID 2 and has some CSS 3 support. It uses iText internally for PDF  
output.


I'm using the latest pre-release without issue (R8pre2 as of Jan  
08). Make sure the input validates as XHTML (for the most part, it's  
not as strict as http://validator.w3.org/).


WebStart demo app:
https://xhtmlrenderer.dev.java.net/r7/demos.html

Fonts:
It needs to be told about custom fonts (ie. those not available in  
the JRE).


Example usage (with fonts):
As a starting point a small example project in plain Java is  
attached (see readme).



Sláinte
John


Example_FlyingSaucerXHTMLRenderer.tgz
___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: PDF generator/converter

2009-01-06 Thread Jeff Schmitz
 I downloaded the example flying saucer stuff and got it to run, but  
I'm having trouble figuring out how to wrap this up in a component.   
Since I am generating a WOComponent  that I want to transform to a  
pdf, I'm unsure how to send that finished component (i.e. html file)  
to the pdf renderer for further processing.  Do I need to somehow  
write my WOComponent to a file where the renderer can see it?  Or is  
there a way to divert it to the renderer directly?  i.e. How can I get  
a serialized version of a WOComponent for further processing instead  
of just sending it back to the user?   Or am I off on the wrong path  
somehow?


Thanks,
Jeff
On Dec 11, 2008, at 3:57 AM, John Corrigan wrote:


On 10/12/2008, at 1:31 AM, Sherry Tirko wrote:


Hi All,

I'm wondering if anyone knows if there is a pdf generator out there  
for WO sites or even a converter for WO Components. I'd like to  
take a form and make a pdf version for printing.


Thanks,
Sherry



Another option may be The Flying Saucer Project - An XML/XHTML/CSS  
2.1 Renderer, 100% Java, open-source (LGPL).

http://xhtmlrenderer.dev.java.net/

This seems a little less known but I've had good success with it (no  
affiliation). Converts any XHTML + CSS 2.1 compliant input to other  
formats, usually PDF but apparently can do Swing no less. Passes  
ACID 2 and has some CSS 3 support. It uses iText internally for PDF  
output.


I'm using the latest pre-release without issue (R8pre2 as of Jan  
08). Make sure the input validates as XHTML (for the most part, it's  
not as strict as http://validator.w3.org/).


WebStart demo app:
https://xhtmlrenderer.dev.java.net/r7/demos.html

Fonts:
It needs to be told about custom fonts (ie. those not available in  
the JRE).


Example usage (with fonts):
As a starting point a small example project in plain Java is  
attached (see readme).



Sláinte
John


Example_FlyingSaucerXHTMLRenderer.tgz
___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


$parent.method binding error in eclipse

2009-01-06 Thread Yung-Luen Lan
Hi,

I have a template component with a such line:

wo:if condition = $parent.authorized

which calls the authorized() method of the parent component.

However, eclipse always display an error saying there is no key
'authorized' for the keypath 'parent' in my class.
How do I make the error message disappear? Thanks.

Regards,
yllan
 ___
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 arch...@mail-archive.com


OT: ping

2009-01-06 Thread Lachlan Deck

Just a ping.

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 arch...@mail-archive.com


ERChangeNotificationJMS

2009-01-06 Thread Jon Nolan

I'm trying to integrate this and I'm running into...

com.webobjects.foundation.NSForwardException 
[java.lang.NoClassDefFoundError] 
org/exolab/core/util/URI$MalformedURIException:java.lang.NoClassDefFoundError: 
org/exolab/core/util/URI$MalformedURIException


Some very old posts indicate what the problem is (missing 
exolabcore-0.3.7.jar) but they also recommend that perhaps that jar 
should be within ERJars or merged into the framework.  That's the sort 
of thing I would expect to have happened by now.  Makes me wonder if I'm 
not going about this the wrong way completely.


At this point all I have done is add ERChangeNotificationJMS.jar to my 
build path.  It's blowing up when the framework initializes.  What am I 
missing?  Is there a link to a how-to doc out there?


Thanks,
Jon

___
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 arch...@mail-archive.com


Reading a line at a time with NSData?

2009-01-06 Thread James Cicenia

I have an NSData object. I am using the sample AJAXFileUpload
which gives me an NSData object. I  am reading in a tab delimited
text file and was wondering how do I read line per line.

Thanks
James Cicenia
___
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 arch...@mail-archive.com


Re: Problem after Wonder and WO upgrade

2009-01-06 Thread james o'loughlin


On 2008.12.31, at 9:19 PM, Kevin Windham wrote:


I upgraded WO to 5.4.3 and Wonder to the latest 5.4 version.

I fixed some import statement issues, and now it looks like I have  
one last project issue before I can run.


I get this error: missing required library: '/Library/Frameworks/ 
ERJavaMail.framework/Resources/Java/activation-1.0.2.jar'	


I have in that path activation-1.1.1.jar instead of  
activation-1.0.2.jar. I can't figure out why it would be looking for  
the older version if I updated the whole framework. Is there  
anywhere else I should be looking, or maybe a cached build file I  
need to clear out. I tried clean and it didn't change anything.


Thanks,
Kevin


kevin, i remember having a similar issue during my upgrade.  i  
remember removing all of my WO related frameworks from my /System / 
User and /Library directories (OS X) AND removing all frameworks  
from my project.  after adding the proper frameworks to my OS and  
project i believe this issue disappeared.  i believe my ERJavaMail was  
loading an older framework somewhere on my disk?!


hth,
./james





___
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/jameslist%40primax.com

This email sent to jamesl...@primax.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Test, please ignore

2009-01-06 Thread Cheong Hee (Datasonic)
I have not received any emails for since 1/1/2009.  This is just a test to 
see if the message does arrive at the list.


Cheers

Cheong Hee 



___
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 arch...@mail-archive.com


Re: [WOCommunity] WO Marketplace Survey: last reminder

2009-01-06 Thread Lachlan Deck
Possibly better to run the survey at a different time (late Jan or  
early Feb for example)


On 02/01/2009, at 5:46 AM, Pascal Robert wrote:


For the 2008 results? Not yet, we only have 54 answers so far :-/


Hi Pascal,

Is it yet possible to view the survey results online?

Regards, Kieran


On Dec 30, 2008, at 2:48 AM, Pascal Robert wrote:



Le 08-12-30 à 02:33, Lachlan Deck a écrit :


Hi Pascal,

On 13/12/2007, at 12:19 AM, Pascal Robert wrote:


the WebObjects Marketplace Survey is still open until December 21.

http://www.surveymonkey.com/s.aspx?sm=o4viLY256ygbySBVNO7a_2fQ_3d_3d


Sorry I missed out -- any extension?

with regards,


That's a really old one :-) The 2008 surveys are at :

http://www.survs.com/survey?id=L36BOZ2Uchannel=5NX4RN72Z1

and

http://www.survs.com/survey?id=O4OE9GEQchannel=X1VSZU6HFV


---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
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 kieran_li...@mac.com





---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
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/lachlan.deck%40gmail.com

This email sent to lachlan.d...@gmail.com


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 arch...@mail-archive.com


Re: ERXEC.newEditingContext() access

2009-01-06 Thread Paul Hoadley

On 02/01/2009, at 12:03 PM, Theodore Petrosky wrote:

ok... I am experimenting with the ajax examples and I added the  
UpdateDisplayGroup to my app (with alterations). I am populating the  
list with a db query:


categoryList =  
Category.fetchAllCategories(ERXEC.newEditingContext(), sortOrderings);


EOEditingContext ec = ERXEC.newEditingContext();
categoryList = Category.fetchAllCategories(ec, sortOrderings);


then:

dg = new WODisplayGroup();
dg.setObjectArray(categoryList);
dg.setNumberOfObjectsPerBatch(20);

I want to access the editingContext and save the changes from the  
save dialog. What I want is something like this in the save function:


dg.selectedObject().editingContext().saveChanges();


ec.saveChanges();

I am at a loss as to how to access the editingContext when I use  
ERXEC.newEditingContext().


Assigning it to a local variable will certainly give you access to the  
EC you're passing to fetchAllCategories() above.  Does that solve your  
problem?



--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


___
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 arch...@mail-archive.com


Re: Removing = etc. from the drop down in D2W search

2009-01-06 Thread Guido Neitzer

On 02.01.2009, at 10:49, Kamal D Shah wrote:

When D2W generates a search page, for a String attribute, it  
generates a drop down that has things like 'starts with', 'is',  
'contains' etc. but they also have things like , , = which do not  
make sense for strings.


How do I remove these?


E.g. in your rules:

pageConfiguration = QueryMyEntity = qualifierOperators = (starts  
with)


cug
___
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 arch...@mail-archive.com


Re: $parent.method binding error in eclipse

2009-01-06 Thread Guido Neitzer

On 04.01.2009, at 19:55, Yung-Luen Lan wrote:


I have a template component with a such line:

wo:if condition = $parent.authorized

which calls the authorized() method of the parent component.

However, eclipse always display an error saying there is no key
'authorized' for the keypath 'parent' in my class.
How do I make the error message disappear? Thanks.


Make a getter/setter pair for parent:

public ParentClass parent () {
return parent;
}

public void setParent (ParentClass newParent) {
parent = newParent;
}

You probably have parent as a protected ivar. I tend to name the vars  
_parent and use only getters and setters.


cug
___
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 arch...@mail-archive.com


D2W: Rules for the sub components of the EditRelationship page

2009-01-06 Thread Kamal D Shah

Hi,

The EditRelationship page has a list, query and select sub-components.  
What rules can I specify to modify the behavior of the sub components?


For example, I would like to specify the displayPropertyKeys of the  
list sub component. It currently shows up all the properties of the  
entity. I already have a rule that specifies the displayPropertyKeys  
of the entity when the task is 'list' but this does not seem to take  
effect when the list shows up inside the EditRelationship page.


Currently in the Select sub-component too, the browser that shows up  
shows the properties as a comma separated list of all the properties  
of the entity. I would just like to show one important field here.


I looked up the documentation and cannot seem to find information  
regarding this.


Thanks
Kamal
___
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 arch...@mail-archive.com


Re: PDF generator/converter

2009-01-06 Thread Kieran Kelleher

Look at the WOComponent API ..

you can call generateResponse() to get a WOResponse, and then call  
contentString() on the WOResponse to get the HTML.


The result may have relative URLs in which case you may have to grab  
the context (WOComponent.context()) and tell it to generate full  
URLs  WOContext._generateCompleteURLs.


BTW, it is very beneficial to really study the javadoc API for  
WOComponent, WOResponse, WORequest, WOMessage, WOContext . there  
is a lot of goodies in there ... and also some useful private methods  
that are worth looking at. Also check out Project WOnder's subclasses  
of some of these for more educational benefits ;-)


HTH, Kieran


On Jan 4, 2009, at 10:22 AM, Jeff Schmitz wrote:

I downloaded the example flying saucer stuff and got it to run, but  
I'm having trouble figuring out how to wrap this up in a component.   
Since I am generating a WOComponent  that I want to transform to a  
pdf, I'm unsure how to send that finished component (i.e. html file)  
to the pdf renderer for further processing.  Do I need to somehow  
write my WOComponent to a file where the renderer can see it?  Or is  
there a way to divert it to the renderer directly?  i.e. How can I  
get a serialized version of a WOComponent for further processing  
instead of just sending it back to the user?   Or am I off on the  
wrong path somehow?


Thanks,
Jeff
On Dec 11, 2008, at 3:57 AM, John Corrigan wrote:


On 10/12/2008, at 1:31 AM, Sherry Tirko wrote:


Hi All,

I'm wondering if anyone knows if there is a pdf generator out  
there for WO sites or even a converter for WO Components. I'd like  
to take a form and make a pdf version for printing.


Thanks,
Sherry



Another option may be The Flying Saucer Project - An XML/XHTML/ 
CSS 2.1 Renderer, 100% Java, open-source (LGPL).

http://xhtmlrenderer.dev.java.net/

This seems a little less known but I've had good success with it  
(no affiliation). Converts any XHTML + CSS 2.1 compliant input to  
other formats, usually PDF but apparently can do Swing no less.  
Passes ACID 2 and has some CSS 3 support. It uses iText internally  
for PDF output.


I'm using the latest pre-release without issue (R8pre2 as of Jan  
08). Make sure the input validates as XHTML (for the most part,  
it's not as strict as http://validator.w3.org/).


WebStart demo app:
https://xhtmlrenderer.dev.java.net/r7/demos.html

Fonts:
It needs to be told about custom fonts (ie. those not available in  
the JRE).


Example usage (with fonts):
As a starting point a small example project in plain Java is  
attached (see readme).



Sláinte
John


Example_FlyingSaucerXHTMLRenderer.tgz
___
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/jeffandmonica%40mac.com

This email sent to jeffandmon...@mac.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/kieran_lists%40mac.com

This email sent to kieran_li...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Not finding binding with $^ notation

2009-01-06 Thread Lachlan Deck

On 02/01/2009, at 4:35 PM, Sanford Selznick wrote:


I made it to tutorial 2.


Yay :-)

The binding described below is not found. Both PageWrapper and Main  
are in the same package.


-
PageWrapper.html:

titlewo:str value=$^title //title

-
PageWrapper.api (edited by eclipse/wolips):

?xml version=1.0 encoding=UTF-8?
wodefinitions
   wo class=PageWrapper.java wocomponentcontent=false

   binding name=title/
   validation message='title' is a required binding
   unbound name=title/
   /validation
   /wo
/wodefinitions


-
And then title is set in Main.html:

wo:PageWrapper title=Login Page
...
/wo:PageWrapper

If I change the first line to wo:PageWrapper, the error goes away.  
I do not understand why PageWrapper is not seeing its own binding.


-

When I run my app I'm getting this error:

takeValueForKey()]: attempt to assign value to unknown key: 'title'.  
This WOComponent does not have an instance variable of the name  
title or _title, nor a method of the name setTitle or _setTitle'  
object '' key 'title'


The error is telling you the problem. You've not got a setter for  
title in the PageWrapper component. You choices are:
a) do away with the carrot symbol and provide getter/setter methods in  
your components
b) override WOComponent#synchronizesVariablesWithBindings and return  
false (the default is true which requires a setter/getter for each  
key .. or, for those less inclined to proper encapsulation, a public  
variable)


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 arch...@mail-archive.com


Re: Reading a line at a time with NSData?

2009-01-06 Thread Timo Hoepfner

Hi,

try something like this:

NSData data = ...; // your existing NSData object

try {
	BufferedReader reader = new BufferedReader(new InputStreamReader 
(data.stream()));

try {
while (reader.ready()) {
String line = reader.readLine();
// process line
}
} finally {
reader.close();
}
} catch (IOException e) {
// handle exception
}

Timo

Am 05.01.2009 um 20:56 schrieb James Cicenia:


I have an NSData object. I am using the sample AJAXFileUpload
which gives me an NSData object. I  am reading in a tab delimited
text file and was wondering how do I read line per line.

Thanks
James Cicenia
___
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/th-dev% 
40onlinehome.de


This email sent to th-...@onlinehome.de


___
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 arch...@mail-archive.com


Re: ERXEC.newEditingContext() access

2009-01-06 Thread Theodore Petrosky
Yes, thanks, I continued googling and found a wiki that described this.

Weird I think the mailing list was down for about a week. Or it's just my 
imagination.

Ted


Message: 15
Date: Tue, 6 Jan 2009 17:50:52 +1030
From: Paul Hoadley pa...@logicsquad.net
Subject: Re: ERXEC.newEditingContext() access
To: tedp...@yahoo.com
Cc: webobjects-dev@lists.apple.com
Message-ID: cc67c231-fe5f-4922-abc2-fb4d5a007...@logicsquad.net
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On 02/01/2009, at 12:03 PM, Theodore Petrosky wrote:

 ok... I am experimenting with the ajax examples and I added the  
 UpdateDisplayGroup to my app (with alterations). I am populating the  
 list with a db query:

 categoryList =  
 Category.fetchAllCategories(ERXEC.newEditingContext(), sortOrderings);

EOEditingContext ec = ERXEC.newEditingContext();
categoryList = Category.fetchAllCategories(ec, sortOrderings);

 then:

 dg = new WODisplayGroup();
 dg.setObjectArray(categoryList);
 dg.setNumberOfObjectsPerBatch(20);

 I want to access the editingContext and save the changes from the  
 save dialog. What I want is something like this in the save function:

 dg.selectedObject().editingContext().saveChanges();

ec.saveChanges();

 I am at a loss as to how to access the editingContext when I use  
 ERXEC.newEditingContext().

Assigning it to a local variable will certainly give you access to the  
EC you're passing to fetchAllCategories() above.  Does that solve your  
problem?


-- 
Paul.




  
 ___
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 arch...@mail-archive.com


Re: Reading a line at a time with NSData?

2009-01-06 Thread Kieran Kelleher

Use a java.io.BufferReader.readLine()

On Jan 5, 2009, at 2:56 PM, James Cicenia wrote:


I have an NSData object. I am using the sample AJAXFileUpload
which gives me an NSData object. I  am reading in a tab delimited
text file and was wondering how do I read line per line.

Thanks
James Cicenia
___
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 kieran_li...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Reading a line at a time with NSData?

2009-01-06 Thread Hugi Thordarson

I'm lazy so I would usually do something like this:



NSData yourNSData = whateverYourDataIs();
String encoding = whatEverYourEncodingIs();

try {
String text = new String( yourNSData.bytes(), encoding );
		NSArrayString lines = NSArray.componentsSeparatedByString( text,  
\n );


for( String line : lines ) {
doStuffToYour( line );
}
}
catch( UnsupportedEncodingException e ) {
logger.error( Don't you know your encodings?, e );
}



You could also use readLine() from an InputStreamReader wrapped in a  
BufferedReader to read the ByteArrayInputStream returned  
NSData.stream(), but I wouldn't go that way unless you need to  
optimize memory use and performance. It's more complex, and I've had  
horrifying problems with encodings when using the java.io.Reader-stuff  
(apparenty the java-designers live an breathe ASCII).


But there's an example here if you want to go that way: 
http://www.cafeaulait.org/slides/sd2000west/javaio/54.html

Cheers,
- Hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/


On 5.1.2009, at 19:56, James Cicenia wrote:


I have an NSData object. I am using the sample AJAXFileUpload
which gives me an NSData object. I  am reading in a tab delimited
text file and was wondering how do I read line per line.

Thanks
James Cicenia
___
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/hugi%40karlmenn.is

This email sent to h...@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 arch...@mail-archive.com

Re: $parent.method binding error in eclipse

2009-01-06 Thread Lachlan Deck

On 06/01/2009, at 8:23 PM, Guido Neitzer wrote:


On 04.01.2009, at 19:55, Yung-Luen Lan wrote:


I have a template component with a such line:

wo:if condition = $parent.authorized

which calls the authorized() method of the parent component.

However, eclipse always display an error saying there is no key
'authorized' for the keypath 'parent' in my class.
How do I make the error message disappear? Thanks.


Make a getter/setter pair for parent:

public ParentClass parent () {
return parent;
}


That won't compile. WOComponent#parent is defined as
public WOComponent parent();

and you cannot change the signature in a subclass.

However, you can do this:
public ParentClass myParent() {
return (ParentClass)parent();
}

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 arch...@mail-archive.com


WebObjects jar frameworks and classpaths

2009-01-06 Thread John Pollard

Hi List,

A bit off topic, but I am struggling to make sense of this. Simply put  
I want to understand why I can't put a couple of jars into a WO  
framework and have the code still work as it does when the same jars  
are in /Library/Java/Extensions.


So here is what I did:

Created a new WebObjects framework.
Manually moved two jar files (rome-1.0RC1.jar and jdom.jar) out of / 
Library/Java/Extensions into the new framework project's /Libraries  
sub folder
In Java Build Path properties, Libraries tab, Add Jars.. to add them  
in, then in the Order and Export tab tick them

In the app project, add the new framework as a dependency

Eclipse shows no compile time problems, so why the runtime error:
[java.lang.NoClassDefFoundError] com/sun/syndication/io/ModuleGenerator

I will be very grateful for any pointers to help me solve this one; in  
particular why/when Eclipse is happy at compile time, but actually the  
classes are not found when run. The class that is not found is  
definitely in the rome jar.


Thanks
John
___
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 arch...@mail-archive.com


Re: D2W: Rules for the sub components of the EditRelationship page

2009-01-06 Thread Guido Neitzer

On 06.01.2009, at 12:41, Kamal D Shah wrote:

The EditRelationship page has a list, query and select sub- 
components. What rules can I specify to modify the behavior of the  
sub components?


For example, I would like to specify the displayPropertyKeys of the  
list sub component. It currently shows up all the properties of the  
entity. I already have a rule that specifies the displayPropertyKeys  
of the entity when the task is 'list' but this does not seem to take  
effect when the list shows up inside the EditRelationship page.


Currently in the Select sub-component too, the browser that shows up  
shows the properties as a comma separated list of all the properties  
of the entity. I would just like to show one important field here.


I looked up the documentation and cannot seem to find information  
regarding this.


I never used this page as I found it absolutely horrible. For editing  
relationships I normally use either some of my own components or some  
of the property level components. Works fine here.


Btw: I think you wrote, that you are using D2W without Wonder. You  
know, that you will run into problems with that, right (broken editing  
contexts, dead locks, ...)?


cug
___
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 arch...@mail-archive.com


Re: Using NULLS FIRST/LAST on sort orderings

2009-01-06 Thread Miguel Arroz

Hi!

  I thought about it, but from what I understood, I would also have  
to touch the DB plugins to generate the correct SQL code, and it would  
become very dirty. How did you do yours?


  Yours

Miguel Arroz

On 2009/01/06, at 14:53, James Cicenia wrote:


I made a custom comparator to do this.

James

On Dec 31, 2008, at 10:36 AM, Miguel Arroz wrote:


Hi!

Is there a way to add NULLS FIRST or NULLS LAST to a sort ordering?

Yours

Miguel Arroz

...
http://www.survs.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/james%40jimijon.com

This email sent to ja...@jimijon.com






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 arch...@mail-archive.com

Re: 'object' not getting initialized in D2WCustomComponent sub class

2009-01-06 Thread Ramsey Lee Gurley
The values for object and key should be getting passed to the  
component by your page.  Making them public might get them to  
synchronize...  If you just bind your string value to ^object.name in  
the wod file, I think it should work for you.  If you really need to  
do it in the java file, you can try loading your object value with  
valueForBinding(object)


Ramsey


On Jan 2, 2009, at 4:46 AM, Kamal D Shah wrote:


Hi all,

I'm trying to build a property level custom component in my D2W  
application (not using Wonder). For testing, I put a simple table  
with a WOString in the component and in my Java file looks like this:


EOEnterpriseObject object;
String key;

public DBWidgets(WOContext context) {
super(context);
}

public String value(){
return (String)object.valueForKey(name);
}

The WOString's value is bound to value. When I access the component,  
I get a null pointer exception when it tries to render 'value'  
because object evaluates to null.


In my rules, I set two rules - one to say - use a D2WCustomComponent  
for the particular property and the second to specify the particular  
component (DBWidgets) that I am building.


My actual usage is more complicated but since I was getting this  
problem, I decided to try it in steps and this is the same problem I  
have in my component too.


Is there anything else I need to do to be able to use my property  
level component?


Thanks a ton...
Kamal
___
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/rgurley 
%40mac.com


This email sent to rgur...@mac.com




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 arch...@mail-archive.com

Re: D2W: Rules for the sub components of the EditRelationship page

2009-01-06 Thread Ramsey Lee Gurley


On Jan 6, 2009, at 6:41 AM, Kamal D Shah wrote:


Hi,

The EditRelationship page has a list, query and select sub- 
components. What rules can I specify to modify the behavior of the  
sub components?


For example, I would like to specify the displayPropertyKeys of the  
list sub component. It currently shows up all the properties of the  
entity. I already have a rule that specifies the displayPropertyKeys  
of the entity when the task is 'list' but this does not seem to take  
effect when the list shows up inside the EditRelationship page.


The task is 'select' inside an EditRelationship page.




Currently in the Select sub-component too, the browser that shows up  
shows the properties as a comma separated list of all the properties  
of the entity. I would just like to show one important field here.


I looked up the documentation and cannot seem to find information  
regarding this.


Thanks
Kamal
___
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/rgurley 
%40mac.com


This email sent to rgur...@mac.com




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 arch...@mail-archive.com

Re: Using NULLS FIRST/LAST on sort orderings

2009-01-06 Thread James Cicenia
I did mine in memory. Is that a possibility for you? If so, I can find/ 
send you my comparator.



On Jan 6, 2009, at 8:55 AM, Miguel Arroz wrote:


Hi!

 I thought about it, but from what I understood, I would also have  
to touch the DB plugins to generate the correct SQL code, and it  
would become very dirty. How did you do yours?


 Yours

Miguel Arroz

On 2009/01/06, at 14:53, James Cicenia wrote:


I made a custom comparator to do this.

James

On Dec 31, 2008, at 10:36 AM, Miguel Arroz wrote:


Hi!

Is there a way to add NULLS FIRST or NULLS LAST to a sort ordering?

Yours

Miguel Arroz

...
http://www.survs.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/james%40jimijon.com

This email sent to ja...@jimijon.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Using NULLS FIRST/LAST on sort orderings

2009-01-06 Thread Miguel Arroz

Hi!

  Nop. Must be in the DB, it's too many data to handle in memory (the  
table that shows it is paged).


  Yours

Miguel Arroz

On 2009/01/06, at 17:26, James Cicenia wrote:

I did mine in memory. Is that a possibility for you? If so, I can  
find/send you my comparator.



On Jan 6, 2009, at 8:55 AM, Miguel Arroz wrote:


Hi!

I thought about it, but from what I understood, I would also have  
to touch the DB plugins to generate the correct SQL code, and it  
would become very dirty. How did you do yours?


Yours

Miguel Arroz

On 2009/01/06, at 14:53, James Cicenia wrote:


I made a custom comparator to do this.

James

On Dec 31, 2008, at 10:36 AM, Miguel Arroz wrote:


Hi!

Is there a way to add NULLS FIRST or NULLS LAST to a sort ordering?

Yours

Miguel Arroz

...
http://www.survs.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/james%40jimijon.com

This email sent to ja...@jimijon.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/arroz%40guiamac.com

This email sent to ar...@guiamac.com




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 arch...@mail-archive.com

Re: ERChangeNotificationJMS

2009-01-06 Thread Andrew Lindesay

Hello Jon;

If you are going to use a messaging server, I would suggest that you  
use ActiveMQ;


http://activemq.apache.org/

...instead of OpenJMS.

cheers.

com.webobjects.foundation.NSForwardException  
[java.lang.NoClassDefFoundError] org/exolab/core/util/URI 
$MalformedURIException:java.lang.NoClassDefFoundError: org/exolab/ 
core/util/URI$MalformedURIException


___
Andrew Lindesay
www.lindesay.co.nz

___
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 arch...@mail-archive.com


Re: Why is this happening?

2009-01-06 Thread Mersida Kurti
Ok, so I think I've figured out what the problem is NOT.  It does not seem to 
be the code, but rather then set up in CommuniGate Pro.  The glitch is that we 
have added another server to talk to cgp.  My question is: Does this server 
needs to be added somewhere in the interface in CGP, so that it recognizes the 
server that it is trying to talk to?

Thanks,
Mersida

--- On Tue, 12/23/08, Pascal Robert prob...@macti.ca wrote:

From: Pascal Robert prob...@macti.ca
Subject: Re: Why is this happening?
To: Mersida Kurti muc...@yahoo.com
Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
Date: Tuesday, December 23, 2008, 10:37 AM

To change the log level, go to the CGP admin interface 
(http://host.domain.com:8010) - Settings - Services - PWD.

 This is what is in line 161:
 
   if(secureLogin  prompt.indexOf('') 1 )
 
 Why would this be causing issues?  I have updated to the latest version of 
 CGPro.
 
 Also, I can't find where you turn the logs on for CGP to all info...where is 
 this PWD service? Maybe I'm missing something here...
 
 Thanks,
 Mersida
 
 --- On Mon, 12/22/08, Lachlan Deck lachlan.d...@gmail.com wrote:
 
 From: Lachlan Deck lachlan.d...@gmail.com
 Subject: Re: Why is this happening?
 To: Mersida Kurti muc...@yahoo.com
 Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Date: Monday, December 22, 2008, 3:32 PM
 
 On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:
 
  So we have this java code, which we extend from the CGProCLI.  The code was 
  written in Java 1.4.2 and lately we switched it to Java 1.5 and the new 
  webobjects.  The code works fine in 1.4.2.  It builds and runs fine until a 
  certain point with Java 1.5 and new webobjects, and I cannot figure out why 
  it is giving me a null pointer exception.  Here's what I'm looking at:
 
  ...
  public class OISCLI extends CGProCLI {
 
  ...
      public OISCLI() throws CGProException {
          super(host.domain.com,
                  ,
                  postmas...@domain.com,
                  password);
 
          port = Constants.port_mail_server;
          adminUserid = Constants.USER_POSTMASTER + domain();
          password = (String)Application.password();
          serverAddress = Constants.SERVER_MAIL;
 
  .cont
      }
 
  Here's the error message stack:
  I don't get it why it is nulling it out when I'm specifically telling it 
  what the password is...Any chance that this CGProCLI does not work with the 
  new webobjects...Anyone seen this before?
 
  Thank you in advance!
  Mersida
 
  2008-12-22 14:57:10 EST] main Waiting for requests...
  [2008-12-22 14:57:33 EST] WorkerThread6 java.lang.NullPointerException
      at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
      at com.stalker.CGPro.CGProCLI.init(CGProCLI.java:65)
      at blah.blah.common.OISCLI.init(OISCLI.java:20)
 
 The question is what is CGProCLI.java:161 doing?
 If it's calling some method called password() which you've not set yet then 
 that'll be your problem.
 
 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/probert%40macti.ca
 
 This email sent to prob...@macti.ca


---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada




   ___
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 arch...@mail-archive.com

Re: Why is this happening?

2009-01-06 Thread Pascal Robert

So you have a CGP server in front on another CGP server??

Ok, so I think I've figured out what the problem is NOT.  It does  
not seem to be the code, but rather then set up in CommuniGate Pro.   
The glitch is that we have added another server to talk to cgp.  My  
question is: Does this server needs to be added somewhere in the  
interface in CGP, so that it recognizes the server that it is trying  
to talk to?


Thanks,
Mersida

--- On Tue, 12/23/08, Pascal Robert prob...@macti.ca wrote:

From: Pascal Robert prob...@macti.ca
Subject: Re: Why is this happening?
To: Mersida Kurti muc...@yahoo.com
Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
Date: Tuesday, December 23, 2008, 10:37 AM

To change the log level, go to the CGP admin interface (http://host.domain.com:8010 
) - Settings - Services - PWD.


 This is what is in line 161:

   if(secureLogin  prompt.indexOf('') 1 )

 Why would this be causing issues?  I have updated to the latest  
version of CGPro.


 Also, I can't find where you turn the logs on for CGP to all  
info...where is this PWD service? Maybe I'm missing something here...


 Thanks,
 Mersida

 --- On Mon, 12/22/08, Lachlan Deck lachlan.d...@gmail.com wrote:

 From: Lachlan Deck lachlan.d...@gmail.com
 Subject: Re: Why is this happening?
 To: Mersida Kurti muc...@yahoo.com
 Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Date: Monday, December 22, 2008, 3:32 PM

 On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:

  So we have this java code, which we extend from the CGProCLI.   
The code was written in Java 1.4.2 and lately we switched it to Java  
1.5 and the new webobjects.  The code works fine in 1.4.2.  It  
builds and runs fine until a certain point with Java 1.5 and new  
webobjects, and I cannot figure out why it is giving me a null  
pointer exception.  Here's what I'm looking at:

 
  ...
  public class OISCLI extends CGProCLI {
 
  ...
  public OISCLI() throws CGProException {
  super(host.domain.com,
  ,
  postmas...@domain.com,
  password);
 
  port = Constants.port_mail_server;
  adminUserid = Constants.USER_POSTMASTER + domain();
  password = (String)Application.password();
  serverAddress = Constants.SERVER_MAIL;
 
  .cont
  }
 
  Here's the error message stack:
  I don't get it why it is nulling it out when I'm specifically  
telling it what the password is...Any chance that this CGProCLI does  
not work with the new webobjects...Anyone seen this before?

 
  Thank you in advance!
  Mersida
 
  2008-12-22 14:57:10 EST] main Waiting for requests...
  [2008-12-22 14:57:33 EST] WorkerThread6  
java.lang.NullPointerException

  at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
  at com.stalker.CGPro.CGProCLI.init(CGProCLI.java:65)
  at blah.blah.common.OISCLI.init(OISCLI.java:20)

 The question is what is CGProCLI.java:161 doing?
 If it's calling some method called password() which you've not set  
yet then that'll be your problem.


 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/probert%40macti.ca

 This email sent to prob...@macti.ca


---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada





---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
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 arch...@mail-archive.com


Re: ERChangeNotificationJMS

2009-01-06 Thread Dov Rosenberg
I would avoid using the JMS change sync stuff and move to the project wonder
jgroups version. We just migrated away from the JMS stuff - it caused us a
lot of hanging issues under load.

OpenJMS is a dead project. Use ActiveMQ

Dov Rosenberg



On 1/6/09 2:18 PM, Andrew Lindesay a...@lindesay.co.nz wrote:

 Hello Jon;
 
 If you are going to use a messaging server, I would suggest that you
 use ActiveMQ;
 
 http://activemq.apache.org/
 
 ...instead of OpenJMS.
 
 cheers.
 
 com.webobjects.foundation.NSForwardException
 [java.lang.NoClassDefFoundError] org/exolab/core/util/URI
 $MalformedURIException:java.lang.NoClassDefFoundError: org/exolab/
 core/util/URI$MalformedURIException
 
 ___
 Andrew Lindesay
 www.lindesay.co.nz
 
  ___
 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/drosenberg%40inquira.com
 
 This email sent to drosenb...@inquira.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: searching for WebObjects info with google alerts?

2009-01-06 Thread Fabian Peters

Hi Ray,

Did you try -inurl:webobjects? http://www.google.com/help/operators.html 



HTH, Fabian

Am 01.01.2009 um 23:35 schrieb Ray Kiddy:



Hey -

I have had a google alert set up for a while to tell me WO stuff  
pops up on the net. It is surprising how difficult it is to get a  
search that does not return stuff which is merely published via  
WebObjects and is not about WebObjects. It seems kind of silly that  
I cannot tell Google to look in the content for a word but to not  
look in the URL for the word. Maybe there is a way to do this, but I  
have not found it.


I really, really, really want to not get results like:


Runescape Barrows Trials - Challenge 2: Fight Caves, No Food or ...
Naughty By Nature on iTunes - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=22232 
. Del Tha Funky Homosapien on iTunes - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=153070 
. ———– ...


I just added the itunes and woa exclusion terms in the string  
below.


Does anyone else do this? What search string do you use? I am trying  
to eliminate all those false positives but I am probably filtering  
too much. But I cannot think of how to get better results. Anyway,  
here is my search string. Let me know if you have something that you  
think is better.


cheers - ray

I type this in for the search terms in a Google Alert.

	WebObjects -aspfree.com -itunes.apple.com -humordatabase.com - 
phobos.apple.com -deimos.apple.com -.woa  
___

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/lists.fabian%40e-lumo.com

This email sent to lists.fab...@e-lumo.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[OT] Java source licensing issue...

2009-01-06 Thread Stamenkovic Florijan

Hi all,


Going way off topic here, but I know there are a few people here who  
know their way about licenses, so I figured I'd ask.


I am working on making a java.util.List implementation that would have  
better overall performance (random index lookup, random index  
insertions / removals) targeted at large data sets (10,000+ elements).  
Essentially, it would be a doubly linked list (a beefed up  
java.util.LinkedList), with the aim of course of increasing the speed  
of it's element-for-index lookups.


So, the question is: Can I just copy the source of  
java.util.LinkedList and start from there, or do I have to start from  
scratch? Is that an infringement of the license under which the Java  
source is released? The idea to release this as a part of JBND, which  
has a very liberal (improvised) license.


Thanks for any pointers,
F
___
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 arch...@mail-archive.com


Re: Why is this happening?

2009-01-06 Thread Mersida Kurti


--- On Tue, 1/6/09, Mersida Kurti muc...@yahoo.com wrote:

From: Mersida Kurti muc...@yahoo.com
Subject: Re: Why is this happening?
To: Pascal Robert prob...@macti.ca
Date: Tuesday, January 6, 2009, 2:55 PM

no, we have a machine where the java application that includes the 
cgprocli.jar. this is a leopard server.  and then we have a mail server where 
CommuniGate Pro software is installed. this is a tiger machine.  That's where I 
finally found where the logs levels can be changed, but I'm all new to this.
Thank you so much for your help.
Mersida

--- On Tue, 1/6/09, Pascal Robert prob...@macti.ca wrote:

From: Pascal Robert prob...@macti.ca
Subject: Re: Why is this happening?
To: Mersida Kurti muc...@yahoo.com
Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
Date: Tuesday, January 6, 2009, 2:31 PM

So you have a CGP server in front on another CGP
 server??

 Ok, so I think I've figured out what the problem is NOT.  It does not seem to 
 be the code, but rather then set up in CommuniGate Pro.  The glitch is that 
 we have added another server to talk to cgp.  My question is: Does this 
 server needs to be added somewhere in the interface in CGP, so that it 
 recognizes the server that it is trying to talk to?
 
 Thanks,
 Mersida
 
 --- On Tue, 12/23/08, Pascal Robert prob...@macti.ca wrote:
 
 From: Pascal Robert prob...@macti.ca
 Subject: Re: Why is this happening?
 To: Mersida Kurti muc...@yahoo.com
 Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Date: Tuesday, December 23, 2008, 10:37 AM
 
 To change the log level, go to the CGP admin interface 
 (http://host.domain.com:8010) - Settings - Services - PWD.
 
  This is what is in line 161:
 
    if(secureLogin  prompt.indexOf('') 1 )
 
  Why would this be causing issues?  I have updated to the latest version of 
  CGPro.
 
  Also, I can't find where you turn the logs on for CGP to all info...where 
  is this PWD service? Maybe I'm missing something here...
 
  Thanks,
  Mersida
 
  --- On Mon, 12/22/08, Lachlan Deck lachlan.d...@gmail.com wrote:
 
  From: Lachlan Deck lachlan.d...@gmail.com
  Subject: Re: Why is this happening?
  To: Mersida Kurti muc...@yahoo.com
  Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
  Date: Monday, December 22, 2008, 3:32 PM
 
  On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:
 
   So we have this java code, which we extend from the CGProCLI.  The code 
   was written in Java 1.4.2 and lately we switched it to Java 1.5
 and the new webobjects.  The code works fine in 1.4.2.  It builds and runs 
fine until a certain point with Java 1.5 and new webobjects, and I cannot 
figure out why it is giving me a null pointer exception.  Here's what I'm 
looking at:
  
   ...
   public class OISCLI extends CGProCLI {
  
   ...
       public OISCLI() throws CGProException {
           super(host.domain.com,
                   ,
                   postmas...@domain.com,
                   password);
 
 
           port = Constants.port_mail_server;
           adminUserid = Constants.USER_POSTMASTER + domain();
           password = (String)Application.password();
           serverAddress = Constants.SERVER_MAIL;
  
   .cont
       }
  
   Here's the error message stack:
   I don't get it why it is nulling it out when I'm specifically telling it 
   what the password is...Any chance that this CGProCLI does not work with 
   the new webobjects...Anyone seen this before?
  
   Thank you in advance!
   Mersida
  
   2008-12-22 14:57:10 EST] main Waiting for requests...
  
 [2008-12-22 14:57:33 EST] WorkerThread6 java.lang.NullPointerException
       at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
       at com.stalker.CGPro.CGProCLI.init(CGProCLI.java:65)
       at blah.blah.common.OISCLI.init(OISCLI.java:20)
 
  The question is what is CGProCLI.java:161 doing?
  If it's calling some method called password() which you've not set yet then 
  that'll be your problem.
 
  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/probert%40macti.ca
 
  This email sent to prob...@macti.ca
 
 
 ---
 Pascal Robert
 
 http://www.macti.ca
 http://www.aircourriel.com
 http://www.linkedin.com/in/macti
 
 Skype: MacTICanada
 AIM/iChat : MacTICanada
 

 


---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada




  


   ___
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:

Re: ERChangeNotificationJMS

2009-01-06 Thread Jon Nolan

Andrew Lindesay wrote:
If you are going to use a messaging server, I would suggest that you 
use ActiveMQ;


http://activemq.apache.org/

...instead of OpenJMS.


Andrew,

ActiveMQ is what I have at my disposal.  What are the initial steps in 
using same?  All I've done so far is simply add the available 
ERChangeNotificationJMS framework to my project and it threw the 
exception.  I have no experience with JMS or other messaging systems.  
How do I get started with an ActiveMQ implementation?  Is there 
something precooked?


Thanks,
Jon
___
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 arch...@mail-archive.com


Re: ERChangeNotificationJMS

2009-01-06 Thread Andrew Lindesay

Hello Jon;

Thanks for the email.  Sorry; it is a bit much for me to jot-out in an  
email and I use my own (very similar) change notification  
infrastructure rather than the system in PW.


You need to include the following JAR files in the WOA for use with  
ActiveMQ;


activemq-core-5.1.0.jar
activemq-geronimo-j2ee-management_1.0_spec-1.0.jar
jms.jar

You will find those in the ActiveMQ distribution.  You then need to  
configure your client (change notification) system with the JNDI  
connection dictionary information for communicating with the ActiveMQ  
server.  For example;


org.apache.activemq.jndi.ActiveMQInitialContextFactory
	tcp://fooo:61616? 
maxReconnectAttempts 
= 
10wireFormat.maxInactivityDuration=0jms.prefetchPolicy.queuePrefetch=1

ConnectionFactory
dynamicTopics/foo-bar

Hope this helps.  I tend to use SwiftMQ where there is likely to be  
any serious volume;


http://www.swiftmq.com/

cheers.

If you are going to use a messaging server, I would suggest that  
you use ActiveMQ;


   http://activemq.apache.org/

...instead of OpenJMS.

...
ActiveMQ is what I have at my disposal.  What are the initial steps  
in using same?  All I've done so far is simply add the available  
ERChangeNotificationJMS framework to my project and it threw the  
exception.  I have no experience with JMS or other messaging  
systems.  How do I get started with an ActiveMQ implementation?  Is  
there something precooked?


___
Andrew Lindesay
www.lindesay.co.nz

___
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 arch...@mail-archive.com


Re: searching for WebObjects info with google alerts?

2009-01-06 Thread Kieran Kelleher

Try this search term:

-inurl:WebObjects -phobos.apple.com -itunes.apple.com WebObjects


On Jan 6, 2009, at 2:53 PM, Fabian Peters wrote:


Hi Ray,

Did you try -inurl:webobjects? http://www.google.com/help/operators.html 



HTH, Fabian

Am 01.01.2009 um 23:35 schrieb Ray Kiddy:



Hey -

I have had a google alert set up for a while to tell me WO stuff  
pops up on the net. It is surprising how difficult it is to get a  
search that does not return stuff which is merely published via  
WebObjects and is not about WebObjects. It seems kind of silly that  
I cannot tell Google to look in the content for a word but to not  
look in the URL for the word. Maybe there is a way to do this, but  
I have not found it.


I really, really, really want to not get results like:


Runescape Barrows Trials - Challenge 2: Fight Caves, No Food or ...
Naughty By Nature on iTunes - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=22232 
. Del Tha Funky Homosapien on iTunes - http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=153070 
. ———– ...


I just added the itunes and woa exclusion terms in the string  
below.


Does anyone else do this? What search string do you use? I am  
trying to eliminate all those false positives but I am probably  
filtering too much. But I cannot think of how to get better  
results. Anyway, here is my search string. Let me know if you have  
something that you think is better.


cheers - ray

I type this in for the search terms in a Google Alert.

	WebObjects -aspfree.com -itunes.apple.com -humordatabase.com - 
phobos.apple.com -deimos.apple.com -.woa  
___

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/lists.fabian%40e-lumo.com

This email sent to lists.fab...@e-lumo.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/kieran_lists%40mac.com

This email sent to kieran_li...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Why is this happening?

2009-01-06 Thread Pascal Robert
In that case, it should not be a problem to talk to CGP... Are you  
sure the PWD service is running on port  on the CGP server? This  
can be view by going to CGP'S admin interface - Settings - Services - 
 PWD - Listener. The default is 106, but if you running CGP on a  
Tiger Server machine, port 106 is also used by OS X Server, so most  
people change this port to something else. And host.domain.com is on  
your connection parameters is really the CGP server?


no, we have a machine where the java application that includes the  
cgprocli.jar. this is a leopard server.  and then we have a mail  
server where CommuniGate Pro software is installed. this is a tiger  
machine.  That's where I finally found where the logs levels can be  
changed, but I'm all new to this.

Thank you so much for your help.
Mersida

--- On Tue, 1/6/09, Pascal Robert prob...@macti.ca wrote:

From: Pascal Robert prob...@macti.ca
Subject: Re: Why is this happening?
To: Mersida Kurti muc...@yahoo.com
Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
Date: Tuesday, January 6, 2009, 2:31 PM

So you have a CGP server in front on another CGP server??

 Ok, so I think I've figured out what the problem is NOT.  It does  
not seem to be the code, but rather then set up in CommuniGate Pro.   
The glitch is that we have added another server to talk to cgp.  My  
question is: Does this server needs to be added somewhere in the  
interface in CGP, so that it recognizes the server that it is trying  
to talk to?


 Thanks,
 Mersida

 --- On Tue, 12/23/08, Pascal Robert prob...@macti.ca wrote:

 From: Pascal Robert prob...@macti.ca
 Subject: Re: Why is this happening?
 To: Mersida Kurti muc...@yahoo.com
 Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Date: Tuesday, December 23, 2008, 10:37 AM

 To change the log level, go to the CGP admin interface (http://host.domain.com:8010 
) - Settings - Services - PWD.


  This is what is in line 161:
 
if(secureLogin  prompt.indexOf('') 1 )
 
  Why would this be causing issues?  I have updated to the latest  
version of CGPro.

 
  Also, I can't find where you turn the logs on for CGP to all  
info...where is this PWD service? Maybe I'm missing something here...

 
  Thanks,
  Mersida
 
  --- On Mon, 12/22/08, Lachlan Deck lachlan.d...@gmail.com wrote:
 
  From: Lachlan Deck lachlan.d...@gmail.com
  Subject: Re: Why is this happening?
  To: Mersida Kurti muc...@yahoo.com
  Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
  Date: Monday, December 22, 2008, 3:32 PM
 
  On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:
 
   So we have this java code, which we extend from the CGProCLI.   
The code was written in Java 1.4.2 and lately we switched it to Java  
1.5 and the new webobjects.  The code works fine in 1.4.2.  It  
builds and runs fine until a certain point with Java 1.5 and new  
webobjects, and I cannot figure out why it is giving me a null  
pointer exception.  Here's what I'm looking at:

  
   ...
   public class OISCLI extends CGProCLI {
  
   ...
   public OISCLI() throws CGProException {
   super(host.domain.com,
   ,
   postmas...@domain.com,
   password);
  
   port = Constants.port_mail_server;
   adminUserid = Constants.USER_POSTMASTER + domain();
   password = (String)Application.password();
   serverAddress = Constants.SERVER_MAIL;
  
   .cont
   }
  
   Here's the error message stack:
   I don't get it why it is nulling it out when I'm specifically  
telling it what the password is...Any chance that this CGProCLI does  
not work with the new webobjects...Anyone seen this before?

  
   Thank you in advance!
   Mersida
  
   2008-12-22 14:57:10 EST] main Waiting for requests...
   [2008-12-22 14:57:33 EST] WorkerThread6  
java.lang.NullPointerException

   at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
   at com.stalker.CGPro.CGProCLI.init(CGProCLI.java:65)
   at blah.blah.common.OISCLI.init(OISCLI.java:20)
 
  The question is what is CGProCLI.java:161 doing?
  If it's calling some method called password() which you've not  
set yet then that'll be your problem.

 
  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/probert%40macti.ca
 
  This email sent to prob...@macti.ca


 ---
 Pascal Robert

 http://www.macti.ca
 http://www.aircourriel.com
 http://www.linkedin.com/in/macti

 Skype: MacTICanada
 AIM/iChat : MacTICanada




---
Pascal Robert

http://www.macti.ca
http://www.aircourriel.com
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : 

[Solved] Re: Why is this happening?

2009-01-06 Thread Mersida Kurti
Hi,

Thanks for all your help.  We resolved the problem.  Turns out we needed to add 
a filter for the new server to access the mail server.  

Thanks again,
Mersida

--- On Tue, 1/6/09, Pascal Robert prob...@macti.ca wrote:

From: Pascal Robert prob...@macti.ca
Subject: Re: Why is this happening?
To: Mersida Kurti muc...@yahoo.com
Cc: WebObjects Development webobjects-dev@lists.apple.com
Date: Tuesday, January 6, 2009, 3:48 PM

In that case, it should not be a problem to talk to CGP... Are you sure the PWD 
service is running on port  on the CGP server? This can be view by going to 
CGP'S admin interface - Settings - Services - PWD - Listener. The default 
is 106, but if you running CGP on a Tiger Server machine, port 106 is also used 
by OS X Server, so most people change this port to something else. And 
host.domain.com is on your connection parameters is really the CGP server?

 no, we have a machine where the java application that includes the 
 cgprocli.jar. this is a leopard server.  and then we have a mail server where 
 CommuniGate Pro software is installed. this is a tiger machine.  That's where 
 I finally found where the logs levels can be changed, but I'm all new to this.
 Thank you so much for your help.
 Mersida
 
 --- On Tue, 1/6/09, Pascal Robert prob...@macti.ca wrote:
 
 From: Pascal Robert prob...@macti.ca
 Subject: Re: Why is this happening?
 To: Mersida Kurti muc...@yahoo.com
 Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Date: Tuesday, January 6, 2009, 2:31 PM
 
 So you have a CGP server in front on another CGP server??
 
  Ok, so I think I've figured out what the problem is NOT.  It does not seem 
  to be the code, but rather then set up in CommuniGate Pro.  The glitch is 
  that we have added another server to talk to cgp.  My question is: Does 
  this server needs to be added somewhere in the interface in CGP, so that it 
  recognizes the server that it is trying to talk to?
 
  Thanks,
  Mersida
 
  --- On Tue, 12/23/08, Pascal Robert prob...@macti.ca wrote:
 
  From: Pascal Robert prob...@macti.ca
  Subject: Re: Why is this happening?
  To: Mersida Kurti muc...@yahoo.com
  Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
  Date: Tuesday, December 23, 2008, 10:37 AM
 
  To change the log level, go to the CGP admin interface 
  (http://host.domain.com:8010) - Settings - Services - PWD.
 
   This is what is in line 161:
  
     if(secureLogin  prompt.indexOf('') 1 )
  
   Why would this be causing issues?  I have updated to the latest version 
   of CGPro.
  
   Also, I can't find where you turn the logs on for CGP to all info...where 
   is this PWD service? Maybe I'm missing something here...
  
   Thanks,
   Mersida
  
   --- On Mon, 12/22/08, Lachlan Deck lachlan.d...@gmail.com wrote:
  
   From: Lachlan Deck lachlan.d...@gmail.com
   Subject: Re: Why is this happening?
   To: Mersida Kurti muc...@yahoo.com
   Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com
   Date: Monday, December 22, 2008, 3:32 PM
  
   On 23/12/2008, at 7:03 AM, Mersida Kurti wrote:
  
So we have this java code, which we extend from the CGProCLI.  The code 
was written in Java 1.4.2 and lately we switched it to Java 1.5 and the 
new webobjects.  The code works fine in 1.4.2.  It builds and runs fine 
until a certain point with Java 1.5 and new webobjects, and I cannot 
figure out why it is giving me a null pointer exception.  Here's what 
I'm looking at:
   
...
public class OISCLI extends CGProCLI {
   
...
        public OISCLI() throws CGProException {
            super(host.domain.com,
                    ,
                    postmas...@domain.com,
                    password);
   
            port = Constants.port_mail_server;
            adminUserid = Constants.USER_POSTMASTER + domain();
            password = (String)Application.password();
            serverAddress = Constants.SERVER_MAIL;
   
.cont
        }
   
Here's the error message stack:
I don't get it why it is nulling it out when I'm specifically telling 
it what the password is...Any chance that this CGProCLI does not work 
with the new webobjects...Anyone seen this before?
   
Thank you in advance!
Mersida
   
2008-12-22 14:57:10 EST] main Waiting for requests...
[2008-12-22 14:57:33 EST] WorkerThread6 java.lang.NullPointerException
        at com.stalker.CGPro.CGProCLI.connect(CGProCLI.java:161)
        at com.stalker.CGPro.CGProCLI.init(CGProCLI.java:65)
        at blah.blah.common.OISCLI.init(OISCLI.java:20)
  
   The question is what is CGProCLI.java:161 doing?
   If it's calling some method called password() which you've not set yet 
   then that'll be your problem.
  
   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)
   

Re: Problem after Wonder and WO upgrade

2009-01-06 Thread Kevin Windham


On Jan 5, 2009, at 3:30 PM, james o'loughlin wrote:


On 2008.12.31, at 9:19 PM, Kevin Windham wrote:

I get this error: missing required library: '/Library/Frameworks/ 
ERJavaMail.framework/Resources/Java/activation-1.0.2.jar'	


I have in that path activation-1.1.1.jar instead of  
activation-1.0.2.jar. I can't figure out why it would be looking  
for the older version if I updated the whole framework. Is there  
anywhere else I should be looking, or maybe a cached build file I  
need to clear out. I tried clean and it didn't change anything.


kevin, i remember having a similar issue during my upgrade.  i  
remember removing all of my WO related frameworks from my /System  
/User and /Library directories (OS X) AND removing all  
frameworks from my project.  after adding the proper frameworks to  
my OS and project i believe this issue disappeared.  i believe my  
ERJavaMail was loading an older framework somewhere on my disk?!


I found some ER*.jar files in Library/WebObjects/lib. I'm thinking  
that these jar files may be causing the conflict, but I don't recall  
putting anything in this folder before. Are the files here installed  
by WO, or did I just forget that I put all this stuff in there? Is it  
safe to clear this folder out, or does the default install include  
some files here?


TIA,
Kevin
___
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 arch...@mail-archive.com


Re: WebObjects jar frameworks and classpaths

2009-01-06 Thread Lachlan Deck

Hi John,

On 07/01/2009, at 12:18 AM, John Pollard wrote:

A bit off topic, but I am struggling to make sense of this. Simply  
put I want to understand why I can't put a couple of jars into a WO  
framework and have the code still work as it does when the same jars  
are in /Library/Java/Extensions.


Not really off topic. This is a classpath issue.


Created a new WebObjects framework.
Manually moved two jar files (rome-1.0RC1.jar and jdom.jar) out of / 
Library/Java/Extensions into the new framework project's /Libraries  
sub folder


Good.

In Java Build Path properties, Libraries tab, Add Jars.. to add them  
in, then in the Order and Export tab tick them


Good.


In the app project, add the new framework as a dependency

Eclipse shows no compile time problems, so why the runtime error:
[java.lang.NoClassDefFoundError] com/sun/syndication/io/ 
ModuleGenerator


I will be very grateful for any pointers to help me solve this one;  
in particular why/when Eclipse is happy at compile time, but  
actually the classes are not found when run.


Are you running WOLips nightly and Eclipse 3.4.x? If not you might  
need to update WOLips/Eclipse to get the fix that I think went in late  
November.



The class that is not found is definitely in the rome jar.


Search the archives for Transitive. It's a transitive dependency  
problem.


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 arch...@mail-archive.com


Re: Not finding binding with $^ notation

2009-01-06 Thread Lachlan Deck

On 07/01/2009, at 3:06 AM, Sanford Selznick wrote:


At 10:57 PM +1100 1/6/09, Lachlan Deck wrote:

When I run my app I'm getting this error:

takeValueForKey()]: attempt to assign value to unknown key:  
'title'. This WOComponent does not have an instance variable of  
the name title or _title, nor a method of the name setTitle or  
_setTitle' object '' key 'title'


The error is telling you the problem. You've not got a setter for  
title in the PageWrapper component. You choices are:
a) do away with the carrot symbol and provide getter/setter methods  
in your components
b) override WOComponent#synchronizesVariablesWithBindings and  
return false (the default is true which requires a setter/getter  
for each key .. or, for those less inclined to proper  
encapsulation, a public variable)


Thank you very much for the assistance.  It runs and works.  But...

when doing (a) I get the compile-time error:

 'title' must be bound to a settable variable


If it runs and works - then that's just a problem with the version of  
WOLips you're using. Either that or you've only got wo:PageWrapper  
and you've not bound title.


I think I'm having installation issues.  I am anxiously awaiting a  
new combo installer.  :-)


Not necessarily - WOLips aint without its warts - like any software  
really (especially where Eclipse is concerned) :-)


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 arch...@mail-archive.com


Re: Using NULLS FIRST/LAST on sort orderings

2009-01-06 Thread Lachlan Deck

On 07/01/2009, at 4:29 AM, Miguel Arroz wrote:

Nop. Must be in the DB, it's too many data to handle in memory (the  
table that shows it is paged).


This is not achievable apart from in-memory. SQL does not allow for  
this. Period.


Your only choice is to not use NULL if you want to do this via the DB.  
NULLs are a special beast in DB land... good luck!


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 arch...@mail-archive.com


Re: A relationship in a converted model now throws an exception on save

2009-01-06 Thread Kevin Windham


On Jan 6, 2009, at 5:31 PM, David Holt wrote:

An application that I have converted from XCode to Eclipse is  
throwing an error when I save a new document EO. I went back in and  
looked at the old version of the model in the XCode app and the  
relationship is marked as to-one optional. The entity modeler  
version is mandatory to-one and if I try to set it back to optional,  
it gives me a warning: The relationship documentContent is optional  
but the attribute id does not allow nulls. What do I need to do to  
model this correctly and/or get rid of the error on save?


David


I may not be the best person to answer this, since I'm not quite  
current on WO and entity modeler, but I think a sound guess is that  
the id field to which the relationship is bound has been set to not  
allow null values. To have an optional relationship, it would seem  
that you want to allow null in the id field since having something in  
the id field would imply a related record exists.


Hope that helps,
Kevin ___
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 arch...@mail-archive.com

Re: 'object' not getting initialized in D2WCustomComponent sub class

2009-01-06 Thread Kamal D Shah

Thanks Ramsey!

valueForBinding did the trick.

Kamal

On 06-Jan-09, at 9:04 PM, Ramsey Lee Gurley wrote:

The values for object and key should be getting passed to the  
component by your page.  Making them public might get them to  
synchronize...  If you just bind your string value to ^object.name  
in the wod file, I think it should work for you.  If you really need  
to do it in the java file, you can try loading your object value  
with valueForBinding(object)


Ramsey


On Jan 2, 2009, at 4:46 AM, Kamal D Shah wrote:


Hi all,

I'm trying to build a property level custom component in my D2W  
application (not using Wonder). For testing, I put a simple table  
with a WOString in the component and in my Java file looks like this:


EOEnterpriseObject object;
String key;

public DBWidgets(WOContext context) {
super(context);
}

public String value(){
return (String)object.valueForKey(name);
}

The WOString's value is bound to value. When I access the  
component, I get a null pointer exception when it tries to render  
'value' because object evaluates to null.


In my rules, I set two rules - one to say - use a  
D2WCustomComponent for the particular property and the second to  
specify the particular component (DBWidgets) that I am building.


My actual usage is more complicated but since I was getting this  
problem, I decided to try it in steps and this is the same problem  
I have in my component too.


Is there anything else I need to do to be able to use my property  
level component?


Thanks a ton...
Kamal
___
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/rgurley%40mac.com

This email sent to rgur...@mac.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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com