Fwd: Problem launching WO533 project

Pascal Robert <[email protected]> Thu, 2 Dec 2010 16:07:40 -0500
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
I forgot to do a reply-all.

---------- Forwarded message ----------
From: Pascal Robert <[email protected]>
Date: 2010/12/2
Subject: Re: Problem launching WO533 project
To: Mike Schrag <[email protected]>


FYI, I found the problem. We have a framework that is used by a couple of
applications. If that framework project was opened in Eclipse, we were
getting the java.lang.NoSuchMethodError exception. But a branch of the same
framework was not having the problem. So I compared both, and the branch
didn't have a PB.project file. I deleted the file in the version coming from
trunk, and the problem is gone.

So if you are getting this exception:

[2010-12-02 15:35:56 EST] <main> java.lang.NoSuchMethodError:
com.webobjects.foundation.NSPropertyListSerialization.dictionaryWithPathURL(Ljava/net/URL;)Lcom/webobjects/foundation/NSDictionary;
 at
com.webobjects._ideservices._PBProject.readPBProjectFile(_PBProject.java:692)

Delete the PB.project in your opened projects and problem is gone.

We are having the same problem at work, but strangely enough, it only
> happens on the portables of our two new guys, and it's random. Sometimes we
> have the error, sometimes not. One thing to note: the frameworks are open as
> projects in Eclipse. If we build and install the frameworks and close the
> projects in Eclipse, we can start up the apps just fine every time. WOLips
> 3.6.6210 with WO 5.3.3. Wonder frameworks from yesterday.
>
> oh .. right. i'm tempted to just kill the new rapid turnaround from the 5.3
>> branch and just put back the old nsbundle crap. i don't really want to
>> maintain 5.3 anymore. anyone who wants new rapid turnaround is welcome to
>> fix this.
>>
>> ms
>>
>> On Oct 6, 2010, at 4:41 PM, Timo Hoepfner wrote:
>>
>> > The problem with the NSPlistSer in 5.3 were the incompatible xml jars in
>> JavaXML.farmework. Putting it back into 5.3 w/o modification is probably not
>> a good idea...
>> >
>> >> Revision: 11384
>> >>         http://wonder.svn.sourceforge.net/wonder/?rev=11384&view=rev
>> >> Author:   mschrag
>> >> Date:     2010-09-27 12:49:21 +0000 (Mon, 27 Sep 2010)
>> >>
>> >> Log Message:
>> >> -----------
>> >> killing nspropertylistserialization in 5.3 for now ... it uses some
>> api's that aren't in javaxml in 5.3. if someone wants to resolve that,
>> patches welcome.
>> >>
>> >> Removed Paths:
>> >> -------------
>> >>
>> trunk/Wonder/Frameworks/Core/ERExtensions/Sources/com/webobjects/foundation/NSPropertyListSerialization.java
>> >>
>> >
>> > Timo
>> >
>> > Am 06.10.2010 um 22:34 schrieb Mike Schrag:
>> >
>> >> ah .... yeah ... ERFoundation.jar used to include
>> NSPropertyListSerialization, but I pulled it out for the 5.4 branch when we
>> pushed the source in. When I merged back to 5.3, I think I left out
>> NSPropertyListSerialization, which means you don't have a 5.4-compatible
>> impl anymore. Maybe try sucking back the 5.4 NSPlistSer source to 5.3? I
>> think it should be ok.
>> >>
>> >> ms
>> >>
>> >> On Oct 6, 2010, at 4:28 PM, David LeBer wrote:
>> >>
>> >>> I'm having problems launching projects in my WO533 workspace.
>> >>>
>> >>> This is the error I'm getting at launch:
>> >>>
>> >>> NSPropertyListSerialization.dictionaryWithPathURL didn't show up until
>> WO5.4...
>> >>>
>> >>> Oct 06 16:08:42 SNAdmin[5599] (_PBXProjectWatcher.java:53) DEBUG
>> com.webobjects._ideservices._PBXProjectWatcher  - Installed
>> NSProjectSearchPath fix
>> >>> Oct 06 16:08:42 SNAdmin[5599] (_PBXProjectWatcher.java:201) DEBUG
>> com.webobjects._ideservices._PBXProjectWatcher  - Found NSProjectSearchPath:
>> ("..", "../..", "
>> >>> /Users/david/Code/WO53Workspace/OXFoundation",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Core/ERExtensions",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Core/
>> >>> ERJars",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Core/JavaWOExtensions",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Ajax/Ajax",
>> "/Users/david/Code/Wonder/W
>> >>> onder/Frameworks/Core/ERPrototypes",
>> "/Users/david/Code/WO53Workspace/OXLook",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/BusinessLogic/ERAttachment",
>> "/Users/
>> >>> david/Code/Wonder/Wonder/Frameworks/Core/ERDirectToWeb",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Misc/WOLips",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/C
>> >>> ore/WOOgnl", "/Users/david/Code/WO53Workspace/SNBusinessLogic",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/EOF/ERIndexing",
>> "/Users/david/Code/WO53Workspace/SN
>> >>> Core", "/Users/david/Code/Wonder/Wonder/Frameworks/Core/ERJavaMail",
>> "/Users/david/Code/Wonder/Wonder/Frameworks/Core/ERNeutralLook")
>> >>> Oct 06 16:08:42 SNAdmin[5599] (_PBXProjectWatcher.java:302) DEBUG
>> com.webobjects._ideservices._PBXProjectWatcher.Files  -
>> openProjectsAppropriateForFile /Develo
>> >>>
>> per/WebObjects/Versions/WO533/System/Library/Frameworks/JavaDirectToWeb.framework:
>> ()
>> >>> Oct 06 16:08:42 SNAdmin[5599] (ERXNSLogLog4jBridge.java:43) WARN
>>  NSLog  - A fatal exception occurred:
>> com.webobjects.foundation.NSPropertyListSerialization.dic
>> >>>
>> tionaryWithPathURL(Ljava/net/URL;)Lcom/webobjects/foundation/NSDictionary;
>> >>> [2010-10-06 16:08:42 EDT] <main> java.lang.NoSuchMethodError:
>> com.webobjects.foundation.NSPropertyListSerialization.dictionaryWithPathURL(Ljava/net/URL;)Lcom/we
>> >>> bobjects/foundation/NSDictionary;
>> >>>     at
>> com.webobjects._ideservices._PBProject.readPBProjectFile(_PBProject.java:692)
>> >>>     at
>> com.webobjects._ideservices._PBProject.parse(_PBProject.java:620)
>> >>>     at
>> com.webobjects._ideservices._PBProject.pbProjectAtPath(_PBProject.java:200)
>> >>>     at
>> com.webobjects._ideservices._IDEProjectPB.pbProjectAtPath(_IDEProjectPB.java:45)
>> >>>     at
>> com.webobjects._ideservices._WOProject.ideProjectAtPath(_WOProject.java:102)
>> >>>     at
>> com.webobjects.appserver._private.WOProjectBundle._isProjectBundlePath(WOProjectBundle.java:226)
>> >>>     at
>> com.webobjects.appserver._private.WOProjectBundle._projectsInDirectory(WOProjectBundle.java:284)
>> >>>     at
>> com.webobjects.appserver._private.WOProjectBundle._WOAllProjects(WOProjectBundle.java:459)
>> >>>     at
>> com.webobjects.appserver._private.WOProjectBundle.projectBundleForProject(WOProjectBundle.java:493)
>> >>>     at
>> com.webobjects.appserver._private.WODeployedBundle.projectBundle(WODeployedBundle.java:807)
>> >>>     at
>> com.webobjects.appserver.WOResourceManager._bundleWithNSBundle(WOResourceManager.java:136)
>> >>>     at
>> com.webobjects.appserver.WOResourceManager._locateBundleForFrameworkNamed(WOResourceManager.java:156)
>> >>>     at
>> com.webobjects.appserver.WOResourceManager._cachedBundleForFrameworkNamed(WOResourceManager.java:178)
>> >>>     at
>> com.webobjects.appserver.WOResourceManager._initFrameworkProjectBundles(WOResourceManager.java:199)
>> >>>     at
>> com.webobjects.appserver.WOResourceManager.<init>(WOResourceManager.java:40)
>> >>>     at
>> er.extensions.appserver.ERXResourceManager.<init>(ERXResourceManager.java:43)
>> >>>     at
>> er.extensions.appserver.ERXApplication.createResourceManager(ERXApplication.java:992)
>> >>>     at
>> com.webobjects.appserver.WOApplication.<init>(WOApplication.java:608)
>> >>>     at
>> er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:22)
>> >>>     at
>> er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:999)
>> >>>     at com.oxiox.core.OXApplication.<init>(OXApplication.java:9)
>> >>>     at com.oxiox.sn.core.SNApplication.<init>(SNApplication.java:52)
>> >>>     at com.oxiox.sn.admin.Application.<init>(Application.java:15)
>> >>>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> >>>     at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> >>>     at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> >>>     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> >>>     at java.lang.Class.newInstance0(Class.java:355)
>> >>>     at java.lang.Class.newInstance(Class.java:308)
>> >>>     at
>> com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
>> >>>     at
>> er.extensions.appserver.ERXApplication.main(ERXApplication.java:783)
>> >>>     at com.oxiox.sn.admin.Application.main(Application.java:12)
>> >>>
>> >>> ;david
>> >>>
>> >>> --
>> >>> David LeBer
>> >>> Codeferous Software
>> >>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> >>> site:       http://codeferous.com
>> >>> blog:       http://davidleber.net
>> >>> profile:    http://www.linkedin.com/in/davidleber
>> >>> twitter:    http://twitter.com/rebeld
>> >>> --
>> >>> Toronto Area Cocoa / WebObjects developers group:
>> >>> http://tacow.org
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> ;david
>> >>>
>> >>> --
>> >>> David LeBer
>> >>> Codeferous Software
>> >>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> >>> site:       http://codeferous.com
>> >>> blog:       http://davidleber.net
>> >>> profile:    http://www.linkedin.com/in/davidleber
>> >>> twitter:    http://twitter.com/rebeld
>> >>> --
>> >>> Toronto Area Cocoa / WebObjects developers group:
>> >>> http://tacow.org
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >> _______________________________________________
>> >> Do not post admin requests to the list. They will be ignored.
>> >> Webobjects-dev mailing list      ([email protected])
>> >> Help/Unsubscribe/Update your Subscription:
>> >>
>> http://lists.apple.com/mailman/options/webobjects-dev/th-dev%40onlinehome.de
>> >>
>> >> This email sent to [email protected]
>> >
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>
>> This email sent to [email protected]
>>
>
>