Re: Connection to Postgresql...
Re: Connection to Postgresql...
- Subject: Re: Connection to Postgresql...
- From: Ramsey Lee Gurley <email@hidden>
- Date: Thu, 10 Dec 2009 19:45:46 -0500
On Dec 10, 2009, at 7:05 PM, Chuck Hill wrote:
>
> On Dec 10, 2009, at 4:02 PM, Ramsey Lee Gurley wrote:
>
>> I don't see ERX anything in that entire stack. Are you using Wonder? It does not look like it. I would strongly suggest you do. I honestly can't imagine trying to develop a WO app without it. I installed the latest postgres with WO 5.4.3 this weekend. Thanks to Wonder's prototypes and Postgresql plugin, it was painless and simple! Thank you team Wonder!!! (^_~)d
>
> If his model is not using prototypes (or is not using the Wonder prototypes), that won't help.
>
> Chuck
Every journey begins with a single step. (^_^)
Michael, it might be helpful if you share a little more information with us. What version of WebObjects are you using? Are you using WOLips or XCode? If you are using WOLips and prototypes, you should see something like this in your entity modeler window when you select the yellow thing at the very bottom of your list of entities. Notice where it says "Prototype" in the bottom left pane?
![PNG image](/attachments/pngaQqKGlQTGf.png)
If you are asking the question, I'm guessing your answer will be no. You can learn more about setting up a prototype entity here
http://developer.apple.com/legacy/mac/library/documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/WorkingWithAttributes.html#//apple_ref/doc/uid/TP30001018-CH204-BABJICFI
Please note that document refers to the now deprecated EOModeler tool, but the basic information remains the same. If you are using Wonder, they already have prototypes for about 10 different databases, including Postgres. If you would like to install and use Wonder, you can find information on how to do that here:
The easy binary install:
http://wiki.objectstyle.org/confluence/display/WO/Project+WONDER-Installing
Or the more useful source install:
http://wiki.objectstyle.org/confluence/display/WONDER/Download+Wonder+Source,+Build+and+Install
Those docs are a little light on details and everyone here was just complaining earlier today about how our docs suck... So if you have any questions, please don't hesitate to ask them (^_^)
Ramsey
>> On Dec 10, 2009, at 6:43 PM, Michael Andronov wrote:
>>
>>> I thinks, that is it:
>>> "
>>> PostgresqlExpression(JDBCExpression).columnTypeStringForAttribute(EOAttribute)
>>> line: 160
>>> PostgresqlExpression.columnTypeStringForAttribute(EOAttribute) line: 383
>>> PostgresqlExpression.sqlStringForValue(Object, String) line: 888
>>> PostgresqlExpression(EOSQLExpression).sqlStringForKeyValueQualifier(EOKeyValueQualifier)
>>> line: 1659
>>> EOQualifierSQLGeneration$_KeyValueQualifierSupport.sqlStringForSQLExpression(EOQualifier,
>>> EOSQLExpression) line: 463
>>> EOQualifierSQLGeneration$Support._sqlStringForSQLExpression(EOQualifier,
>>> EOSQLExpression) line: 165
>>> PostgresqlExpression(EOSQLExpression).prepareSelectExpressionWithAttributes(NSArray<EOAttribute>,
>>> boolean, EOFetchSpecification) line: 997
>>> PostgresqlExpression(JDBCExpression).prepareSelectExpressionWithAttributes(NSArray<EOAttribute>,
>>> boolean, EOFetchSpecification) line: 146
>>> PostgresqlExpression.prepareSelectExpressionWithAttributes(NSArray,
>>> boolean, EOFetchSpecification) line: 713
>>> JDBCExpressionFactory(EOSQLExpressionFactory).selectStatementForAttributes(NSArray,
>>> boolean, EOFetchSpecification, EOEntity) line: 225
>>> JDBCChannel.selectAttributes(NSArray<EOAttribute>,
>>> EOFetchSpecification, boolean, EOEntity) line: 213
>>> EODatabaseChannel._selectWithFetchSpecificationEditingContext(EOFetchSpecification,
>>> EOEditingContext) line: 897
>>> EODatabaseChannel.selectObjectsWithFetchSpecification(EOFetchSpecification,
>>> EOEditingContext) line: 234
>>> EODatabaseContext._objectsWithFetchSpecificationEditingContext(EOFetchSpecification,
>>> EOEditingContext) line: 3055
>>> EODatabaseContext.objectsWithFetchSpecification(EOFetchSpecification,
>>> EOEditingContext) line: 3195
>>> EOObjectStoreCoordinator.objectsWithFetchSpecification(EOFetchSpecification,
>>> EOEditingContext) line: 488
>>> EOEditingContext.objectsWithFetchSpecification(EOFetchSpecification,
>>> EOEditingContext) line: 4069
>>> EOEditingContext.objectsWithFetchSpecification(EOFetchSpecification) line: 4444
>>> _City.fetchCities(EOEditingContext, EOQualifier,
>>> NSArray<EOSortOrdering>) line: 88
>>> Main.searchDB() line: 55
>>> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
>>> available [native method]
>>> NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
>>> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
>>> Method.invoke(Object, Object...) line: 597
>>> NSKeyValueCoding$ValueAccessor$1.methodValue(Object, Method) line: 636
>>> NSKeyValueCoding$_MethodBinding.valueInObject(Object) line: 1134
>>> NSKeyValueCoding$DefaultImplementation.valueForKey(Object, String) line: 1324
>>> Main(WOComponent).valueForKey(String) line: 1736
>>> NSKeyValueCoding$Utility.valueForKey(Object, String) line: 447
>>> NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(Object,
>>> String) line: 212
>>> Main(WOComponent).valueForKeyPath(String) line: 1804
>>> WOKeyValueAssociation.valueInComponent(WOComponent) line: 50
>>> WOSubmitButton.invokeAction(WORequest, WOContext) line: 81
>>> WOForm(WODynamicGroup).invokeChildrenAction(WORequest, WOContext) line: 105
>>> WOForm(WODynamicGroup).invokeAction(WORequest, WOContext) line: 115
>>> WOForm.invokeAction(WORequest, WOContext) line: 141
>>> WODynamicGroup.invokeChildrenAction(WORequest, WOContext) line: 105
>>> WODynamicGroup.invokeAction(WORequest, WOContext) line: 115
>>> Main(WOComponent).invokeAction(WORequest, WOContext) line: 1079
>>> Session(WOSession).invokeAction(WORequest, WOContext) line: 1357
>>> Application(WOApplication).invokeAction(WORequest, WOContext) line: 1745
>>> WOComponentRequestHandler._dispatchWithPreparedPage(WOComponent,
>>> WOSession, WOContext, NSDictionary) line: 206
>>> WOComponentRequestHandler._dispatchWithPreparedSession(WOSession,
>>> WOContext, NSDictionary) line: 298
>>> WOComponentRequestHandler._dispatchWithPreparedApplication(WOApplication,
>>> WOContext, NSDictionary) line: 332
>>> WOComponentRequestHandler._handleRequest(WORequest) line: 369
>>> WOComponentRequestHandler.handleRequest(WORequest) line: 442
>>> Application(WOApplication).dispatchRequest(WORequest) line: 1687
>>> WOWorkerThread.runOnce() line: 144
>>> WOWorkerThread.run() line: 226
>>> Thread.run() line: 637
>>> ...
>>> "
>>> Michael.
>>>
>>> On Thu, Dec 10, 2009 at 6:15 PM, Andrew Lindesay <email@hidden> wrote:
>>>> HI Michael;
>>>>
>>>> It is the stuff under "java.lang.NullPointerException" which is interesting because it will tell us _where_ the problem arose –– can you re-post your full stack trace please?
>>>>
>>>> cheers.
>>>>
>>>>> I'm trying to use the Postgresql with WO.
>>>>> The application itself is a simple test. Actually, I'm opened the
>>>>> 'WebOBjects Tutorial' - the one, which is building the application
>>>>
>>>> ___
>>>> Andrew Lindesay
>>>> www.lindesay.co.nz
>>>>
>>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> --
> 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
>
>
>
>
>
>
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden