Hi, Another way to handle this would be to create a separate logging.properties file, and then add the following to your launch configuration:
-Djava.util.logging.config.file=/path/to/test/logging.properties ... This would be cleaner than modifying your code. Rajeev On Tue, Sep 8, 2009 at 7:24 PM, Erem <[email protected]> wrote: > > The root problem unsurprisingly turns out to be logging configuration. > > Stop this from happening by setting the following DataNucleus loggers > PRIOR to your JDOHelper.getPersistenceManagerFactory() calls: > > //This one caused all the WARNING and SEVERE logs about eclipse UI > elements > Logger.getLogger("DataNucleus.Plugin").setLevel(Level.OFF); > > //This one logged the last couple INFOs about Persistence > configuration > Logger.getLogger("DataNucleus.Persistence").setLevel(Level.WARNING); > > As it doesn't seem even the WARNINGs or SEVEREs affect test outcomes, > this seems like a perfectly fine way to do it. > > On Sep 8, 3:40 pm, Erem <[email protected]> wrote: > > I just found out that it all gets spammed as a response to > > JDOHelper.getPersistenceManagerFactory(). It only happens when running > > the Local Service implementation as specified on the AppEngine wiki > > > > On Sep 8, 3:34 pm, Erem <[email protected]> wrote: > > > > > Hi Rajeev, > > > > > Thanks for the response! It's a normal JUnit launch config. > > > > > There are only 2 classpath entries in my launch config: > > > ------- > > > v Bootstrap Entries > > > JRE System Library [jre1.6.0_15 - 32-bit[ > > > v User Entries > > > > MyProject (default classpath) > > > -------- > > > I still can't figure it out how to shut these logs up =/ > > > > > On Aug 31, 11:52 am, Rajeev Dayal <[email protected]> wrote: > > > > > > Hi, > > > > > > Is this a normal JUnit Launch Configuration, or is there a special > plugin > > > > that you're using? > > > > > > Can you navigate to the launch configuration's classpath tab and list > out > > > > the entries? > > > > > > Thanks, > > > > Rajeev > > > > > > On Wed, Aug 26, 2009 at 4:58 PM, Amendmen7 <[email protected]> wrote: > > > > > > > I'm having the same issues. I have tried turning off all known > loggers > > > > > in the setUp methods of my LocalDatastoreTestCase superclass, but > it > > > > > has no effect re: this logspam! > > > > > > > Has anyone found an answer? > > > > > > > On Aug 5, 8:41 am, Stephan <[email protected]> wrote: > > > > > > I'm having the same problem here. Using a fresh eclipse install > and a > > > > > > simple test-application, I get the same messages. They only > appear > > > > > > when I use JDO in my unit tests. > > > > > > Except for the error log messages, everything seems to work fine. > But > > > > > > starting each unit-test with more then 30 warnings and errors > doesn't > > > > > > seem like a clean way to test an application. > > > > > > > > Did you find a solution yet? I'd think there would be a much > larger > > > > > > group with the same problem, or isn't anyone unit-testing here? > :) > > > > > > > > On 27 jun, 15:57, Peter Recore <[email protected]> wrote: > > > > > > > > > I have a warning message showing up in my logs when I run my > unit > > > > > > > tests in Eclipse, using the junit plugin. > > > > > > > I have the google plugin installed. > > > > > > > The messages seem to be coming from the DataNucleus logger. > > > > > > > > > Here is one line. There are about 30 more all referencing > different > > > > > > > extension points. > > > > > > > Jun 27, 2009 8:42:40 AM > > > > > > > org.datanucleus.plugin.NonManagedPluginRegistry > registerExtensions > > > > > > > WARNING: Extension Point "org.eclipse.ui.views" not registered, > but > > > > > > > plugin "org.eclipse.jdt.junit" defined in > file:/C:/Documents%20and > > > > > > > > %20Settings/peter/Desktop/eclipse/configuration/org.eclipse.osgi/ > > > > > > > bundles/307/1/.cp/META-INF/MANIFEST.MF refers to it. > > > > > > > > > Then there are some that look like this: > > > > > > > > > Jun 27, 2009 8:42:40 AM > > > > > > > org.datanucleus.plugin.NonManagedPluginRegistry > resolveConstraints > > > > > > > SEVERE: Bundle "org.eclipse.jdt.junit4.runtime" requires > "org.junit4" > > > > > > > but it cannot be resolved. > > > > > > > > > I'm hoping someone can give me a hint as to whether this is an > eclipse > > > > > > > issue, a junit issue, a datanucleus issue, or something else. > > > > > > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
