[google-appengine] Re: Error When Deploying Java Appp to App Engine? Can not get the System Java Complier. Please use a JDK, not JRE?

2016-12-09 Thread James Mortensen
We should easily be able to confirm this by trying to run "javac -version" 
from the command prompt, right?  If the command prompt finds the right JDK, 
then eclipse should too, or is that not a good sanity check?  Thanks.

James

On Saturday, January 16, 2016 at 9:35:58 AM UTC+5:30, Adam (Cloud Platform 
Support) wrote:
>
> Make sure that your JAVA_HOME environment variable is set to "C:\Program 
> Files(x86)\Java\jdk1.7.0_79" and that your PATH contains "C:\Program 
> Files(x86)\Java\jdk1.7.0_79\bin" and doesn't point to the JRE, which can 
> happen if you let the JDK installer set your environment (if you select the 
> 'Public JRE' option). 
>
> On Friday, January 15, 2016 at 9:43:28 PM UTC-5, Hung Ha wrote:
>>
>> I got this issue when deploying my Java app to App Engine
>>
>> Unable to update app: Cannot get the System Java Compiler. Please use a JDK, 
>> not a JRE.
>> See the deployment console for more detailsUnable to update app: Cannot get 
>> the System Java Compiler. Please use a JDK, not a JRE.
>>
>> That is absurd because I set up jdk1.7 in Installed JREs as the following 
>> picture:
>>
>> [image: enter image description here] 
>> 
>>
>> In the log file. Debugging information may be found in 
>> *C:\Users\AppData\Local\Temp\appengine-deploy3218365179732638698.log*
>>
>> Unable to update:
>> java.lang.RuntimeException: Cannot get the System Java Compiler. Please use 
>> a JDK, not a JRE.
>> at 
>> com.google.appengine.tools.admin.Application.compileJavaFiles(Application.java:904)
>> at 
>> com.google.appengine.tools.admin.Application.compileJsps(Application.java:892)
>> at 
>> com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:687)
>> at 
>> com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:629)
>> at 
>> com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:569)
>> at 
>> com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:58)
>> at 
>> com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
>> at 
>> com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
>> at 
>> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>>
>> *What is wrong?*
>>
>> This is my eclipse.ini
>>
>> -startup
>> plugins/org.eclipse.equinox.launcher_1
>>
>> ...
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2a23cbe3-c83a-47f9-884f-a04effb11348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 400 Error when trying to deploy the Node.js helloworld app to appengine

2015-05-27 Thread James Mortensen
I hate that Google Groups has no editing capabilities.  I should say that 
I'm from the United States, since globally America is also the name of a 
few different continents and not necessarily specific to the United States 
of America, of which I am from.  Hope this helps clarify and eliminate any 
ethnocentrism on my part.

James

On Wednesday, May 27, 2015 at 2:56:00 PM UTC+5:30, James Mortensen wrote:

 I am an American, but I created my test project in India.  Does that 
 matter?  One of my colleagues created one in the USA and he didn't have any 
 problem.  How do we get around this if this is indeed the issue?  

 Thanks,
 James

 On Tuesday, May 26, 2015 at 11:22:28 PM UTC+5:30, Ryan (Cloud Platform 
 Support) wrote:

 I'm asking this because Managed VM's are currently only available in US 
 projects https://cloud.google.com/appengine/docs/location, so I'm 
 trying to see if there is another issue happening here.

 On Tuesday, May 26, 2015 at 1:23:01 PM UTC-4, Ryan (Cloud Platform 
 Support) wrote:

 That means you never got a MVM up and running thats all. Is everyone 
 seeing this problem have EU projects? I am trying to reproduce without luck 
 so far following the instructions. I will continue to look into it. If you 
 can confirm that your projects are in the EU it will help.

 On Tuesday, May 26, 2015 at 12:53:26 PM UTC-4, James Hutton wrote:

 Hi Ryan, 

 I have never deployed anything to Google successfully. I'm a Google 
 Cloud noob. What I and everyone else on this thread is trying to do is to 
 follow Google's Hello world Node JS tutorial here: 
 https://cloud.google.com/nodejs/getting-started/hello-world

 The problem is that if you follow the instructions in the tutorial, 
 then you get an error message when you try to deploy. Given that several 
 people are having this problem, it looks like the instructions in the 
 tutorial might be wrong.

 I clicked on your link and it started prompting me to create a VM. I 
 don't know whether that's a good or a bad thing.








 On Tuesday, 26 May 2015 17:35:06 UTC+1, Ryan (Cloud Platform Support) 
 wrote:

 If you have deployed it before without issue you can go here 
 https://console.developers.google.com/project/_/compute/instances?graph=GCE_CPU
  and 
 see what zone. If you have not then I need you to confirm you are 
 deploying 
 the Node.js and the command line you used to deploy it.

 On Tuesday, May 26, 2015 at 12:28:04 PM UTC-4, James Hutton wrote:

 I think it is the EU Data Center. But I can't remember for sure. How 
 can I find out?

 On Tuesday, 26 May 2015 16:18:15 UTC+1, Ryan (Cloud Platform Support) 
 wrote:

 Where is the instance located?

 On Tuesday, May 26, 2015 at 10:57:29 AM UTC-4, James Hutton wrote:

 Hi Ryan

 I too have been getting this error. Here is the output from the 
 --verbosity debug option, per your request. I have replaced my app 
 ID on 
 the 3rd line with X but it is otherwise verbatim.


 DEBUG: Host: appengine.google.com
 DEBUG: _Authenticate configuring auth; needs_auth=False
 DEBUG: Sending request to 
 https://appengine.google.com/api/vms/prepare?app_id=XXX 
 headers={'X-appcfg-api-version': '1', 'content-length': '0', 
 'Content-Type': 'application/octet-stream'} body=
 INFO: Attempting refresh to obtain initial access_token
 INFO: Refreshing access_token
 DEBUG: Got http error 400.
 DEBUG: Unexpected results: {'status': '400', 'alternate-protocol': 
 '443:quic,p=1', 'content-length': '82', 'expires': 'Fri, 01 Jan 1990 
 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 
 'no-cache', 
 'date': 'Tue, 26 May 2015 14:49:35 GMT', 'content-type': 'text/plain'}
 DEBUG: (gcloud.preview.app.deploy) Server responded with code [400]:
   Bad Request Unexpected HTTP status 400
 Traceback (most recent call last):
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py, 
 line 
 537, in Execute
 result = args.cmd_func(cli=self, args=args)
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py,
  
 line 1089, in Run
 result = command_instance.Run(args)
   File 
 /home/james/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py,
  
 line 111, in Run
 client.PrepareVmRuntime()
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appengine_client.py,
  
 line 281, in PrepareVmRuntime
 rpcserver.Send('/api/vms/prepare', app_id=self.project)
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/util.py,
  
 line 347, in Send
 response = self._server.Send(*args, **kwargs)
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/external/tools/appengine_rpc_httplib2.py,
  
 line 269, in Send
 'Unexpected HTTP status %s' % status)
   File 
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/external/tools/appengine_rpc_httplib2.py,
  
 line 67, in RaiseHttpError
 raise urllib2.HTTPError(url, response_info.status, msg, 
 response_info, stream

[google-appengine] Re: 400 Error when trying to deploy the Node.js helloworld app to appengine

2015-05-27 Thread James Mortensen
 in another region. 

 Thanks!

 On Friday, May 22, 2015 at 10:29:16 AM UTC-4, James Mortensen wrote:

 Hello,

 I'm going through all of the instructions here to deploy the 
 helloworld Node.js app to Google App Engine, and I get a 400 error 
 with no 
 other details as to the problem.  
 https://cloud.google.com/nodejs/getting-started/hello-world#running_hello_world

 Below is the output from the terminal:

 gcloud preview app deploy app.yaml --set-default

 You are about to deploy the following modules:

  - nodejs-start/default/20150522t194829  From: 
 [/Users/jem/Dev/1-hello-world/app.yaml]

 Do you want to continue (Y/n)?  


 ERROR: (gcloud.preview.app.deploy) Server responded with code 
 [400]:

   Bad Request Unexpected HTTP status 400

 Jamess-MacBook-Pro-3:1-hello-world jem$ 



 Anyone know what the problem is?  Thanks,

 James



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/332a5910-3280-4c2b-8a6f-7be776ce1e8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 400 Error when trying to deploy the Node.js helloworld app to appengine

2015-05-26 Thread James Mortensen
I thought this stuff was supposed to be abstracted so we didn't see the
underlying compute instance... as James Hutton mentioned, how can we find
out?

Thanks,

James

On Tue, May 26, 2015 at 8:48 PM, Ryan (Cloud Platform Support) 
rbruy...@google.com wrote:

 Where is the instance located?


 On Tuesday, May 26, 2015 at 10:57:29 AM UTC-4, James Hutton wrote:

 Hi Ryan

 I too have been getting this error. Here is the output from the
 --verbosity debug option, per your request. I have replaced my app ID on
 the 3rd line with X but it is otherwise verbatim.


 DEBUG: Host: appengine.google.com
 DEBUG: _Authenticate configuring auth; needs_auth=False
 DEBUG: Sending request to
 https://appengine.google.com/api/vms/prepare?app_id=XXX
 headers={'X-appcfg-api-version': '1', 'content-length': '0',
 'Content-Type': 'application/octet-stream'} body=
 INFO: Attempting refresh to obtain initial access_token
 INFO: Refreshing access_token
 DEBUG: Got http error 400.
 DEBUG: Unexpected results: {'status': '400', 'alternate-protocol':
 '443:quic,p=1', 'content-length': '82', 'expires': 'Fri, 01 Jan 1990
 00:00:00 GMT', 'server': 'Google Frontend', 'cache-control': 'no-cache',
 'date': 'Tue, 26 May 2015 14:49:35 GMT', 'content-type': 'text/plain'}
 DEBUG: (gcloud.preview.app.deploy) Server responded with code [400]:
   Bad Request Unexpected HTTP status 400
 Traceback (most recent call last):
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py, line
 537, in Execute
 result = args.cmd_func(cli=self, args=args)
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py,
 line 1089, in Run
 result = command_instance.Run(args)
   File
 /home/james/google-cloud-sdk/lib/googlecloudsdk/appengine/app_commands/deploy.py,
 line 111, in Run
 client.PrepareVmRuntime()
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/appengine_client.py,
 line 281, in PrepareVmRuntime
 rpcserver.Send('/api/vms/prepare', app_id=self.project)
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/util.py,
 line 347, in Send
 response = self._server.Send(*args, **kwargs)
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/external/tools/appengine_rpc_httplib2.py,
 line 269, in Send
 'Unexpected HTTP status %s' % status)
   File
 /home/james/google-cloud-sdk/./lib/googlecloudsdk/appengine/lib/external/tools/appengine_rpc_httplib2.py,
 line 67, in RaiseHttpError
 raise urllib2.HTTPError(url, response_info.status, msg,
 response_info, stream)
 RPCError: Server responded with code [400]:
   Bad Request Unexpected HTTP status 400
 ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:
   Bad Request Unexpected HTTP status 400




 On Monday, 25 May 2015 18:14:17 UTC+1, Ryan (Cloud Platform Support)
 wrote:

 Salutations!

 Are you still seeing this issue? If you are please run the command with
 the --verbosity debug flag and try in another region.

 Thanks!

 On Friday, May 22, 2015 at 10:29:16 AM UTC-4, James Mortensen wrote:

 Hello,

 I'm going through all of the instructions here to deploy the helloworld
 Node.js app to Google App Engine, and I get a 400 error with no other
 details as to the problem.
 https://cloud.google.com/nodejs/getting-started/hello-world#running_hello_world

 Below is the output from the terminal:

 gcloud preview app deploy app.yaml --set-default

 You are about to deploy the following modules:

  - nodejs-start/default/20150522t194829  From:
 [/Users/jem/Dev/1-hello-world/app.yaml]

 Do you want to continue (Y/n)?


 ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:

   Bad Request Unexpected HTTP status 400

 Jamess-MacBook-Pro-3:1-hello-world jem$



 Anyone know what the problem is?  Thanks,

 James



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CANhSRj%2BfgHoHcDwBuPK%3DzO7ZHsWYF4yiSfC7cce7-mdNyTmtxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] 400 Error when trying to deploy the Node.js helloworld app to appengine

2015-05-22 Thread James Mortensen
 

Hello,

I'm going through all of the instructions here to deploy the helloworld 
Node.js app to Google App Engine, and I get a 400 error with no other 
details as to the problem. 
 https://cloud.google.com/nodejs/getting-started/hello-world#running_hello_world

Below is the output from the terminal:

gcloud preview app deploy app.yaml --set-default

You are about to deploy the following modules:

 - nodejs-start/default/20150522t194829  From: 
[/Users/jem/Dev/1-hello-world/app.yaml]

Do you want to continue (Y/n)?  


ERROR: (gcloud.preview.app.deploy) Server responded with code [400]:

  Bad Request Unexpected HTTP status 400

Jamess-MacBook-Pro-3:1-hello-world jem$ 



Anyone know what the problem is?  Thanks,

James

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7d05b5fc-b933-4027-8305-2400cfcb1830%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How do I redirect from https://example.com to https://www.example.com

2013-07-28 Thread James Mortensen
The easiest way is in your response, just redirect via JavaScript:

window.location = https://example.com;;

But that's sort of sloppy and doesn't return 301 response codes to tell 
search engines to update their links. If it's not a website indexed by 
Google then this probably won't matter and would solve the problem.

Other than that, Spring Security has tools that can force HTTPS, although 
I'm not sure if it actually does the redirect. 

