Re: Error - Reflection is not allowed on private - App Engine

2013-12-19 Thread Anders H
Hi Takeshi,

It helped trying with 1.8.3 on the devserver and I get a nice list of 
accounts from the MCC, but when uploading to appspot, I still get the 
error: Reflection is not allowed on private.The error is the same on both 
the test and prod mcc when running on appspot.

Best,
Anders.




Den torsdag den 19. december 2013 02.36.38 UTC+1 skrev Takeshi Hagikura 
(AdWords API Team):

 Hi Andres,

 It's likely related to this issue 
 http://stackoverflow.com/questions/17665456/maven-3-1-0-breaks-google-app-engine-maven-plugin
 .
 Can you please try the 1.8.3 appengine-maven-plugin?

 Best,
 - Takeshi, 

 On Thursday, December 19, 2013 8:26:48 AM UTC+9, Anders H wrote:

 Hi Takeshi,

 The different artifact versions from the DfpPlayground pom.xml seems to 
 be quite old. The version used in the example for adwords-appengine is 
 1.18.0, but the newest version I could find is 1.22.0. I normally try to 
 use the latest stable versions of software components, to get better 
 stability and more functions. Is it documented anywhere which versions 
 should be used for AdWords/appengine?

 I tried to use the pom.xml as you suggested, but when I start the 
 devserver I get the following error:
 *[ERROR] Failed to execute goal 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver (default-cli) 
 on project dfp-*
 *api-playground: Execution default-cli of goal 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver failed: A requ*
 *ired class was missing while executing 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver: 
 Lorg/sonatype/aether*
 */RepositorySystem;*

 *[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/AetherClassNotFound 
 http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound*

 It looks like there is a problem with the version of Maven that I am 
 using (Maven 3.1.1) and I hope that there is an alternative, so I don't 
 have to downgrade Maven to an older version.

 Best,
 Anders

 Den onsdag den 18. december 2013 04.15.52 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi Andres, 

 Apologies for the delay. 
 At least I got it to work to call the AdWords API services 
 (CampaignService) with the dependencies in the same 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  as 
 DfpPlayground + adwords-appengine dependency.

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Can you please try start with that pom.xml first?
 I'm not sure which one of all jars you included has the conflict, but at 
 least starting with the pom.xml is the good start.

 Best,
 - Takeshi, AdWords API Team


 On Monday, December 16, 2013 7:20:15 PM UTC+9, Anders H wrote:

 Just to make sure that the problem is not related to Eclipse / m2e, I 
 have also tried to set up and compile the project using Maven, but without 
 using Eclipse. The result was the same.

 Den onsdag den 11. december 2013 23.47.07 UTC+1 skrev Anders H:

 Hi,

 All imported jaxws classes in the Java app are from: 
 com.google.api.ads.adwords.jaxws.v201309.

 I have included the pom.xml being used for reference.

 Thanks,
 Anders

 Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing 
 with the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies 
 and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell 
 me much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: 
 Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address 
 accessible.
 java.lang.SecurityException: 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-18 Thread Anders H
Hi Takeshi,

The different artifact versions from the DfpPlayground pom.xml seems to be 
quite old. The version used in the example for adwords-appengine is 1.18.0, 
but the newest version I could find is 1.22.0. I normally try to use the 
latest stable versions of software components, to get better stability and 
more functions. Is it documented anywhere which versions should be used for 
AdWords/appengine?

I tried to use the pom.xml as you suggested, but when I start the devserver 
I get the following error:
*[ERROR] Failed to execute goal 
com.google.appengine:appengine-maven-plugin:1.8.2:devserver (default-cli) 
on project dfp-*
*api-playground: Execution default-cli of goal 
com.google.appengine:appengine-maven-plugin:1.8.2:devserver failed: A requ*
*ired class was missing while executing 
com.google.appengine:appengine-maven-plugin:1.8.2:devserver: 
Lorg/sonatype/aether*
*/RepositorySystem;*

*[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/AetherClassNotFound*

It looks like there is a problem with the version of Maven that I am using 
(Maven 3.1.1) and I hope that there is an alternative, so I don't have to 
downgrade Maven to an older version.

Best,
Anders

Den onsdag den 18. december 2013 04.15.52 UTC+1 skrev Takeshi Hagikura 
(AdWords API Team):

 Hi Andres, 

 Apologies for the delay. 
 At least I got it to work to call the AdWords API services 
 (CampaignService) with the dependencies in the same 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  as 
 DfpPlayground + adwords-appengine dependency.

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Can you please try start with that pom.xml first?
 I'm not sure which one of all jars you included has the conflict, but at 
 least starting with the pom.xml is the good start.

 Best,
 - Takeshi, AdWords API Team


 On Monday, December 16, 2013 7:20:15 PM UTC+9, Anders H wrote:

 Just to make sure that the problem is not related to Eclipse / m2e, I 
 have also tried to set up and compile the project using Maven, but without 
 using Eclipse. The result was the same.

 Den onsdag den 11. december 2013 23.47.07 UTC+1 skrev Anders H:

 Hi,

 All imported jaxws classes in the Java app are from: 
 com.google.api.ads.adwords.jaxws.v201309.

 I have included the pom.xml being used for reference.

 Thanks,
 Anders

 Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing with 
 the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies 
 and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell 
 me much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: 
 Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address 
 accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: Reflection 
 is not allowed on private 
 javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
   at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
   at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
   at 
 com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:81)
   at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:405)
   at 
 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-18 Thread Takeshi Hagikura (AdWords API Team)
