Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: OnError while emitting onNext value: com.webcohesion.enunciate.EnunciateContext.class #110

Closed
marstonstudio opened this issue Aug 18, 2015 · 3 comments
Labels
Milestone

Comments

@marstonstudio
Copy link

I updated to the latest 2.0.0-M.2 release and ran the maven build on my project (upgrading from 1.30.1) I get an exception

[ERROR] Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble (default) on project tutor: Execution default of goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble failed: java.lang.IllegalStateException: OnError while emitting onNext value: com.webcohesion.enunciate.EnunciateContext.class -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble (default) on project tutor: Execution default of goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble failed: java.lang.IllegalStateException

It was not clear to me from the stack trace to see if there is a particular class or annotation in my project which is triggering the error. Given any guidance, happy to experiment and iterate to isolate the problem.

My invocation in the pom.xml

            <plugin>
                <groupId>com.webcohesion.enunciate</groupId>
                <artifactId>enunciate-maven-plugin</artifactId>
                <configuration>
                    <configFile>${basedir}/src/main/resources/enunciate.xml</configFile>
                    <enunciateArtifactId>tutor-enunciate</enunciateArtifactId>
                </configuration>
                <executions>
                    <execution>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>assemble</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

My enunciate.xml

<?xml version="1.0"?>
<enunciate label="tutor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:noNamespaceSchemaLocation="http://enunciate.webcohesion.com/schemas/enunciate-1.30.xsd">

    <modules>
        <csharp disabled="true"/>
        <c disabled="true"/>
        <obj-c disabled="true"/>
        <docs
                title="Tutor REST API"
                docsDir="documentation"
                includeExampleXml="false"
                includeExampleJson="true"
                includeDefaultDownloads="false"
                splashPackage="com.babelcentral.tutor"
                />
    </modules>

</enunciate>

Full stacktrace running the maven build "mvn clean package -X -e"

[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/internal/CoreMessageLogger_.logger.java.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/c3p0/internal/C3P0MessageLogger_.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/c3p0/internal/C3P0MessageLogger_.logger.java.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/annotations/common/util/impl/Log_.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/internal/CoreMessageLogger_.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/cache/ehcache/EhCacheMessageLogger_.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/cache/ehcache/EhCacheMessageLogger_.logger.java.
[DEBUG] [ENUNCIATE] Unable to load type element org/hibernate/annotations/common/util/impl/Log_.logger.java.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.TeacherREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.api.serializer.ObjectMapperProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.SessionREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.HealthREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.chat.ChatREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.AccountREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.ReportREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.DialogREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.TimeslotREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JsonParseExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.crm.LeadREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.api.serializer.ObjectMapperProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JsonMappingExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.StatusREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.crm.CallREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.api.crm.AgentREST as a JAX-RS root resource.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JsonParseExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.json.JsonMappingExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] Added com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper as a JAX-RS provider.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.Teacher will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.Teacher as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.DataElement as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Teacher is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.Session will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.Session as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.identity.Account as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.DialogGoLive as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.content.Dialog as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.content.DialogLine as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.content.Word as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.content.Question as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.content.Answer as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element java.lang.Integer is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Session is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element javax.ws.rs.core.Response is NOT to be added as a JAXB data type because [application/json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.tutor.element.ChatTokenSet will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.tutor.element.ChatTokenSet as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.tutor.element.ChatTokenSet is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element javax.ws.rs.core.Response is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.ReportAbstract will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.ReportAbstract as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.ReportAbstract is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.ReportAbstract is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element javax.ws.rs.core.Response is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element java.lang.String is NOT to be added as a JAXB data type because [application/json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element javax.ws.rs.core.Response is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element java.lang.Integer is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v2+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element java.lang.String is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.DialogGoLive is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.DialogGoLive is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element java.lang.Integer is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.Timeslot will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.Timeslot as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.SessionType as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.Timeslot is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.crm.CrmLead will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmLead as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmLeadType as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmAgent as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmAgentSkype as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmLeadStateHistory as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmLeadState as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmCall as a Jackson type definition.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.crm.CrmCallOutcome as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmLead is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmLead is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmLead is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmLead is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmLead is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element javax.ws.rs.core.Response is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.AccountStatus will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.AccountStatus as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.AccountStatus is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.AccountStatus is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] com.babelcentral.services.element.tutor.DialogStatus will be considered a Jackson type because we're honoring the javax.xml.bind.annotation.XmlRootElement annotation.
[DEBUG] [ENUNCIATE] Added com.babelcentral.services.element.tutor.DialogStatus as a Jackson type definition.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.tutor.DialogStatus is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmCall is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmCall is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmCallOutcome is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmAgent is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmAgent is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmAgent is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmAgentSkype is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] Element com.babelcentral.services.element.crm.CrmAgentSkype is NOT to be added as a JAXB data type because [application/vnd.englishcentral-v1+json] doesn't seem to include XML.
[DEBUG] [ENUNCIATE] /Users/jon/Workspace/services/tutor/target/enunciate/java-json-client/src is NOT up-to-date because it's an empty directory.
[DEBUG] [ENUNCIATE] Generating the Java client classes...
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-enum-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/client-complex-type.fmt.
[DEBUG] [ENUNCIATE] Processing template jar:file:/Users/jon/.m2/repository/com/webcohesion/enunciate/enunciate-java-json-client/2.0.0-M.2/enunciate-java-json-client-2.0.0-M.2.jar!/com/webcohesion/enunciate/modules/java_json_client/library_description.fmt.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.888s
[INFO] Finished at: Tue Aug 18 10:47:27 EDT 2015
[INFO] Final Memory: 84M/622M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble (default) on project tutor: Execution default of goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble failed: java.lang.IllegalStateException: OnError while emitting onNext value: com.webcohesion.enunciate.EnunciateContext.class -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble (default) on project tutor: Execution default of goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble failed: java.lang.IllegalStateException
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal com.webcohesion.enunciate:enunciate-maven-plugin:2.0.0-M.2:assemble failed: java.lang.IllegalStateException
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 19 more
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException
    at com.sun.tools.javac.main.Main.compile(Main.java:469)
    at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
    at com.webcohesion.enunciate.Enunciate.run(Enunciate.java:609)
    at com.webcohesion.enunciate.mojo.ConfigMojo.execute(ConfigMojo.java:315)
    at com.webcohesion.enunciate.mojo.AssembleBaseMojo.execute(AssembleBaseMojo.java:70)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    ... 20 more