If you do need a 301 redirect -- or wish to have a nice, clean server-side 
approach -- there's also the Tuckey URLRewriter -- 
http://tuckey.org/urlrewrite/ -- which lets you catch certain urls matching 
a pattern and 301 redirect them to another url.  For instance 
http:\/\/.*example\.com could be redirected to https instead.

Lastly, you could also just do this:

if(request.getScheme().equals(http)  (request.getRequestURI().equals() 
|| request.getRequestURI().equals(/)) {
// set the response code as 301, moved permanently
response.setStatus(301);  // tell the requestor the url is permanently 
redirected
response.sendRedirect(https://example.com;);   
}


Hope this helps,
James

On Saturday, July 27, 2013 8:43:22 PM UTC-7, Dhrumil Shah wrote:

 Google apps gives me options to redirect from http://example.com to 
 http://www.example.com, but not for https. 
 Any suggestions?




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Channel API is working locally But not in production throws provided token is invalid

2012-11-05 Thread James Mortensen
Did you ever figure out what was causing your issue?  If so, it would be 
really helpful to others in the community if you could follow up and post 
what the problem was.

Thank you,
James

On Tuesday, March 13, 2012 8:54:19 AM UTC-7, praveen kumar wrote:

  I will create channel Id(token)  using Channel API in server side.,
 In the client side using this token while opening the channel using
 http://talkgadget.google.com/talkgadget/channel.js. It throwing error
 provider token is invalid .

 Please help how to fix this issue 

 Regards.,
 Praveen.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/vt5IcLdUDDcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: App Engine Chat Time!

2012-09-05 Thread James Mortensen
Hi Sean,

Go to Odesk or a freelancer site.  You can hire someone there. I'm not sure 
this is the place for your question though as this is for questions about 
developing applications on Google App Engine, not recruiting.  Good luck!

James

On Tuesday, September 4, 2012 11:59:42 AM UTC-7, Sean McDonough wrote:

 Im looking for someone to help me.  Im an Army nurse with a GREAT app idea 
 that will work well and take off fast.  I wanna know who I can talk to to 
 help develop this app and make some money on the idea.

 On Tuesday, March 17, 2009 5:33:31 PM UTC-6, Jason (Google) wrote:

 Hi Everyone! 

 Every first and third Wednesday of the month, the App Engine team 
 hosts IRC Chat Time, an opportunity for you to get answers to your App 
 Engine-related questions in real-time. 

 Here's the schedule: 
 - Every FIRST Wednesday of the month from 7:00 to 8:00 p.m. PDT 
 - Every THIRD Wednesday of the month from 9:00 to 10:00 a.m. PDT 

 So our schedule for the next few months looks like: 
 - March 18, 9:00-10:00 a.m. PDT 
 - April 1, 7:00-8:00 p.m. PDT 
 - April 15, 9:00-10:00 a.m. PDT 
 - May 6, 7:00-8:00 p.m. PDT 
 - May 20, 9:00-10:00 a.m. PDT 
 ... 

 These chat sessions take place on the #appengine channel on 
 irc.freenode.net. For a list of IRC clients, see the following URL: 

 http://en.wikipedia.org/wiki/List_of_IRC_clients for a helpful 

 We welcome all App Engine-related questions and we will try to answer 
 as many as we can in the hour session. 

 See you there! 
 - Jason



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/tx1ICWw2Z14J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: $2,000 worth of AppEngine credit at a discount

2012-05-21 Thread James Mortensen
Hi Andres,

We have several software projects we're working on which are all
hosted on AppEngine. It's business software, like chat, feedback
management, CRM software, appointment taking, and more.  I'm sure we
can give you free use of the software for some mutually beneficial
time period.

Ideally, this credit should go to a good non-profit. But if not, feel
free to contact me.

Thanks,
James

On May 18, 4:31 pm, Andres Douglas andres.doug...@gmail.com wrote:
 Hey there, just stopping by the group to see if anyone is interested in
 $2,000 worth of AppEngine credit. My team received this as a gift and we're
 not users of AppEngine, so thought it would be better used by someone here.
 Leave a contact email and I'll get in touch.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: 500 errors + high latency + please communicate with us

2012-05-03 Thread James Mortensen
I submitted a ticket here, yesterday, for all of the 500 errors that I'm 
seeing in my app.  I'm hoping we can get this sorted out soon as we're 
hoping to launch in the next 2 weeks!

http://code.google.com/p/googleappengine/issues/detail?id=7444

I also asked this question on Stackoverflow last month and haven't received 
any answers. I'm seeing these exceptions as well:  Unable to load several 
versions of AppEngine Project and Seeing HardDeadLineExceeded 
Exceptionshttp://stackoverflow.com/q/9421549/552792

James

On Friday, March 9, 2012 4:40:20 AM UTC-8, Nikolai wrote:


 https://lh6.googleusercontent.com/-8WF96dBSCf4/T1n5Cg1ePDI/BQQ/ckCS-rzZmk8/s1600/Screen%2520Shot%25202012-03-09%2520at%252013.33.38.png
 this is so wrong. I dont see any of these problems reflected in the 
 appengine system status. I don't understand why there is zero communication 
 from google concerning the outages everybody in this forum is seeing right 
 now.
 This is not a small hickup, but something we (and others) are fighting 
 since 20 hours.
 Could someone from google please comment on the current issues und reflect 
 the status on the appengine status page?

 thank you!
 nikolai


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/I3lQGMyT6X0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.