Hi Andres,

It's likely related to this 
issue 
http://stackoverflow.com/questions/17665456/maven-3-1-0-breaks-google-app-engine-maven-plugin.
Can you please try the 1.8.3 appengine-maven-plugin?

Best,
- Takeshi, 

On Thursday, December 19, 2013 8:26:48 AM UTC+9, Anders H wrote:

 Hi Takeshi,

 The different artifact versions from the DfpPlayground pom.xml seems to be 
 quite old. The version used in the example for adwords-appengine is 1.18.0, 
 but the newest version I could find is 1.22.0. I normally try to use the 
 latest stable versions of software components, to get better stability and 
 more functions. Is it documented anywhere which versions should be used for 
 AdWords/appengine?

 I tried to use the pom.xml as you suggested, but when I start the 
 devserver I get the following error:
 *[ERROR] Failed to execute goal 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver (default-cli) 
 on project dfp-*
 *api-playground: Execution default-cli of goal 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver failed: A requ*
 *ired class was missing while executing 
 com.google.appengine:appengine-maven-plugin:1.8.2:devserver: 
 Lorg/sonatype/aether*
 */RepositorySystem;*

 *[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/AetherClassNotFound 
 http://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound*

 It looks like there is a problem with the version of Maven that I am using 
 (Maven 3.1.1) and I hope that there is an alternative, so I don't have to 
 downgrade Maven to an older version.

 Best,
 Anders

 Den onsdag den 18. december 2013 04.15.52 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi Andres, 

 Apologies for the delay. 
 At least I got it to work to call the AdWords API services 
 (CampaignService) with the dependencies in the same 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  as 
 DfpPlayground + adwords-appengine dependency.

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Can you please try start with that pom.xml first?
 I'm not sure which one of all jars you included has the conflict, but at 
 least starting with the pom.xml is the good start.

 Best,
 - Takeshi, AdWords API Team


 On Monday, December 16, 2013 7:20:15 PM UTC+9, Anders H wrote:

 Just to make sure that the problem is not related to Eclipse / m2e, I 
 have also tried to set up and compile the project using Maven, but without 
 using Eclipse. The result was the same.

 Den onsdag den 11. december 2013 23.47.07 UTC+1 skrev Anders H:

 Hi,

 All imported jaxws classes in the Java app are from: 
 com.google.api.ads.adwords.jaxws.v201309.

 I have included the pom.xml being used for reference.

 Thanks,
 Anders

 Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing 
 with the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies 
 and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell 
 me much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: 
 Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address 
 accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: 
 Reflection is not allowed on private 
 javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
  at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
  at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
  at 
 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-17 Thread Takeshi Hagikura (AdWords API Team)
Hi Andres, 

Apologies for the delay. 
At least I got it to work to call the AdWords API services 
(CampaignService) with the dependencies in the same 
pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
 as 
DfpPlayground + adwords-appengine dependency.

  dependency
groupIdcom.google.api-ads/groupId
artifactIdadwords-appengine/artifactId
  version1.18.0/version

Can you please try start with that pom.xml first?
I'm not sure which one of all jars you included has the conflict, but at 
least starting with the pom.xml is the good start.

Best,
- Takeshi, AdWords API Team


On Monday, December 16, 2013 7:20:15 PM UTC+9, Anders H wrote:

 Just to make sure that the problem is not related to Eclipse / m2e, I have 
 also tried to set up and compile the project using Maven, but without using 
 Eclipse. The result was the same.

 Den onsdag den 11. december 2013 23.47.07 UTC+1 skrev Anders H:

 Hi,

 All imported jaxws classes in the Java app are from: 
 com.google.api.ads.adwords.jaxws.v201309.

 I have included the pom.xml being used for reference.

 Thanks,
 Anders

 Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing with 
 the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell me 
 much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: 
 Unable to make javax.xml.ws.wsaddressing.W3CEndpointReference.address 
 accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: Reflection 
 is not allowed on private 
 javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
at 
 com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:81)
at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:405)
at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:308)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:330)
at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:302)
at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
at 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-16 Thread Anders H
Just to make sure that the problem is not related to Eclipse / m2e, I have 
also tried to set up and compile the project using Maven, but without using 
Eclipse. The result was the same.

