isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: build error
Date Fri, 06 Apr 2018 12:48:51 GMT
Hi Steve,

the DN enhancer will generate a default constructor if there is none
defined explicitly, and so I think that your ChatsParticipant is actually:

ChatsParticipant has only

public class ChatsParticipant extends Attendee  {

    public ChatsParticipant() {
        super();
    }
    public ChatsParticipant(ChatsPerson person) {
        super(person);
    }
   ...
}


The error you have is:

java.lang.IllegalAccessError: tried to access method
au.com.scds.eventschedule.base.impl.Attendee.<init>()V from class
au.com.scds.chats.dom.participant.ChatsParticipant

.In this the Attendee.<init>()V is a reference to your private constructor
of Attendee.

The fix will be to change the visibility of Attendee's constructor to
protected or public.

HTH
Dan

[1] http://www.datanucleus.org/products/accessplatform/jdo/enhancer.html


On Fri, 6 Apr 2018 at 13:41 Stephen Cameron <steve.cameron.62@gmail.com>
wrote:

> I am refactoring an existing project so it is based on a simpler more
> generic project.
>
> The simple generic project is all good, but when I look to create a new
> version of the old project, based on the new, I get an validation error
> (see below). It seems to be an issue with constructors, ChatsParticipant
> extends Attendee
>
> Attendee has constructors
>
>     private Attendee() {
>     }
>
>     public Attendee(Person person) {
>         this.setPerson(person);
>     }
>
> ChatsParticipant has only
>
>     public ChatsParticipant(ChatsPerson person) {
>         super(person);
>     }
>
> where ChatsPerson extends Person
>
> Any thoughts?
>
>
> ***********************************************
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 28.723 s
> [INFO] Finished at: 2018-04-06T22:21:14+10:00
> [INFO] Final Memory: 74M/592M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.isis.tool:isis-maven-plugin:1.16.2:validate (default) on project
> chats-dom: Execution default of goal
> org.apache.isis.tool:isis-maven-plugin:1.16.2:validate failed: An API
> incompatibility was encountered while executing
> org.apache.isis.tool:isis-maven-plugin:1.16.2:validate:
> java.lang.IllegalAccessError: tried to access method
> au.com.scds.eventschedule.base.impl.Attendee.<init>()V from class
> au.com.scds.chats.dom.participant.ChatsParticipant
> [ERROR] -----------------------------------------------------
> [ERROR] realm =    plugin>org.apache.isis.tool:isis-maven-plugin:1.16.2
> [ERROR] strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
>
> file:/D:/maven/repository/org/apache/isis/tool/isis-maven-plugin/1.16.2/isis-maven-plugin-1.16.2.jar
> [ERROR] urls[1] = file:/D:/temp3/chats/dom/target/classes/
> [ERROR] urls[2] =
>
> file:/D:/maven/repository/org/apache/isis/core/isis-core-applib/1.16.2/isis-core-applib-1.16.2.jar
> [ERROR] urls[3] =
>
> file:/D:/maven/repository/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/1.0/geronimo-atinject_1.0_spec-1.0.jar
> [ERROR] urls[4] =
>
> file:/D:/maven/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar
> [ERROR] urls[5] =
>
> file:/D:/maven/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar
> [ERROR] urls[6] =
>
> file:/D:/maven/repository/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/1.0/geronimo-jcdi_1.0_spec-1.0.jar
> [ERROR] urls[7] =
>
> file:/D:/maven/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.0_spec/
> 1.0.0.Final/jboss-jaxrs-api_2.0_spec-1.0.0.Final.jar
> [ERROR] urls[8] =
> file:/D:/maven/repository/javax/jdo/jdo-api/3.1/jdo-api-3.1.jar
> [ERROR] urls[9] =
>
> file:/D:/maven/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar
> [ERROR] urls[10] =
>
> file:/D:/maven/repository/org/datanucleus/datanucleus-api-jdo/4.1.1/datanucleus-api-jdo-4.1.1.jar
> [ERROR] urls[11] =
>
> file:/D:/maven/repository/org/datanucleus/datanucleus-jdo-query/4.0.5/datanucleus-jdo-query-4.0.5.jar
> [ERROR] urls[12] =
>
> file:/D:/maven/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar
> [ERROR] urls[13] =
>
> file:/D:/maven/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar
> [ERROR] urls[14] =
>
> file:/D:/maven/repository/org/axonframework/axon-core/2.4.4/axon-core-2.4.4.jar
> [ERROR] urls[15] =
> file:/D:/maven/repository/com/lmax/disruptor/3.2.0/disruptor-3.2.0.jar
> [ERROR] urls[16] =
> file:/D:/maven/repository/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar
> [ERROR] urls[17] =
> file:/D:/maven/repository/joda-time/joda-time/2.9.4/joda-time-2.9.4.jar
> [ERROR] urls[18] =
> file:/D:/maven/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
> [ERROR] urls[19] =
>
> file:/D:/maven/repository/com/thoughtworks/xstream/xstream/1.4.9/xstream-1.4.9.jar
> [ERROR] urls[20] = file:/D:/maven/repository/xmlpull/xmlpull/
> 1.1.3.1/xmlpull-1.1.3.1.jar
> [ERROR] urls[21] =
> file:/D:/maven/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
> [ERROR] urls[22] =
>
> file:/D:/maven/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
> [ERROR] urls[23] =
>
> file:/D:/maven/repository/org/datanucleus/datanucleus-core/4.1.7/datanucleus-core-4.1.7.jar
> [ERROR] urls[24] =
>
> file:/D:/maven/repository/org/isisaddons/wicket/fullcalendar2/isis-wicket-fullcalendar2-cpt/1.16.0/isis-wicket-fullcalendar2-cpt-1.16.0.jar
> [ERROR] urls[25] =
>
> file:/D:/maven/repository/net/ftlines/wicket-fullcalendar/wicket-fullcalendar-core/2.2.0/wicket-fullcalendar-core-2.2.0.jar
> [ERROR] urls[26] =
>
> file:/D:/maven/repository/org/codehaus/jackson/jackson-core-asl/1.7.5/jackson-core-asl-1.7.5.jar
> [ERROR] urls[27] =
>
> file:/D:/maven/repository/org/codehaus/jackson/jackson-mapper-asl/1.7.5/jackson-mapper-asl-1.7.5.jar
> [ERROR] urls[28] =
>
> file:/D:/maven/repository/org/apache/wicket/wicket-core/7.9.0/wicket-core-7.9.0.jar
> [ERROR] urls[29] =
>
> file:/D:/maven/repository/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar
> [ERROR] urls[30] =
>
> file:/D:/maven/repository/org/apache/wicket/wicket-request/7.9.0/wicket-request-7.9.0.jar
> [ERROR] urls[31] =
>
> file:/D:/maven/repository/org/apache/wicket/wicket-util/7.9.0/wicket-util-7.9.0.jar
> [ERROR] urls[32] =
>
> file:/D:/maven/repository/commons-fileupload/commons-fileupload/1.3.2/commons-fileupload-1.3.2.jar
> [ERROR] urls[33] =
>
> file:/D:/maven/repository/org/isisaddons/wicket/excel/isis-wicket-excel-cpt/1.16.0/isis-wicket-excel-cpt-1.16.0.jar
> [ERROR] urls[34] =
> file:/D:/maven/repository/org/apache/poi/poi/3.9/poi-3.9.jar
> [ERROR] urls[35] =
> file:/D:/maven/repository/org/apache/poi/poi-ooxml/3.9/poi-ooxml-3.9.jar
> [ERROR] urls[36] =
>
> file:/D:/maven/repository/org/apache/poi/poi-ooxml-schemas/3.9/poi-ooxml-schemas-3.9.jar
> [ERROR] urls[37] =
>
> file:/D:/maven/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar
> [ERROR] urls[38] =
> file:/D:/maven/repository/org/mindrot/jbcrypt/0.4/jbcrypt-0.4.jar
> [ERROR] urls[39] =
>
> file:/D:/maven/repository/org/isisaddons/module/security/isis-module-security-dom/1.16.0/isis-module-security-dom-1.16.0.jar
> [ERROR] urls[40] =
>
> file:/D:/maven/repository/org/incode/module/base/incode-module-base-dom/1.16.0/incode-module-base-dom-1.16.0.jar
> [ERROR] urls[41] =
>
> file:/D:/maven/repository/org/incode/example/note/incode-example-note-dom/1.16.0/incode-example-note-dom-1.16.0.jar
> [ERROR] urls[42] =
>
> file:/D:/maven/repository/org/isisaddons/wicket/gmap3/isis-wicket-gmap3-cpt/1.16.2/isis-wicket-gmap3-cpt-1.16.2.jar
> [ERROR] urls[43] =
>
> file:/D:/maven/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar
> [ERROR] urls[44] =
>
> file:/D:/maven/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar
> [ERROR] urls[45] =
>
> file:/D:/maven/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
> [ERROR] urls[46] =
> file:/D:/maven/repository/org/jdom/jdom/2.0.2/jdom-2.0.2.jar
> [ERROR] urls[47] =
>
> file:/D:/maven/repository/org/wicketstuff/wicketstuff-gmap3/7.8.0/wicketstuff-gmap3-7.8.0.jar
> [ERROR] urls[48] =
>
> file:/D:/maven/repository/com/fasterxml/jackson/core/jackson-core/2.8.0/jackson-core-2.8.0.jar
> [ERROR] urls[49] =
>
> file:/D:/maven/repository/com/fasterxml/jackson/core/jackson-databind/2.8.0/jackson-databind-2.8.0.jar
> [ERROR] urls[50] =
>
> file:/D:/maven/repository/com/fasterxml/jackson/core/jackson-annotations/2.8.0/jackson-annotations-2.8.0.jar
> [ERROR] urls[51] =
>
> file:/D:/maven/repository/au/com/scds/event-schedule-module-base/1.0/event-schedule-module-base-1.0.jar
> [ERROR] urls[52] =
>
> file:/D:/maven/repository/org/incode/example/commchannel/incode-example-commchannel-dom/1.16.0/incode-example-commchannel-dom-1.16.0.jar
> [ERROR] urls[53] =
> file:/D:/maven/repository/org/hsqldb/hsqldb/2.3.1/hsqldb-2.3.1.jar
> [ERROR] urls[54] =
>
> file:/D:/maven/repository/org/apache/isis/core/isis-core-runtime/1.16.2/isis-core-runtime-1.16.2.jar
> [ERROR] urls[55] =
>
> file:/D:/maven/repository/org/apache/isis/core/isis-core-log4j/1.16.2/isis-core-log4j-1.16.2.jar
> [ERROR] urls[56] =
>
> file:/D:/maven/repository/org/apache/isis/core/isis-core-metamodel/1.16.2/isis-core-metamodel-1.16.2.jar
> [ERROR] urls[57] =
>
> file:/D:/maven/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
> [ERROR] urls[58] =
>
> file:/D:/maven/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar
> [ERROR] urls[59] =
> file:/D:/maven/repository/com/google/inject/guice/4.1.0/guice-4.1.0.jar
> [ERROR] urls[60] =
> file:/D:/maven/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
> [ERROR] urls[61] =
> file:/D:/maven/repository/com/google/code/gson/gson/2.7/gson-2.7.jar
> [ERROR] urls[62] =
>
> file:/D:/maven/repository/org/datanucleus/datanucleus-rdbms/4.1.9/datanucleus-rdbms-4.1.9.jar
> [ERROR] urls[63] =
>
> file:/D:/maven/repository/org/datanucleus/datanucleus-jodatime/4.1.0-release/datanucleus-jodatime-4.1.0-release.jar
> [ERROR] urls[64] =
>
> file:/D:/maven/repository/io/swagger/swagger-core/1.5.9/swagger-core-1.5.9.jar
> [ERROR] urls[65] =
>
> file:/D:/maven/repository/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.4.5/jackson-datatype-joda-2.4.5.jar
> [ERROR] urls[66] =
>
> file:/D:/maven/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.4.5/jackson-dataformat-yaml-2.4.5.jar
> [ERROR] urls[67] =
> file:/D:/maven/repository/org/yaml/snakeyaml/1.12/snakeyaml-1.12.jar
> [ERROR] urls[68] =
>
> file:/D:/maven/repository/io/swagger/swagger-models/1.5.9/swagger-models-1.5.9.jar
> [ERROR] urls[69] =
>
> file:/D:/maven/repository/io/swagger/swagger-annotations/1.5.9/swagger-annotations-1.5.9.jar
> [ERROR] urls[70] =
>
> file:/D:/maven/repository/org/apache/isis/core/isis-core-schema/1.16.2/isis-core-schema-1.16.2.jar
> [ERROR] urls[71] =
> file:/D:/maven/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
> [ERROR] urls[72] =
> file:/D:/maven/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
> [ERROR] urls[73] =
>
> file:/D:/maven/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar
> [ERROR] urls[74] =
> file:/D:/maven/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
> [ERROR] urls[75] =
>
> file:/D:/maven/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
> [ERROR] urls[76] =
>
> file:/D:/maven/repository/org/apache/commons/commons-email/1.4/commons-email-1.4.jar
> [ERROR] urls[77] =
>
> file:/D:/maven/repository/com/sun/mail/javax.mail/1.5.2/javax.mail-1.5.2.jar
> [ERROR] urls[78] =
>
> file:/D:/maven/repository/javax/activation/activation/1.1.1/activation-1.1.1.jar
> [ERROR] urls[79] =
> file:/D:/maven/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
> [ERROR] urls[80] =
>
> file:/D:/maven/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
> [ERROR] urls[81] =
>
> file:/D:/maven/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
> [ERROR] urls[82] =
>
> file:/D:/maven/repository/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.jar
> [ERROR] urls[83] =
>
> file:/D:/maven/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.jar
> [ERROR] urls[84] =
>
> file:/D:/maven/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
> [ERROR] urls[85] =
>
> file:/D:/maven/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
> [ERROR] urls[86] =
>
> file:/D:/maven/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
> [ERROR] urls[87] =
>
> file:/D:/maven/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> [ERROR] urls[88] =
>
> file:/D:/maven/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> [ERROR] urls[89] =
>
> file:/D:/maven/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
> [ERROR] urls[90] =
>
> file:/D:/maven/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
> [ERROR] urls[91] =
>
> file:/D:/maven/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
> [ERROR] urls[92] =
> file:/D:/maven/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
> [ERROR] urls[93] =
>
> file:/D:/maven/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
> [ERROR] urls[94] =
>
> file:/D:/maven/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
> [ERROR] urls[95] =
>
> file:/D:/maven/repository/org/apache/xbean/xbean-reflect/3.7/xbean-reflect-3.7.jar
> [ERROR] urls[96] =
> file:/D:/maven/repository/com/google/guava/guava/19.0/guava-19.0.jar
> [ERROR] urls[97] =
>
> file:/D:/maven/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar
> [ERROR] urls[98] =
>
> file:/D:/maven/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import  from realm
> ClassRealm[project>au.com.scds:chats-dom:2.0, parent:
> ClassRealm[maven.api,
> parent: null]]]
> [ERROR]
> [ERROR] -----------------------------------------------------
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message