• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

I'm not able to get FrontMan working

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I'm trying to use Mr. Bear's FrontMan and I got this exception:

Any ideas?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you could tell us a little about how you set things up.
Which application server, OS, how you configured it.
Maybe post some of your code.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have FrontMan.jar, commons-logging.jar in my WEB-INF/lib
Snippet of web.xml:

Two files are created under WEB-INF directly:
view.names.properties
command.verbs.properties
I'm using WebLogic8.1 on Windows 2K
My first command:
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


at java.util.Hashtable.get(Hashtable.java:333)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:270)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.bibeault.frontman.CommandBroker.<clinit>(CommandBroker.java:66)
... 28 more



Can you find the log that contains the full stack trace.
Somewhere in the '28 more' there should be a line that points to one of your classes.
 
Sheriff
Posts: 67693
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's at CommandBroker.java line 66? I'm away from my source at the moment and can't peek myself!

It looks from the stack trace like it's getting an NPE while trying to create the logger and that just seems weird.
 
Bear Bibeault
Sheriff
Posts: 67693
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, answered my own question. Line 66 is:

The line itself isn't NPE-ing, but rather a few levels into the call to getLog(). This is not anything I've ever seen before.

How do you have logging set up? Using Log4J or letting commons logging default to using java.util.logging?
[ November 22, 2007: Message edited by: Bear Bibeault ]
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I let the commons logging uses java.util.logging
 
Bear Bibeault
Sheriff
Posts: 67693
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, that's really weird. Not using Weblogic, I'm not sure how to further diagnose the logging issue. Have you used commons logging in other apps successfully?

It's obvious not a FrontMan issue as it works fine in other app servers and there's nothing it could possibly be doing on this line of code to cause an NPE deeper into the logging.

Is there a Jakarta mailing list for commons logging? What about Weblogic forums? Any mention of commons logging issues?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic