• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

I'm not able to get FrontMan working

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
Marshal
Posts: 67313
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 67313
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I let the commons logging uses java.util.logging
 
Bear Bibeault
Marshal
Posts: 67313
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • 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?
 
Are we home yet? Wait, did we forget the tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!