googleads / googleads-java-lib

Google Ad Manager SOAP API Client Library for Java
Apache License 2.0
226 stars 360 forks source link

com.google.api.ads.common.lib.exception.ServiceException: Unexpected Exception. #25

Closed jradcliff closed 10 years ago

jradcliff commented 10 years ago

(Note: this was moved from issue 71 on the decommissioned code.google.com issues list)

What steps will reproduce the problem? 1.We are not able to create DFP report service instance as it shows following exception. Earlier it was working fine, it has stopped working since last 7 days.


POM.xml


<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <packaging>war</packaging>
    <version>0.0.1-SNAPSHOT</version>
    <groupId>com.lin</groupId>
    <artifactId>one</artifactId>
  <properties>
        <appengine.app.version>1</appengine.app.version>
        <appengine.target.version>1.8.9</appengine.target.version>
        <appengine.dfp.api.version>1.22.0</appengine.dfp.api.version>
        <project.appengine.client.version>1.17.0-rc</project.appengine.client.version>
        <project.http.version>1.17.0-rc</project.http.version>
                <project.auth.version>1.17.0-rc</project.auth.version>
                <project.guice.version>3.0</project.guice.version>
                <project.bigquery.version>v2-rev128-1.17.0-rc</project.bigquery.version>
                <project.apache.http.version>4.0.1</project.apache.http.version>
                <project.poi.version>3.9</project.poi.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <!-- Compile/runtime dependencies -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

        <!-- Test Dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                        <artifactId>hamcrest-core</artifactId>
                        <groupId>org.hamcrest</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>1.9.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-testing</artifactId>
            <version>${appengine.target.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-stubs</artifactId>
            <version>${appengine.target.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>${appengine.target.version}</version>
        </dependency>           
                <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-jsr107cache</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-tools-sdk</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-api-labs</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>           
                <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-endpoints</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-local-endpoints</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>
                 <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-remote-api</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>

                <!--  <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-java-sdk</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>
                 <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency> -->
            <dependency>
                        <groupId>com.google.appengine</groupId>
                        <artifactId>appengine-endpoints-deps</artifactId>
                        <version>${appengine.target.version}</version>
                </dependency>

                <dependency>
                        <groupId>com.google.appengine.tools</groupId>
                        <artifactId>appengine-gcs-client</artifactId>
                        <version>0.3</version>
                </dependency>

       <!-- dfp dependencies -->
             <dependency>
              <groupId>com.google.api-ads</groupId>
              <artifactId>ads-lib</artifactId>
             <version>${appengine.dfp.api.version}</version>
            </dependency>

        <dependency>
                        <groupId>com.google.api-ads</groupId>
                <artifactId>ads-lib-appengine</artifactId>
                        <version>${appengine.dfp.api.version}</version>
                </dependency>
                 <dependency>
                        <groupId>com.google.api-ads</groupId>
                        <artifactId>ads-lib-axis</artifactId>
                        <version>${appengine.dfp.api.version}</version>
                </dependency>
                 <dependency>
                        <groupId>com.google.api-ads</groupId>
                        <artifactId>dfp-axis</artifactId>
                        <version>${appengine.dfp.api.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.api-ads</groupId>
                        <artifactId>dfp-appengine</artifactId>
                        <version>${appengine.dfp.api.version}</version>
                </dependency>
        <!-- dfp dependencies ends -->

                <dependency>
                        <groupId>com.google.apis</groupId>
                        <artifactId>google-api-services-storage</artifactId>
                        <version>v1beta2-rev42-1.18.0-rc</version>
                </dependency>
                <dependency>
                        <groupId>com.google.apis</groupId>
                        <artifactId>google-api-services-taskqueue</artifactId>
                        <version>v1beta2-rev23-1.17.0-rc</version>
                </dependency>

                <dependency>
                        <groupId>com.google.api-client</groupId>
                        <artifactId>google-api-client</artifactId>
                        <version>${project.appengine.client.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.google.api-client</groupId>
                    <artifactId>google-api-client-appengine</artifactId>
                    <version>${project.appengine.client.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.api-client</groupId>
                        <artifactId>google-api-client-servlet</artifactId>
                        <version>${project.appengine.client.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.google.http-client</groupId>
                        <artifactId>google-http-client</artifactId>
                    <version>${project.http.version}</version>
                </dependency>
                <dependency>
                    <groupId>com.google.http-client</groupId>
                        <artifactId>google-http-client-jackson</artifactId>
                    <version>${project.http.version}</version>
                </dependency>
                <dependency>
                  <groupId>com.google.http-client</groupId>
                  <artifactId>google-http-client-jackson2</artifactId>
                  <version>${project.http.version}</version>
                </dependency>

                <dependency>
                        <groupId>com.google.oauth-client</groupId>
                        <artifactId>google-oauth-client</artifactId>
                        <version>${project.auth.version}</version>
                </dependency>
                <dependency>
                        <groupId>com.google.oauth-client</groupId>
                        <artifactId>google-oauth-client-appengine</artifactId>
                        <version>${project.auth.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.httpcomponents</groupId>
                        <artifactId>httpclient</artifactId>
                        <version>${project.apache.http.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.httpcomponents</groupId>
                        <artifactId>httpcore</artifactId>
                        <version>${project.apache.http.version}</version>
                </dependency>

                <dependency>
                        <groupId>com.google.apis</groupId>
                        <artifactId>google-api-services-bigquery</artifactId>
                        <version>${project.bigquery.version}</version>
                </dependency>

                <dependency>
                        <groupId>com.google.guava</groupId>
                        <artifactId>guava-jdk5</artifactId>
                        <version>14.0.1</version>
                </dependency>
                <dependency>
                        <groupId>com.google.code.gson</groupId>
                        <artifactId>gson</artifactId>
                        <version>2.2.2</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-jpa_3.0_spec</artifactId>
                        <version>1.1.1</version>
        </dependency>
                <dependency>
                  <groupId>net.sf.jsr107cache</groupId>
                  <artifactId>jsr107cache</artifactId>
                  <version>1.1</version>
                </dependency>

                <dependency>
                        <groupId>com.sun.mail</groupId>
                        <artifactId>imap</artifactId>
                        <version>1.4.4</version>
                </dependency>
                <dependency>
                        <groupId>sshtools</groupId>
                        <artifactId>j2ssh-core</artifactId>
                        <version>0.2.2</version>
                </dependency>
                <dependency>
                        <groupId>com.fasterxml.jackson.core</groupId>
                        <artifactId>jackson-core</artifactId>
                        <version>2.1.3</version>
                </dependency>
                <dependency>
                        <groupId>org.codehaus.jackson</groupId>
                        <artifactId>jackson-core-asl</artifactId>
                        <version>1.9.11</version>
                </dependency>
                <dependency>
                        <groupId>org.javassist</groupId>
                        <artifactId>javassist</artifactId>
                        <version>3.15.0-GA</version>
                </dependency>
                <dependency>
                        <groupId>javassist</groupId>
                        <artifactId>javassist</artifactId>
                        <version>3.3</version>
                </dependency>

                <dependency>
                        <groupId>javax.inject</groupId>
                        <artifactId>javax.inject</artifactId>
                        <version>1</version>
                </dependency>
                <dependency>
                        <groupId>javax.xml</groupId>
                        <artifactId>jaxrpc-api</artifactId>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <groupId>org.jboss.logging</groupId>
                        <artifactId>jboss-logging</artifactId>
                        <version>3.1.0.GA</version>
                </dependency>
                <dependency>
                        <groupId>org.jboss.spec.javax.transaction</groupId>
                        <artifactId>jboss-transaction-api_1.1_spec</artifactId>
                        <version>1.0.0.Final</version>
                </dependency>

                <!-- <dependency>
                        <groupId>javax.sql</groupId>
                        <artifactId>jdbc-stdext</artifactId>
                        <version>2.0</version>
                </dependency> -->       

                <dependency>
                        <groupId>javax.jdo</groupId>
                        <artifactId>jdo-api</artifactId>
                        <version>3.0.1</version>
                </dependency>
                <dependency>
                        <groupId>javax.jdo</groupId>
                        <artifactId>jdo2-api</artifactId>
                        <version>2.3-eb</version>
                </dependency>
                <dependency>
                        <groupId>org.jdom</groupId>
                        <artifactId>jdom</artifactId>
                        <version>1.1.3</version>
                </dependency>
                <dependency>
                        <groupId>org.codehaus.jettison</groupId>
                        <artifactId>jettison</artifactId>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <groupId>org.mortbay.jetty</groupId>
                        <artifactId>jetty</artifactId>
                        <version>6.1.26</version>
                </dependency>
                <dependency>
                        <groupId>joda-time</groupId>
                        <artifactId>joda-time</artifactId>
                        <version>2.1</version>
                </dependency>
                <dependency>
                        <groupId>net.sf.json-lib</groupId>
                        <artifactId>json-lib</artifactId>
                        <version>2.4</version>
                        <classifier>jdk15</classifier>
                </dependency>           
                <dependency>
                        <groupId>com.google.code.findbugs</groupId>
                        <artifactId>jsr305</artifactId>
                        <version>1.3.9</version>
                </dependency>           
                <dependency>
                        <groupId>javax.servlet</groupId>
                        <artifactId>jstl</artifactId>
                        <version>1.2</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>jtidy</artifactId>
                        <version>r8-20060801</version>
                </dependency>           
                <dependency>
                        <groupId>net.sf.jxls</groupId>
                        <artifactId>jxls-core</artifactId>
                        <version>1.0.2</version>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.16</version>
                </dependency>
                <dependency>
                        <groupId>ognl</groupId>
                        <artifactId>ognl</artifactId>
                        <version>3.0.5</version>
                </dependency>
                <dependency>
                        <groupId>net.sf.opencsv</groupId>
                        <artifactId>opencsv</artifactId>
                        <version>2.3</version>
                </dependency>
                <dependency>
                        <groupId>com.sun.mail</groupId>
                        <artifactId>pop3</artifactId>
                        <version>1.4.7</version>
                </dependency>
                <!-- <dependency>
                        <groupId>org.jvnet.jaxb2_commons</groupId>
                        <artifactId>runtime</artifactId>
                        <version>0.4.1.5</version>
                        <exclusions>
                                <exclusion>
                                        <artifactId>jaxb-impl</artifactId>
                                        <groupId>com.sun.xml.bind</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>jaxb-api</artifactId>
                                        <groupId>javax.xml.bind</groupId>
                                </exclusion>
                        </exclusions>
                </dependency> -->
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                        <version>1.6.1</version>
                </dependency>
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                        <version>1.6.2</version>
                </dependency>
                <dependency>
                        <groupId>javax.xml.stream</groupId>
                        <artifactId>stax-api</artifactId>
                        <version>1.0-2</version>
                </dependency>
                <dependency>
                        <groupId>javax.transaction</groupId>
                        <artifactId>transaction-api</artifactId>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <groupId>com.google.visualization</groupId>
                        <artifactId>visualization-datasource</artifactId>
                        <version>1.0.2</version>
                </dependency>
                <dependency>
                        <groupId>wsdl4j</groupId>
                        <artifactId>wsdl4j</artifactId>
                        <version>1.6.2</version>
                </dependency>
                <dependency>
                        <groupId>xmlpull</groupId>
                        <artifactId>xmlpull</artifactId>
                        <version>1.1.3.1</version>
                </dependency>
                <dependency>
                        <groupId>xpp3</groupId>
                        <artifactId>xpp3</artifactId>
                        <version>1.1.4c</version>
                </dependency>

                <dependency>
                        <groupId>com.opensymphony</groupId>
                        <artifactId>xwork</artifactId>
                        <version>2.1.2</version>
                </dependency>           

                <dependency>
                        <groupId>org.apache.struts.xwork</groupId>
                        <artifactId>xwork-core</artifactId>
                        <version>2.2.1.1</version>
                </dependency>

        <!--    <dependency>
                        <groupId>com.opensymphony</groupId>
                        <artifactId>xwork-core</artifactId>
                        <version>2.1.6</version>
                </dependency> -->

           <!-- <dependency>
                        <groupId>com.opensymphony</groupId>
                        <artifactId>xwork-core</artifactId>
                        <version>2.2.1.1</version>
                </dependency>  -->

                <dependency>
                        <groupId>org.apache.poi</groupId>
                        <artifactId>poi</artifactId>
                        <version>${project.poi.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.poi</groupId>
                        <artifactId>poi-ooxml</artifactId>
                        <version>${project.poi.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.poi</groupId>
                        <artifactId>poi-ooxml-schemas</artifactId>
                        <version>${project.poi.version}</version>
                </dependency>

                <!-- guice dependencies -->
                <dependency>
                        <groupId>com.google.inject</groupId>
                        <artifactId>guice</artifactId>
                        <version>${project.guice.version}</version>     
                </dependency>
                <dependency>
                        <groupId>com.google.inject.extensions</groupId>
                        <artifactId>guice-servlet</artifactId>
                        <version>${project.guice.version}</version>     
                </dependency>
                <dependency>
                        <groupId>com.google.inject.extensions</groupId>
                        <artifactId>guice-assistedinject</artifactId>
                        <version>${project.guice.version}</version>     
                </dependency>
                <dependency>
                        <groupId>com.google.inject.extensions</groupId>
                        <artifactId>guice-multibindings</artifactId>
                        <version>${project.guice.version}</version>     
                </dependency>
                <!-- guice dependencies ends-->

                <!-- struts dependencies-->
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-core</artifactId>
                        <version>2.1.6</version>
                        <exclusions>
                                <exclusion>
                                        <artifactId>ognl</artifactId>
                                        <groupId>opensymphony</groupId>
                                </exclusion>
                        </exclusions>
                </dependency>

                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-json-plugin</artifactId>
                        <version>2.1.8.1</version>
                        <exclusions>
                                <exclusion>
                                        <artifactId>spring-context</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-beans</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-test</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-core</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>commons-beanutils</groupId>
                        <artifactId>commons-beanutils</artifactId>
                        <version>1.8.3</version>
                </dependency>
                 <dependency>
                        <groupId>commons-codec</groupId>
                        <artifactId>commons-codec</artifactId>
                        <version>1.7</version>
                </dependency>
                <dependency>
                        <groupId>commons-collections</groupId>
                        <artifactId>commons-collections</artifactId>
                        <version>3.2.1</version>
                </dependency>
                <dependency>
                        <groupId>commons-configuration</groupId>
                        <artifactId>commons-configuration</artifactId>
                        <version>1.7</version>
                </dependency>
                 <dependency>
                        <groupId>commons-digester</groupId>
                        <artifactId>commons-digester</artifactId>
                        <version>1.8.1</version>
                </dependency>
                <dependency>
                        <groupId>commons-discovery</groupId>
                        <artifactId>commons-discovery</artifactId>
                        <version>0.4</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-email</artifactId>
                        <version>1.3.1</version>
                </dependency>
                <dependency>
                        <groupId>commons-fileupload</groupId>
                        <artifactId>commons-fileupload</artifactId>
                        <version>1.2.2</version>
                </dependency>
                 <dependency>
                        <groupId>commons-io</groupId>
                        <artifactId>commons-io</artifactId>
                        <version>2.0</version>
                </dependency>
                 <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-jexl</artifactId>
                        <version>2.1.1</version>
                </dependency>
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                        <version>2.6</version>
                </dependency>                                                                           
                <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging-api</artifactId>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <groupId>commons-net</groupId>
                        <artifactId>commons-net</artifactId>
                        <version>2.2</version>
                </dependency>
                <!-- struts dependency ends-->

                 <dependency>
                        <groupId>com.thoughtworks.xstream</groupId>
                        <artifactId>xstream</artifactId>
                        <version>1.4.2</version>
                </dependency>
                <dependency>
                        <groupId>javax.activation</groupId>
                        <artifactId>activation</artifactId>
                        <version>1.1</version>
                </dependency>
                <dependency>
                        <groupId>aopalliance</groupId>
                        <artifactId>aopalliance</artifactId>
                        <version>1.0</version>
                </dependency>
                <dependency>
                        <groupId>antlr</groupId>
                        <artifactId>antlr</artifactId>
                        <version>2.7.7</version>
                </dependency>
                <dependency>
                        <groupId>cglib</groupId>
                        <artifactId>cglib</artifactId>
                        <version>2.1_3</version>
                </dependency>

                <dependency>
                        <groupId>dom4j</groupId>
                        <artifactId>dom4j</artifactId>
                        <version>1.6.1</version>
                </dependency>
                <dependency>
                        <groupId>com.sun.mail</groupId>
                        <artifactId>dsn</artifactId>
                        <version>1.4.5</version>
                </dependency>
                <dependency>
                        <groupId>net.sf.ehcache</groupId>
                        <artifactId>ehcache</artifactId>
                        <version>1.2</version>
                </dependency>
                <dependency>
                                <groupId>org.freemarker</groupId>
                                <artifactId>freemarker</artifactId>
                                <version>2.3.13</version>
                </dependency>
                <dependency>
                        <groupId>com.google.gdata</groupId>
                        <artifactId>core</artifactId>
                        <version>1.47.1</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-jta_1.1_spec</artifactId>
                        <version>1.1.1</version>
                </dependency>

                <dependency>
                        <groupId>com.ibm.icu</groupId>
                        <artifactId>icu4j</artifactId>
                        <version>4.0.1</version>
                </dependency>
                <dependency>
                        <groupId>net.sf.kxml</groupId>
                        <artifactId>kxml2-min</artifactId>
                        <version>2.3.0</version>
                </dependency>

                <!-- google dependencies -->
                <dependency>
                        <groupId>com.google.collections</groupId>
                        <artifactId>google-collections</artifactId>
                        <version>1.0-rc1</version>
                </dependency>

                <dependency>
                  <groupId>com.googlecode.objectify</groupId>
                  <artifactId>objectify</artifactId>
                  <version>5.0.2</version>
                </dependency>

          <!--   <dependency>
              <groupId>com.google.apis</groupId>
              <artifactId>google-api-services-mapsengine</artifactId>
              <version>v1-rev42-1.19.0</version>
            </dependency>

           <dependency>
              <groupId>de.micromata.jak</groupId>
              <artifactId>JavaAPIforKml</artifactId>
              <version>2.2.0-SNAPSHOT</version>
           </dependency>
                 -->
    <!-- external dependency -->
                 <dependency>
                        <groupId>com.struts2.gae</groupId>
                        <artifactId>struts2-gae</artifactId>
                        <version>0.1</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>javax.sql</groupId>
                        <artifactId>jdbc-stdext</artifactId>
                        <version>2.0</version>
                        <scope>compile</scope>
                </dependency>

 <!-- external dependency ends-->               

</dependencies>

        <repositories>
            <repository>
                    <id>repo</id>
                    <url>file://${project.basedir}/repo</url>
                </repository>

        <!--    <repository>
              <id>maven2-repository.dev.java.net</id>
              <name>Java.net Maven 2 Repository</name>
              <url>http://download.java.net/maven/2</url>
              <layout>default</layout>
              <snapshots>
                 <enabled>true</enabled>
              </snapshots>
        </repository> -->

        </repositories>

    <build>
        <outputDirectory>target/${project.artifactId}-${project.version}/WEB-INF/classes</outputDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.5.1</version>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <archiveClasses>true</archiveClasses>
                    <webResources>
                        <!-- in order to interpolate version from pom into appengine-web.xml -->
                        <resource>
                            <directory>${basedir}/src/main/webapp/WEB-INF</directory>
                            <filtering>true</filtering>
                            <excludes>
                                                         <exclude>**/*.js</exclude>
                                                         <exclude>**/*.jsp</exclude>
                                                         <exclude>**/*.html</exclude>
                                                         <exclude>**/*.css</exclude>
                                                         <exclude>**/*.csv</exclude>
                                                </excludes>
                            <targetPath>WEB-INF</targetPath>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>

            <plugin>
                <groupId>com.google.appengine</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>${appengine.target.version}</version>
                <configuration>
                             <!-- <enableJarClasses>false</enableJarClasses> -->
                             <port>8888</port>
                             <!-- <address>0.0.0.0</address> -->

                         </configuration>

            </plugin>
        </plugins>
    </build>
    <reporting>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-report-plugin</artifactId>
                    <version>2.6</version>
                </plugin>
            </plugins>
        </reporting>

</project>

DFP File

public String downloadReport(DfpServices dfpServices, DfpSession session,ReportQuery reportQuery) throws ApiException_Exception, InterruptedException {
                 log.info("download report....networkCode:"+session.getNetworkCode());
                 String downloadUrl=null;
                 ReportServiceInterface reportService = dfpServices.get(session, ReportServiceInterface.class);
                 log.info("Got report service....");
             ReportJob reportJob = new ReportJob();
             log.info("created report job...");
             reportJob.setReportQuery(reportQuery);
             log.info("set report query and now going to run report.....");
              // Run report job.
              reportJob = reportService.runReportJob(reportJob);

              do {
                log.info("Report with ID '" + reportJob.getId() + "' is still running.");
                Thread.sleep(30000);
                // Get report job.
                reportJob = reportService.getReportJob(reportJob.getId());
              } while (reportJob.getReportJobStatus() == ReportJobStatus.IN_PROGRESS);

              if (reportJob.getReportJobStatus() == ReportJobStatus.FAILED) {
                  log.info("Report job with ID '" + reportJob.getId()
                    + "' failed to finish successfully.");
              }else{
                  log.info("Report job with ID '" + reportJob.getId()+ "' completed successfully.");
                  Long reportJobId = reportJob.getId();
                  ExportFormat exportFormat = ExportFormat.CSV_DUMP;
                  downloadUrl = reportService.getReportDownloadURL(reportJobId, exportFormat);
                  log.info("downloadUrl: "+downloadUrl);
              }
              return downloadUrl;
        }

For authentication we are using

// Create service account credential.
        GoogleCredential credential = new GoogleCredential.Builder()
            .setTransport(new NetHttpTransport())
            .setJsonFactory(new GsonFactory())
            .setServiceAccountId(DFP_SERVICE_ACCOUNT_EMAIL)
            .setServiceAccountScopes(ImmutableList.of("https://www.googleapis.com/auth/dfp"))
            .setServiceAccountPrivateKeyFromP12File(new File("keys/"+DFP_SERVICE_ACCOUNT_KEY))
            .build();
        credential.refreshToken();

        // Construct a DfpSession.
         dfpSession = new DfpSession.Builder()
            .withNetworkCode("5678")
            .withApplicationName("One Map")
            .withOAuth2Credential(credential)
            .build();

        DfpServices dfpServices = new DfpServices();
jradcliff commented 10 years ago

See the error log--------

Error

Struts Problem Report

Struts has detected an unhandled exception:

Messages:

access denied ("java.lang.RuntimePermission" "getClassLoader")
Unexpected Exception.
File:   com/google/api/ads/common/lib/soap/jaxws/JaxWsHandler.java
Line number:    210
Stacktraces

com.google.api.ads.common.lib.exception.ServiceException: Unexpected Exception.
    com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler.createSoapClient(JaxWsHandler.java:210)
    com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler.createSoapClient(JaxWsHandler.java:1)
    com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper.createSoapClient(BaseAdsServiceClientFactoryHelper.java:106)
    com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper.createAdsServiceClient(BaseAdsServiceClientFactoryHelper.java:71)
    com.google.api.ads.common.lib.factory.AdsServiceClientFactory.getServiceClient(AdsServiceClientFactory.java:73)
    com.google.api.ads.common.lib.factory.BaseAdsServiceClientFactory.getServiceClientAsInterface(BaseAdsServiceClientFactory.java:79)
    com.google.api.ads.common.lib.factory.BaseServices.get(BaseServices.java:60)
    com.lin.dfp.api.impl.DFPReportService.downloadReport(DFPReportService.java:2413)
    com.lin.dfp.api.impl.DFPReportService.getDFPReportByOrderIds(DFPReportService.java:3218)
    com.lin.web.action.LinMobileDFPAction.makeDFPReportURL(LinMobileDFPAction.java:615)
    com.lin.web.action.LinMobileDFPAction.runNonFinaliseLinMobileReport(LinMobileDFPAction.java:500)
    com.lin.web.action.LinMobileDFPAction.dailyLinMobileNewReport(LinMobileDFPAction.java:367)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:45)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
    com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
    org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    org.mortbay.jetty.Server.handle(Server.java:326)
    org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:438)
    com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:445)
    com.google.tracing.CurrentContext.runInContext(CurrentContext.java:220)
    com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:309)
    com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:301)
    com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:442)
    java.lang.Thread.run(Thread.java:724)

java.lang.ExceptionInInitializerError
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    java.lang.Class.newInstance(Class.java:370)
    javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:49)
    javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:134)
    javax.xml.ws.spi.Provider.provider(Provider.java:127)
    javax.xml.ws.Service.(Service.java:77)
    com.google.api.ads.dfp.jaxws.v201311.ReportService.(ReportService.java:42)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    java.lang.reflect.Constructor.newInstance(Constructor.java:33)
    com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler.createSoapClient(JaxWsHandler.java:185)
    com.google.api.ads.common.lib.soap.jaxws.JaxWsHandler.createSoapClient(JaxWsHandler.java:1)
    com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper.createSoapClient(BaseAdsServiceClientFactoryHelper.java:106)
    com.google.api.ads.common.lib.factory.helper.BaseAdsServiceClientFactoryHelper.createAdsServiceClient(BaseAdsServiceClientFactoryHelper.java:71)
    com.google.api.ads.common.lib.factory.AdsServiceClientFactory.getServiceClient(AdsServiceClientFactory.java:73)
    com.google.api.ads.common.lib.factory.BaseAdsServiceClientFactory.getServiceClientAsInterface(BaseAdsServiceClientFactory.java:79)
    com.google.api.ads.common.lib.factory.BaseServices.get(BaseServices.java:60)
    com.lin.dfp.api.impl.DFPReportService.downloadReport(DFPReportService.java:2413)
    com.lin.dfp.api.impl.DFPReportService.getDFPReportByOrderIds(DFPReportService.java:3218)
    com.lin.web.action.LinMobileDFPAction.makeDFPReportURL(LinMobileDFPAction.java:615)
    com.lin.web.action.LinMobileDFPAction.runNonFinaliseLinMobileReport(LinMobileDFPAction.java:500)
    com.lin.web.action.LinMobileDFPAction.dailyLinMobileNewReport(LinMobileDFPAction.java:367)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:45)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
    com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
    com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
    org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
    com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
    org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
    org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    org.mortbay.jetty.Server.handle(Server.java:326)
    org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:438)
    com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:445)
a
jradcliff commented 10 years ago

A few suggestions:

  1. Confirm you are following the guidelines included in this related stackoverflow post.
  2. Check out the suggestions in a similar closed issue for the library.

As mentioned in the closed library issue, this is most likely due to your application loading jaxws, jaxrs, or jaxb conflict with AppEngine's.

YoudhveerPanwar commented 10 years ago

If I remove some dependencies from POM.xml like below it woks fine.

com.google.apis google-api-services-mapsengine v1-rev42-1.19.0
       <dependency>
          <groupId>de.micromata.jak</groupId>
          <artifactId>JavaAPIforKml</artifactId>
          <version>2.2.0-SNAPSHOT</version>
       </dependency>

    <repositories>

     <repository>
          <id>maven2-repository.dev.java.net</id>
          <name>Java.net Maven 2 Repository</name>
          <url>http://download.java.net/maven/2</url>
          <layout>default</layout>
          <snapshots>
             <enabled>true</enabled>
          </snapshots>
    </repository> 

How can we find out which jaxws/jaxrs or jaxb creating issues ?

jradcliff commented 10 years ago

You could do it as a process of elimination, e.g., remove one dependency at a time. That could be quite time-consuming, however.

I would personally start with any new dependencies you added recently or any dependencies you recently switched to newer versions in your pom.

Also, you may want to check out this post that suggests that org.jvnet.jaxb2_commons could cause this problem.

YoudhveerPanwar commented 10 years ago

Thanks jradclif This issue was detected. JavaAPIForKML was not working with GAE. https://groups.google.com/forum/#!msg/javaapiforkml/uJmq7xX6R34/skbpjl9Pry0J This works fine for me.

The problem has a workaround, in appengine-web.xml add:

<system-properties>
 <property name="com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize" value="true" />
</system-properties>

Also update JAX latest library

 <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.2.7</version>
    </dependency>

It is still not working.

jradcliff commented 10 years ago

I received an email for the comment above that ended with "Now it is working fine", but the comment says "It is still not working". Could you confirm whether the issue is resolved?

YoudhveerPanwar commented 10 years ago

We have removed JavaforKml API dependencies which contains jaxb jars. Now it is working without this api. I just want to know whether we can use jaxb on Google app engine or not.

Thanks for your reply On 26-Sep-2014 7:02 pm, "Josh Radcliff" notifications@github.com wrote:

I received an email for the comment above that ended with "Now it is working fine", but the comment says "It is still not working". Could you confirm whether the issue is resolved?

— Reply to this email directly or view it on GitHub https://github.com/googleads/googleads-java-lib/issues/25#issuecomment-56961448 .

jradcliff commented 10 years ago

Sorry, I didn't see your previous update. Are you still having trouble with jaxb on App Engine?

YoudhveerPanwar commented 10 years ago

Hi Josh, It's fine without those library, you can close this ticket. Thanks for your help.

On Wed, Oct 29, 2014 at 7:52 PM, Josh Radcliff notifications@github.com wrote:

Sorry, I didn't see your previous update. Are you still having trouble with jaxb on App Engine?

— Reply to this email directly or view it on GitHub https://github.com/googleads/googleads-java-lib/issues/25#issuecomment-60931732 .

With Regards, Youdhveer Panwar

jradcliff commented 10 years ago

Thanks for confirming.