Den onsdag den 11. december 2013 23.47.07 UTC+1 skrev Anders H:

 Hi,

 All imported jaxws classes in the Java app are from: 
 com.google.api.ads.adwords.jaxws.v201309.

 I have included the pom.xml being used for reference.

 Thanks,
 Anders

 Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
 (AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing with 
 the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell me 
 much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: Unable 
 to make javax.xml.ws.wsaddressing.W3CEndpointReference.address accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: Reflection 
 is not allowed on private 
 javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
 at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
 at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
 at 
 com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:81)
 at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:405)
 at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:308)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
 at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
 at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
 at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
 at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
 at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:330)
 at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
 at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:302)
 at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
 at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
 at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
 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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:253)
 at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:240)
 at javax.xml.bind.ContextFinder.find(ContextFinder.java:453)
 at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
 at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
 at 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-11 Thread Takeshi Hagikura (AdWords API Team)
Hi, 

Looks like one of your jars that has binding of jaxws is competing with the 
Java native implementation.
You need to include only needed jars.
At least dfp-playground works with the Java library with jaxws on 
appengine. 

Can you please refer to its 
pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
 first?
At least you need to change the dfp part to adwords like this. 

  dependency
groupIdcom.google.api-ads/groupId
artifactIddfp-appengine/artifactId
  version1.18.0/version | v   dependency
groupIdcom.google.api-ads/groupId
artifactIdadwords-appengine/artifactId
  version1.18.0/version

Best,
- Takeshi

On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell me 
 much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: Unable 
 to make javax.xml.ws.wsaddressing.W3CEndpointReference.address accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is 
 not allowed on private javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
   at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
   at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
   at 
 com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:81)
   at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:405)
   at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:308)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
   at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
   at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
   at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
   at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
   at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:330)
   at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
   at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:302)
   at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
   at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
   at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
   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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:253)
   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:240)
   at javax.xml.bind.ContextFinder.find(ContextFinder.java:453)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
   at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:220)
   at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:218)
   at java.security.AccessController.doPrivileged(AccessController.java:34)
   at 
 com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:217)
   at com.sun.xml.ws.spi.ProviderImpl.clinit(ProviderImpl.java:88)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at 
 

Re: Error - Reflection is not allowed on private - App Engine

2013-12-11 Thread Anders H
Hi,

All imported jaxws classes in the Java app are from: 
com.google.api.ads.adwords.jaxws.v201309.

I have included the pom.xml being used for reference.

Thanks,
Anders

Den onsdag den 11. december 2013 20.05.41 UTC+1 skrev Takeshi Hagikura 
(AdWords API Team):

 Hi, 

 Looks like one of your jars that has binding of jaxws is competing with 
 the Java native implementation.
 You need to include only needed jars.
 At least dfp-playground works with the Java library with jaxws on 
 appengine. 

 Can you please refer to its 
 pom.xmlhttps://code.google.com/p/google-api-ads-java/source/browse/pom.xml?repo=dfp-playground
  first?
 At least you need to change the dfp part to adwords like this. 

   dependency
 groupIdcom.google.api-ads/groupId
 artifactIddfp-appengine/artifactId
   version1.18.0/version | v   dependency
 groupIdcom.google.api-ads/groupId
 artifactIdadwords-appengine/artifactId
   version1.18.0/version

 Best,
 - Takeshi

 On Sunday, December 8, 2013 9:09:10 AM UTC-8, Anders H wrote:


 I am running the GetAccountHierarchy.java example on App Engine with 
 JAX-WS. The application is created using Apache Maven for dependencies and 
 the imported jaxws classes are from adwords-appengine-1.22.0.jar.

 When running the app on appspot I get an exception that doesn't tell me 
 much about what could be the problem. 

 This is the piece of code that throws the exception:
 // Get the ServicedAccountService.
 ManagedCustomerServiceInterface managedCustomerService =
  adWordsServices.get(session, 
 ManagedCustomerServiceInterface.class);

 This is the exception:
 2013-12-08 11:55:53.087

 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection init: Unable 
 to make javax.xml.ws.wsaddressing.W3CEndpointReference.address accessible.
 java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is 
 not allowed on private 
 javax.xml.ws.wsaddressing.W3CEndpointReference$Address 
 javax.xml.ws.wsaddressing.W3CEndpointReference.address
  at 
 com.google.appengine.runtime.Request.process-44627206b54ccbe5(Request.java)
  at 
 com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.init(Accessor.java:243)
  at 
 com.sun.xml.bind.AccessorFactoryImpl.createFieldAccessor(AccessorFactoryImpl.java:66)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:252)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createFieldSeed(RuntimeClassInfoImpl.java:81)
  at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:405)
  at 
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:308)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
  at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
  at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:95)
  at 
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:81)
  at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
  at 
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:330)
  at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)
  at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:302)
  at 
 com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
  at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
  at 
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
  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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:253)
  at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:240)
  at javax.xml.bind.ContextFinder.find(ContextFinder.java:453)
  at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637)
  at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
  at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:220)
  at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:218)
  at java.security.AccessController.doPrivileged(AccessController.java:34)
  at