johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

wsc-gae-16_0.jar built with Proxy references #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use wsc-gae-16_0.jar to build a gae app
2. deploy to GAE
3. attempt using the PartnerConnection object (as from
Connector.newConnection(config)

What is the expected output? What do you see instead?
error: java.lang.NoClassDefFoundError: java.net.Proxy is a restricted class.

It appears that the changes in r35 to remove the proxy references were not
built into a new jar.

What version of the product are you using? On what operating system?
wsc-gae-16_0.jar - downloaded 2010-02-28 from sfdc-wsc project site.

Please provide any additional information below.

Could we have a jar built from r35, or access to the source for the latest
GAE-compatible version?

Original issue reported on code.google.com by eva...@gmail.com on 1 Mar 2010 at 1:24

GoogleCodeExporter commented 8 years ago
I was mistaken when i said that the source was only the non-gae version.  There 
is a
branch with the GAE version revision 47 that works with GAE, but you do need to 
find it.

The source page mentions the trunk -
http://code.google.com/p/sfdc-wsc/source/checkout (which is not GAE compatible),
while the GAE-compatible source is in 
http://sfdc-wsc.googlecode.com/svn/branches/gae/

Original comment by eva...@gmail.com on 1 Mar 2010 at 8:41

GoogleCodeExporter commented 8 years ago
This issue has also been logged here on the community boards:

http://community.salesforce.com/sforce/board/message?board.id=JAVA_development&t
hread.id=7295

Original comment by jdietz on 25 Mar 2010 at 3:34

GoogleCodeExporter commented 8 years ago
Evanda, may I ask what you did to resolve the problem? I tried to compile and 
package
the source in revision 47 but it was tedious since there were dependencies 
outside of
the classes listed in runtime-classes.txt 

Original comment by jdietz on 26 Mar 2010 at 2:17

GoogleCodeExporter commented 8 years ago
it looks like the wsc-gae-16_0.jar has not changed since i uploaded it in May 
2009, so how it could be broken 
now is quite strange to me. are you sure you are linking with the May 2009 jar 
? 

Original comment by vneh...@gmail.com on 27 Mar 2010 at 4:47

GoogleCodeExporter commented 8 years ago
It seems java.net.Proxy was removed from GAE whitelist. I removed reference to 
Proxy
from WSC 18.0. Please try it out.

http://code.google.com/p/sfdc-wsc/wiki/WscFromGae

Original comment by manoj.ch...@gmail.com on 6 Apr 2010 at 10:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It is possible to get this error even after you update your jars to the latest 
version because (apparently) the old version may be cached. I am not sure if 
this is equally true for the local dev server and on the app engine, but it is 
certainly true on the app engine. You may be able to force an update to the new 
jars by changing the app version number.

Original comment by jdietz on 19 Jul 2010 at 4:49

GoogleCodeExporter commented 8 years ago
Actually, I had missed the setTransport line of code, because I came in through 
a developer.force.com link which bypassed the page on the wiki (from comment 
#5) that clearly shows this.  My bad.

Original comment by jamesk...@gmail.com on 19 Jul 2010 at 4:52

GoogleCodeExporter commented 8 years ago
Hi, I use wsc-19 and have the same problem.
Which instructed in 
http://wiki.developerforce.com/index.php/Force.com_for_Google_App_Engine_User_Gu
ide_Java

Should I use wsc-gae instead?

Original comment by andrew.m...@gmail.com on 5 Aug 2010 at 11:57

GoogleCodeExporter commented 8 years ago
found the solution: 
http://blog.cloudwhiz.com/2009/09/invoking-web-service-in-app-engine.html
last few comments by berta.

Original comment by andrew.m...@gmail.com on 6 Aug 2010 at 12:07