Caused by: java.lang.IllegalStateException
    at com.webcohesion.enunciate.modules.java_json_client.MergedJsonContext.findType(MergedJsonContext.java:55)
    at com.webcohesion.enunciate.modules.java_json_client.SimpleNameForMethod.simpleNameFor(SimpleNameForMethod.java:31)
    at com.webcohesion.enunciate.util.freemarker.SimpleNameWithParamsMethod.exec(SimpleNameWithParamsMethod.java:60)
    at freemarker.core.MethodCall._eval(MethodCall.java:62)
    at freemarker.core.Expression.eval(Expression.java:78)
    at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82)
    at freemarker.core.BuiltInForString._eval(BuiltInForString.java:26)
    at freemarker.core.Expression.eval(Expression.java:78)
    at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82)
    at freemarker.core.BuiltInForString._eval(BuiltInForString.java:26)
    at freemarker.core.Expression.eval(Expression.java:78)
    at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:40)
    at freemarker.core.Environment.visit(Environment.java:312)
    at freemarker.core.MixedContent.accept(MixedContent.java:62)
    at freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
    at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
    at freemarker.core.Environment.visit(Environment.java:312)
    at freemarker.core.MixedContent.accept(MixedContent.java:62)
    at freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
    at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
    at freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
    at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
    at freemarker.core.Environment.visit(Environment.java:312)
    at freemarker.core.MixedContent.accept(MixedContent.java:62)
    at freemarker.core.Environment.visit(Environment.java:312)
    at freemarker.core.Environment.process(Environment.java:290)
    at freemarker.template.Template.process(Template.java:312)
    at com.webcohesion.enunciate.modules.java_json_client.EnunciateJavaJSONClientModule.processTemplate(EnunciateJavaJSONClientModule.java:245)
    at com.webcohesion.enunciate.modules.java_json_client.EnunciateJavaJSONClientModule.readLibraryDescription(EnunciateJavaJSONClientModule.java:442)
    at com.webcohesion.enunciate.modules.java_json_client.EnunciateJavaJSONClientModule.generateClientSources(EnunciateJavaJSONClientModule.java:193)
    at com.webcohesion.enunciate.modules.java_json_client.EnunciateJavaJSONClientModule.call(EnunciateJavaJSONClientModule.java:112)
    at com.webcohesion.enunciate.io.InvokeEnunciateModule.onNext(InvokeEnunciateModule.java:31)
    at com.webcohesion.enunciate.io.InvokeEnunciateModule.onNext(InvokeEnunciateModule.java:10)
    at rx.internal.operators.OperatorDoOnEach$1.onNext(OperatorDoOnEach.java:79)
    at rx.internal.operators.OperatorSingle$ParentSubscriber.onCompleted(OperatorSingle.java:109)
    at rx.internal.operators.NotificationLite.accept(NotificationLite.java:140)
    at rx.internal.operators.TakeLastQueueProducer.emit(TakeLastQueueProducer.java:100)
    at rx.internal.operators.TakeLastQueueProducer.startEmitting(TakeLastQueueProducer.java:45)
    at rx.internal.operators.OperatorTakeLast$1.onCompleted(OperatorTakeLast.java:59)
    at rx.internal.operators.OperatorMerge$MergeSubscriber.drainAndComplete(OperatorMerge.java:521)
    at rx.internal.operators.OperatorMerge$MergeSubscriber.completeInner(OperatorMerge.java:486)
    at rx.internal.operators.OperatorMerge$InnerSubscriber.emit(OperatorMerge.java:658)
    at rx.internal.operators.OperatorMerge$InnerSubscriber.onCompleted(OperatorMerge.java:600)
    at rx.internal.operators.OperatorMerge$MergeSubscriber.drainAndComplete(OperatorMerge.java:521)
    at rx.internal.operators.OperatorMerge$MergeSubscriber.completeInner(OperatorMerge.java:486)
    at rx.internal.operators.OperatorMerge$InnerSubscriber.emit(OperatorMerge.java:673)
    at rx.internal.operators.OperatorMerge$InnerSubscriber.onCompleted(OperatorMerge.java:600)
    at rx.internal.util.ScalarSynchronousObservable$ScalarSynchronousAction.call(ScalarSynchronousObservable.java:117)
    at rx.schedulers.ExecutorScheduler$ExecutorAction.run(ExecutorScheduler.java:173)
    at rx.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:99)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.webcohesion.enunciate.EnunciateContext.class
    at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:101)
    at rx.internal.operators.OperatorDoOnEach$1.onNext(OperatorDoOnEach.java:81)
    ... 19 more
[ERROR] 
[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/PluginExecutionException
@stoicflame
Copy link
Owner

Thanks for the report. I've got it assigned to Milestone 3.

@stoicflame
Copy link
Owner

Fixed at 91d80df.

@stoicflame
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants