Re: [appengine-java] Thrift client support

2011-06-11 Thread Ikai Lan (Google)
You can't use raw sockets. Random searching via Google seems to indicate
that Thrift supports transport over HTTP, which makes me optimistic this
will work if you are willing to put time into it:

http://nthalk.blogspot.com/2011/04/using-play-framework-as-thrift.html


Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Sun, Jun 12, 2011 at 10:30 AM, Lucas Maystre wrote:

> Hi,
> I was wondering if it was possible to build a Java thrift client that runs
> in GAE.
> After googling a lot, I couldn't find anything... And it's not listed on
> the "will it play" page.
>
> Has anyone ever attempted that?
>
> I've heard there's a restriction in GAE with sockets. But I'm not sure
> thrift requires raw sockets (i'm new to both technologies).
>
> If anyone knows anything about that... Thanks in advance!
> Lucas
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/mewOpd3unlkJ.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



[appengine-java] Thrift client support

2011-06-11 Thread Lucas Maystre
Hi,
I was wondering if it was possible to build a Java thrift client that runs 
in GAE.
After googling a lot, I couldn't find anything... And it's not listed on the 
"will it play" page.

Has anyone ever attempted that?

I've heard there's a restriction in GAE with sockets. But I'm not sure 
thrift requires raw sockets (i'm new to both technologies).

If anyone knows anything about that... Thanks in advance!
Lucas

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



[appengine-java] Re: Update doesn't always Update

2011-06-11 Thread Gregory Werner
Whoops, somehow my version number was incremented to 2 so I was
deploying version 2 but observing version 1 when I visited my
application

On Jun 11, 2:38 pm, Gregory Werner  wrote:
> First, I noticed that a ,txt file I put in war/WEB-INF wasn't seeing its
> updates picked up.  I changed the .txt file to contain 7 lines and it still
> only read 6 lines.  Then I noticed a .jsp file was not updating.  I put in
> some java into the jsp to read this text file.  I get the following in my
> log:
>
> /jsp/index.jsp
> java.lang.NullPointerException
>         at java.io.Reader.(Reader.java:78)
>         at java.io.InputStreamReader.(InputStreamReader.java:72)
>         at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:56)
>
> Then i take the portion out of the .jsp file which does the file reading and 
> I get the same log.
>
> Is there anything I could be doing or not doing to prevent .jsp files and 
> files in the classpath from being
> overwritten?  Maybe the java file generated from the .jsp file is not being 
> updated while the .jsp is?

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



[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
Thanks alot anyway,

adn yes

my appengine-web.xml is set up correctly,

anotehr weird thing is , event when i set up

# Set the default logging level for all loggers to WARNING
.level = FINE

and i'm getting tons of jetty logs from FINE level... even than I'm
not getting any of my logs lower than warning

:/

Can any 1 else throw an idea?


Thanks ahead,

On Jun 11, 11:08 am, Ian Marshall  wrote:
> Sorry that it's not working for you.
>
> I use NetBeans for my IDE, so I trust that someone else reading this
> who uses Eclipse can help you better than me.
>
> (Am I correct to presume that the relevant setting in your "appengine-
> web.xml" points to the correct "logging.properties" file and
> location?)
>
> On Jun 11, 8:59 am, Daniel  wrote:
>
> > I did as you said in 1 --> did nothing
>
> > after I did as you said in 2   --> the logs started to appear in my
> > development eclipse console (*which is really great! , thx , although
> > only warning and above logs :()
>
> > did as you said in 3, but did not helped :(
>
> > i tired this
> > .level = WARNING
> > dr.todo.beans.[...].level = FINE
>
> > and this
> > .level = WARNING
> > dr.[...].level = FINE
>
> > here an example from the code and the output from the logs
>
> > System.err.println("Inside HoursReportBean Constructor
> > eerr b4");
> > log.fine("*Inside HoursReportBean Constructor"+":"+new Date());
> > log.info("*Inside HoursReportBean Constructor"+":"+new Date());
> > log.warning("**Inside HoursReportBean Constructor"+":"+new Date());
> > log.severe("**Inside HoursReportBean Constructor"+":"+new Date());
> > System.err.println("Inside HoursReportBean Constructor
> > eerr after");
>
> > in logs i see the following:
>
> > #
> > 2011-06-11 00:58:06.446
>
> > [vedmack/1.351054244259633422].: Inside HoursReportBean
> > Constructor eerr b4
>
> > #
> > W 2011-06-11 00:58:06.449
>
> > dr.todo.beans.HoursReportBean : **Inside HoursReportBean
> > Constructor:Sat Jun 11 07:58:06 UTC 2011
>
> > #
> > E 2011-06-11 00:58:06.450
>
> > dr.todo.beans.HoursReportBean : **Inside HoursReportBean
> > Constructor:Sat Jun 11 07:58:06 UTC 2011
>
> > #
> > W 2011-06-11 00:58:06.450
>
> > [vedmack/1.351054244259633422].: Inside HoursReportBean
> > Constructor eerr after
>
> > 4) its already with lower cases
>
> > On Jun 10, 11:43 pm, Ian Marshall  wrote:
>
> > > 1.  Have a look 
> > > athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> > > for a hint about your "appengine-web.xml" file.
>
> > > 2.  I place my "logging.properties" file in
>
> > >   /WEB-INF/classes
>
> > > Why? I cannot remember, but this worked for me.
>
> > > 3.  Your "logging.properties" file uses its default level, for your
> > > own classes, of
>
> > >   # Set the default logging level for all loggers
> > >   .level = WARNING
>
> > > I use
>
> > >   # Set the default logging level for all loggers
> > >   .level = WARNING
>
> > >   com.my.app.[...].level = FINE
>
> > > This then allows my log message of level FINE or more severe to be
> > > recorded.
>
> > > 4. Case sensitivity: I recall (perhaps wrongly) that
> > > "logging.properties" will work whereas "Logging.properties" will not.
>
> > > Does any of this help?
>
> > > On Jun 10, 8:33 pm, Daniel  wrote:
>
> > > > this is the content of the logging.properties file (I have never
> > > > touched it)
>
> > > > # A default java.util.logging configuration.
> > > > # (All App Engine logging is through java.util.logging by default).
> > > > #
> > > > # To use this configuration, copy it into your application's WEB-INF
> > > > # folder and add the following to your appengine-web.xml:
> > > > #
> > > > # 
> > > > #   
> > > > # 
> > > > #
>
> > > > # Set the default logging level for all loggers to WARNING
> > > > .level = WARNING
>
> > > > # Set the default logging level for ORM, specifically, to WARNING
> > > > DataNucleus.JDO.level=WARNING
> > > > DataNucleus.Persistence.level=WARNING
> > > > DataNucleus.Cache.level=WARNING
> > > > DataNucleus.MetaData.level=WARNING
> > > > DataNucleus.General.level=WARNING
> > > > DataNucleus.Utility.level=WARNING
> > > > DataNucleus.Transaction.level=WARNING
> > > > DataNucleus.Datastore.level=WARNING
> > > > DataNucleus.ClassLoading.level=WARNING
> > > > DataNucleus.Plugin.level=WARNING
> > > > DataNucleus.ValueGeneration.level=WARNING
> > > > DataNucleus.Enhancer.level=WARNING
> > > > DataNucleus.SchemaTool.level=WARNING
>
> > > > and I have only 1 copy of it, and it was never moved, in WEB-INF
>
> > > > any ideas?
>
> > > > On Jun 9, 11:31 am, Ian Marshall  wrote:
>
> > > > > Hi,
>
> > > > > A few trouble-shooting questions:
>
> > > > >   ·  What's in your "logging.properties" file?
> > > > >   ·  Where is this file? Has it moved recently? Have you more than one
> > > > > copy of this file?
>
> > > > > On Jun 8, 2:00 pm, Daniel  wrote:
>
> > > > > > Hi
>
> > > > > > I always was writing the info messages to the log (like described in
> > >

[appengine-java] Update doesn't always Update

2011-06-11 Thread Gregory Werner
First, I noticed that a ,txt file I put in war/WEB-INF wasn't seeing its 
updates picked up.  I changed the .txt file to contain 7 lines and it still 
only read 6 lines.  Then I noticed a .jsp file was not updating.  I put in 
some java into the jsp to read this text file.  I get the following in my 
log:

/jsp/index.jsp
java.lang.NullPointerException
at java.io.Reader.(Reader.java:78)
at java.io.InputStreamReader.(InputStreamReader.java:72)
at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:56)

Then i take the portion out of the .jsp file which does the file reading and I 
get the same log.

Is there anything I could be doing or not doing to prevent .jsp files and files 
in the classpath from being
overwritten?  Maybe the java file generated from the .jsp file is not being 
updated while the .jsp is?


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



[appengine-java] Nested Embedded Classes with JDO

2011-06-11 Thread objectuser
I have an embedded class that embeds another class.  In order to
remove conflicts with the embedding class, I use the @Embedded
annotation like this:

class X {
@Embedded(members = { @Persistent(name = "prop1", columns =
@Column(name = "yProp1")),
@Persistent(name = "prop2", columns = @Column(name =
"yProp2"))})
private Y y;
...
}

However, Y also has an embedded class that may conflict with
properties of X.  Currently, I do this in Y:

class Y {
@Embedded(members = { @Persistent(name = "prop1", columns =
@Column(name = "zProp1")),
@Persistent(name = "prop2", columns = @Column(name =
"zProp2"))})
private Z z;
...
}

This works, but I think it's more desirable to provide the renames of
the properties of Z in X because X is going to be the place where all
of the conflicts need to be removed, and I may need different renames
in different Xs.

However, I don't know the syntax for that.  Reading through the JDO
docs, I'm not quite able to get if it's even possible.

Does anyone know how to do this?

Thanks.

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



[appengine-java] Android and GWT 2.4 : AppEngine response time is slow

2011-06-11 Thread OferR


I am using a modified version of the TaskCloud example to read/write my own 
data.

While testing on a a deployed version, I've noticed that the round-trip 
response time is slow.

While using WiFi on my Android device, I get a 100ms ping response to 
appspot.com. I have changed the AppEngine application to do nothing (The 
Google Dashboard shows <100ms Average Latency).

The problem is that the time it takes for HttpClient client .execute(post) 
is about 3 seconds. (This is the time when an instance is already loaded. No 
warm-up time.)

Any suggestions would be greatly appreciated.

*EDIT*: I've watched the video of Google I/O showing the CloudTasks 
Android-AppEngine app, and you can see that refreshing the list (a single 
call to AppEngine) takes about 3 seconds as well. The guy is saying 
something about performance which I didn't fully get (debuggers are running 
at both ends?)

The video: http://www.youtube.com/watch?v=M7SxNNC429U&feature=related Time 
location: 0:46:45

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



[appengine-java] Java Google App Engine bulk loader upload error “OverflowError: date value out of range”

2011-06-11 Thread Dennis Lo


I'm using the bulk loader to download my *Review* kind from one GAE server 
and upload to another GAE server. This *Review* kind contains about 30,000 
entities. 

I use the command to upload:

appcfg.py upload_data --kind=Review --filename=review.csv 
--application= --url=http://.appspot.com/remote_api 
--rps_limit=500 --bandwidth_limit=250 --batch_size=100

*NOTE: The entire error is pretty long. So I've included it at the bottom of 
this question.*

The upload doesn't start at all and stops at the line: [INFO ] Opening 
database: bulkloader-progress-20110611.222101.sql3

I see at the bottom of the entire trace: lambda val: _EPOCH + 
datetime.timedelta(microseconds=val), OverflowError: date value out of range

I suspect that this is caused by badly formated date's found in my *
publisheddate* column (see below for entire *Review* kind). 
--
What I've already tried to fix it 

I ran the GQL: SELECT * FROM Review where publisheddate = null in the GAE 
admin portal and found around 15 entities with *null* values for the *
publisheddate* column. So I deleted those, redownloaded and tried 
reuploading the *Review* kind. I still get the same error.

I'm thinking, since I'm using the upload command without a config file 
parameter e.g. --config_file=bulkloader.yaml (see above upload that I'm not 
specifying the --config_file)

I'm relying on the datastore statistics to determine what is downloaded to 
my *review.csv* file. 

Now since I just deleted the entities with *null publisheddate* this 
redownloading and then reuploading immediately is not doing anything 
different from my initial download and upload. Since the datastore 
statistics aren't updated yet.
--
My Questions 
   
   1. 
   
   As there are 30, 000 entities I'm unsure as to how I can locate entities 
   with badly formated dates. Is there a quick away to locate entities with bad 
   *publisheddate* values?
   2. 
   
   Does anyone know how to fix this issue? I'm not sure from the error trace 
   what the real problem is.
   
--
Review kind 

I'm using the objectify3.0.jar to manipulate my GAE datastore. So my *Review
* kind looks like this:

public class Review {
@Id private Long id; //This is my key property, auto generated by objectify 
 
private String reviewlink;  
private Date publisheddate;
private double rating;  
private Long gameid;//to make querying easier

//ommitting getters and setters 
}

--
Entire error 

10:20:48>appcfg.py upload_data --kind=Review --filename=review.csv 
--application= --url=http://.appspot.com/remote_api 
--rps_limit=500 --bandwidth_limit=250 --batch_size=100
Uploading data records.
[INFO] Logging to bulkloader-log-20110611.222101
[INFO] Throttling transfers:
[INFO] Bandwidth: 250 bytes/second
[INFO] HTTP connections: 8/second
[INFO] Entities inserted/fetched/modified: 500/second
[INFO] Batch Size: 100
[INFO] Opening database: bulkloader-progress-20110611.222101.sql3
Traceback (most recent call last):
  File "/usr/local/bin/appcfg.py", line 76, in 
run_file(__file__, globals())
  File "/usr/local/bin/appcfg.py", line 72, in run_file
execfile(script_path, globals_)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 3592, in 
main(sys.argv)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 3583, in main
result = AppCfgApp(argv).Run()
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 2229, in Run
self.action(self)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 3368, in __call__
return method()
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 3195, in PerformUpload
run_fn(args)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py",
 line 3087, in RunBulkloader
sys.exit(bulkloader.Run(arg_dict))
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/bulkloader.py",
 line 4360, in Run
return _PerformBulkload(arg_dict)
  File 
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengin

[appengine-java] Re: How do I migrate old data (change schema) in a deployed Java app?

2011-06-11 Thread Nathan Stiles
Oh I see.  I was thinking you meant something else.  I was imagining 
something that specifically aids in data object design in eclipse or some 
other IDE.

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



[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Ian Marshall
Sorry that it's not working for you.

I use NetBeans for my IDE, so I trust that someone else reading this
who uses Eclipse can help you better than me.

(Am I correct to presume that the relevant setting in your "appengine-
web.xml" points to the correct "logging.properties" file and
location?)


On Jun 11, 8:59 am, Daniel  wrote:
> I did as you said in 1 --> did nothing
>
> after I did as you said in 2   --> the logs started to appear in my
> development eclipse console (*which is really great! , thx , although
> only warning and above logs :()
>
> did as you said in 3, but did not helped :(
>
> i tired this
> .level = WARNING
> dr.todo.beans.[...].level = FINE
>
> and this
> .level = WARNING
> dr.[...].level = FINE
>
> here an example from the code and the output from the logs
>
> System.err.println("Inside HoursReportBean Constructor
> eerr b4");
> log.fine("*Inside HoursReportBean Constructor"+":"+new Date());
> log.info("*Inside HoursReportBean Constructor"+":"+new Date());
> log.warning("**Inside HoursReportBean Constructor"+":"+new Date());
> log.severe("**Inside HoursReportBean Constructor"+":"+new Date());
> System.err.println("Inside HoursReportBean Constructor
> eerr after");
>
> in logs i see the following:
>
> #
> 2011-06-11 00:58:06.446
>
> [vedmack/1.351054244259633422].: Inside HoursReportBean
> Constructor eerr b4
>
> #
> W 2011-06-11 00:58:06.449
>
> dr.todo.beans.HoursReportBean : **Inside HoursReportBean
> Constructor:Sat Jun 11 07:58:06 UTC 2011
>
> #
> E 2011-06-11 00:58:06.450
>
> dr.todo.beans.HoursReportBean : **Inside HoursReportBean
> Constructor:Sat Jun 11 07:58:06 UTC 2011
>
> #
> W 2011-06-11 00:58:06.450
>
> [vedmack/1.351054244259633422].: Inside HoursReportBean
> Constructor eerr after
>
> 4) its already with lower cases
>
> On Jun 10, 11:43 pm, Ian Marshall  wrote:
>
>
>
>
>
>
>
> > 1.  Have a look 
> > athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> > for a hint about your "appengine-web.xml" file.
>
> > 2.  I place my "logging.properties" file in
>
> >   /WEB-INF/classes
>
> > Why? I cannot remember, but this worked for me.
>
> > 3.  Your "logging.properties" file uses its default level, for your
> > own classes, of
>
> >   # Set the default logging level for all loggers
> >   .level = WARNING
>
> > I use
>
> >   # Set the default logging level for all loggers
> >   .level = WARNING
>
> >   com.my.app.[...].level = FINE
>
> > This then allows my log message of level FINE or more severe to be
> > recorded.
>
> > 4. Case sensitivity: I recall (perhaps wrongly) that
> > "logging.properties" will work whereas "Logging.properties" will not.
>
> > Does any of this help?
>
> > On Jun 10, 8:33 pm, Daniel  wrote:
>
> > > this is the content of the logging.properties file (I have never
> > > touched it)
>
> > > # A default java.util.logging configuration.
> > > # (All App Engine logging is through java.util.logging by default).
> > > #
> > > # To use this configuration, copy it into your application's WEB-INF
> > > # folder and add the following to your appengine-web.xml:
> > > #
> > > # 
> > > #   
> > > # 
> > > #
>
> > > # Set the default logging level for all loggers to WARNING
> > > .level = WARNING
>
> > > # Set the default logging level for ORM, specifically, to WARNING
> > > DataNucleus.JDO.level=WARNING
> > > DataNucleus.Persistence.level=WARNING
> > > DataNucleus.Cache.level=WARNING
> > > DataNucleus.MetaData.level=WARNING
> > > DataNucleus.General.level=WARNING
> > > DataNucleus.Utility.level=WARNING
> > > DataNucleus.Transaction.level=WARNING
> > > DataNucleus.Datastore.level=WARNING
> > > DataNucleus.ClassLoading.level=WARNING
> > > DataNucleus.Plugin.level=WARNING
> > > DataNucleus.ValueGeneration.level=WARNING
> > > DataNucleus.Enhancer.level=WARNING
> > > DataNucleus.SchemaTool.level=WARNING
>
> > > and I have only 1 copy of it, and it was never moved, in WEB-INF
>
> > > any ideas?
>
> > > On Jun 9, 11:31 am, Ian Marshall  wrote:
>
> > > > Hi,
>
> > > > A few trouble-shooting questions:
>
> > > >   ·  What's in your "logging.properties" file?
> > > >   ·  Where is this file? Has it moved recently? Have you more than one
> > > > copy of this file?
>
> > > > On Jun 8, 2:00 pm, Daniel  wrote:
>
> > > > > Hi
>
> > > > > I always was writing the info messages to the log (like described in
> > > > > here :
>
> > > > >http://code.google.com/appengine/docs/java/runtime.html#Logging)
>
> > > > > I always used the .info method and the messages were perfectly shown
> > > > > in the Admin Log page,
>
> > > > > But recently i noticed the .info messages stopped to work, adn
> > > > > only .warning and higher are written into the Log...
>
> > > > > Why is that?
>
> > > > > How can I write .info messages into the log?
>
> > > > > import java.util.logging.Logger;
>
> > > > > private static final Logger log =
> > > > > Logger.getLogger(KeepSessionAliveServlet.class.getName());
>
> > > > > log.info("Kee

[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
I did as you said in 1 --> did nothing

after I did as you said in 2   --> the logs started to appear in my
development eclipse console (*which is really great! , thx , although
only warning and above logs :()

did as you said in 3, but did not helped :(

i tired this
.level = WARNING
dr.todo.beans.[...].level = FINE


and this
.level = WARNING
dr.[...].level = FINE


here an example from the code and the output from the logs


System.err.println("Inside HoursReportBean Constructor
eerr b4");
log.fine("*Inside HoursReportBean Constructor"+":"+new Date());
log.info("*Inside HoursReportBean Constructor"+":"+new Date());
log.warning("**Inside HoursReportBean Constructor"+":"+new Date());
log.severe("**Inside HoursReportBean Constructor"+":"+new Date());
System.err.println("Inside HoursReportBean Constructor
eerr after");

in logs i see the following:


#
2011-06-11 00:58:06.446

[vedmack/1.351054244259633422].: Inside HoursReportBean
Constructor eerr b4


#
W 2011-06-11 00:58:06.449

dr.todo.beans.HoursReportBean : **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
E 2011-06-11 00:58:06.450

dr.todo.beans.HoursReportBean : **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
W 2011-06-11 00:58:06.450

[vedmack/1.351054244259633422].: Inside HoursReportBean
Constructor eerr after





4) its already with lower cases

On Jun 10, 11:43 pm, Ian Marshall  wrote:
> 1.  Have a look 
> athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> for a hint about your "appengine-web.xml" file.
>
> 2.  I place my "logging.properties" file in
>
>   /WEB-INF/classes
>
> Why? I cannot remember, but this worked for me.
>
> 3.  Your "logging.properties" file uses its default level, for your
> own classes, of
>
>   # Set the default logging level for all loggers
>   .level = WARNING
>
> I use
>
>   # Set the default logging level for all loggers
>   .level = WARNING
>
>   com.my.app.[...].level = FINE
>
> This then allows my log message of level FINE or more severe to be
> recorded.
>
> 4. Case sensitivity: I recall (perhaps wrongly) that
> "logging.properties" will work whereas "Logging.properties" will not.
>
> Does any of this help?
>
> On Jun 10, 8:33 pm, Daniel  wrote:
>
> > this is the content of the logging.properties file (I have never
> > touched it)
>
> > # A default java.util.logging configuration.
> > # (All App Engine logging is through java.util.logging by default).
> > #
> > # To use this configuration, copy it into your application's WEB-INF
> > # folder and add the following to your appengine-web.xml:
> > #
> > # 
> > #   
> > # 
> > #
>
> > # Set the default logging level for all loggers to WARNING
> > .level = WARNING
>
> > # Set the default logging level for ORM, specifically, to WARNING
> > DataNucleus.JDO.level=WARNING
> > DataNucleus.Persistence.level=WARNING
> > DataNucleus.Cache.level=WARNING
> > DataNucleus.MetaData.level=WARNING
> > DataNucleus.General.level=WARNING
> > DataNucleus.Utility.level=WARNING
> > DataNucleus.Transaction.level=WARNING
> > DataNucleus.Datastore.level=WARNING
> > DataNucleus.ClassLoading.level=WARNING
> > DataNucleus.Plugin.level=WARNING
> > DataNucleus.ValueGeneration.level=WARNING
> > DataNucleus.Enhancer.level=WARNING
> > DataNucleus.SchemaTool.level=WARNING
>
> > and I have only 1 copy of it, and it was never moved, in WEB-INF
>
> > any ideas?
>
> > On Jun 9, 11:31 am, Ian Marshall  wrote:
>
> > > Hi,
>
> > > A few trouble-shooting questions:
>
> > >   ·  What's in your "logging.properties" file?
> > >   ·  Where is this file? Has it moved recently? Have you more than one
> > > copy of this file?
>
> > > On Jun 8, 2:00 pm, Daniel  wrote:
>
> > > > Hi
>
> > > > I always was writing the info messages to the log (like described in
> > > > here :
>
> > > >http://code.google.com/appengine/docs/java/runtime.html#Logging)
>
> > > > I always used the .info method and the messages were perfectly shown
> > > > in the Admin Log page,
>
> > > > But recently i noticed the .info messages stopped to work, adn
> > > > only .warning and higher are written into the Log...
>
> > > > Why is that?
>
> > > > How can I write .info messages into the log?
>
> > > > import java.util.logging.Logger;
>
> > > > private static final Logger log =
> > > > Logger.getLogger(KeepSessionAliveServlet.class.getName());
>
> > > > log.info("KeepSessionAliveServlet");   <-- not working :(
>
> > > > log.warning("KeepSessionAliveServlet");   <-- does work :/
>
> > > > Any ideas?
>
>

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



[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
I did as you said in 1 --> did nothing

after I did as you said in 2   --> the logs started to appear in my
development eclipse console (*which is really great! , thx , although
only warning and above logs :()

did as you said in 3, but did not helped :(

i tired this
.level = WARNING
dr.todo.beans.[...].level = FINE


and this
.level = WARNING
dr.[...].level = FINE


here an example from the code and the output from the logs


System.err.println("Inside HoursReportBean Constructor
eerr b4");
log.fine("*Inside HoursReportBean Constructor"+":"+new Date());
log.info("*Inside HoursReportBean Constructor"+":"+new Date());
log.warning("**Inside HoursReportBean Constructor"+":"+new Date());
log.severe("**Inside HoursReportBean Constructor"+":"+new Date());
System.err.println("Inside HoursReportBean Constructor
eerr after");

in logs i see the following:


#
2011-06-11 00:58:06.446

[vedmack/1.351054244259633422].: Inside HoursReportBean
Constructor eerr b4


#
W 2011-06-11 00:58:06.449

dr.todo.beans.HoursReportBean : **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
E 2011-06-11 00:58:06.450

dr.todo.beans.HoursReportBean : **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
W 2011-06-11 00:58:06.450

[vedmack/1.351054244259633422].: Inside HoursReportBean
Constructor eerr after





4) its already with lower cases

On Jun 10, 11:43 pm, Ian Marshall  wrote:
> 1.  Have a look 
> athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> for a hint about your "appengine-web.xml" file.
>
> 2.  I place my "logging.properties" file in
>
>   /WEB-INF/classes
>
> Why? I cannot remember, but this worked for me.
>
> 3.  Your "logging.properties" file uses its default level, for your
> own classes, of
>
>   # Set the default logging level for all loggers
>   .level = WARNING
>
> I use
>
>   # Set the default logging level for all loggers
>   .level = WARNING
>
>   com.my.app.[...].level = FINE
>
> This then allows my log message of level FINE or more severe to be
> recorded.
>
> 4. Case sensitivity: I recall (perhaps wrongly) that
> "logging.properties" will work whereas "Logging.properties" will not.
>
> Does any of this help?
>
> On Jun 10, 8:33 pm, Daniel  wrote:
>
> > this is the content of the logging.properties file (I have never
> > touched it)
>
> > # A default java.util.logging configuration.
> > # (All App Engine logging is through java.util.logging by default).
> > #
> > # To use this configuration, copy it into your application's WEB-INF
> > # folder and add the following to your appengine-web.xml:
> > #
> > # 
> > #   
> > # 
> > #
>
> > # Set the default logging level for all loggers to WARNING
> > .level = WARNING
>
> > # Set the default logging level for ORM, specifically, to WARNING
> > DataNucleus.JDO.level=WARNING
> > DataNucleus.Persistence.level=WARNING
> > DataNucleus.Cache.level=WARNING
> > DataNucleus.MetaData.level=WARNING
> > DataNucleus.General.level=WARNING
> > DataNucleus.Utility.level=WARNING
> > DataNucleus.Transaction.level=WARNING
> > DataNucleus.Datastore.level=WARNING
> > DataNucleus.ClassLoading.level=WARNING
> > DataNucleus.Plugin.level=WARNING
> > DataNucleus.ValueGeneration.level=WARNING
> > DataNucleus.Enhancer.level=WARNING
> > DataNucleus.SchemaTool.level=WARNING
>
> > and I have only 1 copy of it, and it was never moved, in WEB-INF
>
> > any ideas?
>
> > On Jun 9, 11:31 am, Ian Marshall  wrote:
>
> > > Hi,
>
> > > A few trouble-shooting questions:
>
> > >   ·  What's in your "logging.properties" file?
> > >   ·  Where is this file? Has it moved recently? Have you more than one
> > > copy of this file?
>
> > > On Jun 8, 2:00 pm, Daniel  wrote:
>
> > > > Hi
>
> > > > I always was writing the info messages to the log (like described in
> > > > here :
>
> > > >http://code.google.com/appengine/docs/java/runtime.html#Logging)
>
> > > > I always used the .info method and the messages were perfectly shown
> > > > in the Admin Log page,
>
> > > > But recently i noticed the .info messages stopped to work, adn
> > > > only .warning and higher are written into the Log...
>
> > > > Why is that?
>
> > > > How can I write .info messages into the log?
>
> > > > import java.util.logging.Logger;
>
> > > > private static final Logger log =
> > > > Logger.getLogger(KeepSessionAliveServlet.class.getName());
>
> > > > log.info("KeepSessionAliveServlet");   <-- not working :(
>
> > > > log.warning("KeepSessionAliveServlet");   <-- does work :/
>
> > > > Any ideas?
>
>

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