I allow me to complete this question;


I have to the same problem and my complete stack trace are the same ...
and not very expressive for me;


----------------
Exception in thread "main" java.lang.AbstractMethodError:
com.webobjects.foundation._NSWeakMutableArray.addReference(Ljava/lang/Object;)V
    at
com.webobjects.foundation.NSNotificationCenter.addObserver(NSNotificationCenter.java:230)
    at
com.webobjects.foundation.NSProperties.registerForNotifications(NSProperties.java:322)
    at
com.webobjects.foundation.NSProperties.setSharedInstance(NSProperties.java:215)
    at
com.webobjects.foundation.NSProperties.<clinit>(NSProperties.java:156)
    at
com.webobjects.eocontrol.EOEventCenter.<clinit>(EOEventCenter.java:105)
    at
com.webobjects.eocontrol.EOEditingContext.<clinit>(EOEditingContext.java:669)
    at
com.webobjects.eocontrol.EOCustomObject.<clinit>(EOCustomObject.java:1894)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.webobjects.appserver.WOApplication.class$(WOApplication.java:185)
    at
com.webobjects.appserver.WOApplication.<clinit>(WOApplication.java:185)
--------------------------------------------



To begin, i have used a very small WO application using maven to build and
using the 5.3 version of WO (it's old biut my real application use this ...
)


As i want to try to generalize the maven use case, and because we are
migrating to wonder  ... I want to use now an ERAjaxApplication and my
previous Application stop to run;

I have do just the following modification :

modify the pom :

add   Wonder.

Final version :


--------------
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>symaris</groupId>
    <artifactId>miniCaria</artifactId>
    <packaging>woapplication</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <name>miniCaria WebObjects Application</name>
    <url>http://maven.apache.org</url>

    <properties>
        <!-- properties used for filtering and dependency management -->
        <jvmtarget>1.6</jvmtarget>
        <mainclass>symaris.miniCaria.app.Application</mainclass>
        <webobjects.groupId>com.webobjects</webobjects.groupId>
        <webobjects.version>5.3.3</webobjects.version>


        <wonder.core.groupId>wonder.core</wonder.core.groupId>
        <wonder.version>5.6.0</wonder.version>

    </properties>

    <build>
        <finalName>miniCaria</finalName>
        <plugins>
            <plugin>
                <groupId>org.objectstyle.woproject.maven2</groupId>
                <artifactId>maven-wolifecycle-plugin</artifactId>
                <version>2.1</version>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>${jvmtarget}</source>
                    <target>${jvmtarget}</target>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>

                <!--This plugin's configuration is used to store Eclipse
m2e settings
                    only. It has no influence on the Maven build itself. -->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>
                                            org.objectstyle.woproject.maven2
                                        </groupId>
                                        <artifactId>
                                            maven-wolifecycle-plugin
                                        </artifactId>
                                        <versionRange>
                                            [2.0.17,)
                                        </versionRange>
                                        <goals>
                                            <goal>
                                                generate-test-resources
                                            </goal>
                                            <goal>woapplication</goal>
                                            <goal>

define-woapplication-resources
                                            </goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore></ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>


                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <includes>
                            <include>**Test*.java</include>
                        </includes>
                    </configuration>
                </plugin>

            </plugins>
        </pluginManagement>
    </build>

    <dependencies>
        <dependency>
            <groupId>${wonder.core.groupId}</groupId>
            <artifactId>ERExtensions</artifactId>
            <version>${wonder.version}</version>
        </dependency>

        <dependency>
            <groupId>${wonder.core.groupId}</groupId>
            <artifactId>WOOgnl</artifactId>
            <version>${wonder.version}</version>
        </dependency>

        <dependency>
            <groupId>${wonder.core.groupId}</groupId>
            <artifactId>ERPrototypes</artifactId>
            <version>${wonder.version}</version>
        </dependency>

        <dependency>
            <groupId>${webobjects.groupId}</groupId>
            <artifactId>JavaWebObjects</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>${webobjects.groupId}</groupId>
            <artifactId>JavaEOAccess</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>${webobjects.groupId}</groupId>
            <artifactId>JavaFoundation</artifactId>
            <version>5.3.3</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
        </dependency>

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.3</version>
        </dependency>

        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>
</project>

---------------------------

and modify the main class (WOApplication to an ERXAjaxApplication ) :
---------
public class Application extends ERXApplication
---------


but I don't think thaht the problem is in this previously modification
because just the modification of the pom "break" the application run.

I think i have forget some Properties configuration obut I don't find
anything about my error.

Thanks a lot for your help.

Best regards


Marc S.







2012/6/19 Kieran Kelleher <[email protected]>

> What is your exact stack trace?
>
> What source version of Wonder (branch or git commit-id)?
>
> On Jun 19, 2012, at 1:50 PM, doug andrews wrote:
>
> > I'm getting this exact same error.
> > Did you ever figure it out?
> >
> >
> > On Oct 9, 2010, at 11:11 AM, Alexander Spohr wrote:
> >
> >> Hi list,
> >>
> >> if I try to run a fresh WOnder application I get this Stack:
> >>
> >> Thread [main] (Suspended (exception AbstractMethodError))
> >>      NSNotificationCenter.addObserver(Object, NSSelector, String,
> Object) line: 230
> >>      NSProperties.registerForNotifications() line: 322
> >>      NSProperties.setSharedInstance(NSProperties) line: 215
> >>      NSProperties.<clinit>() line: 156
> >>      EOEventCenter.<clinit>() line: 92
> >>      EOEditingContext.<clinit>() line: 582
> >>      EOCustomObject.<clinit>() line: 2012
> >>      Class<T>.forName0(String, boolean, ClassLoader) line: not
> available [native method]
> >>      Class<T>.forName(String) line: 169
> >>      WOApplication.class$(String) line: 185
> >>      WOApplication.<clinit>() line: 185
> >>
> >> A fresh WebObjects application runs without any problems.
> >>
> >> Any advice?
> >>
> >>      atze _______________________________________________
> >> 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/dandrews%40mediaspansoftware.com
> >>
> >> 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:
> >
> https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
> >
> > 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:
>
> https://lists.apple.com/mailman/options/webobjects-dev/sauget.marc%40gmail.com
>
> 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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to