This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Transformer throwing NullPointer while Reading xsl file

 
Amee Dabo
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

tran = (TransformerFactory.newInstance().newTransformer(new StreamSource(xsltPath)));

Above line of code is giving Null Pointer exception at run time:The exception is :
java.lang.NullPointerException
at com.utility.XSLTransformer.doSomeTransform(XSLTransformer.java:84)

xsltPath is a String & set to E:\Tomcat\webapps\mypeppod\xsl\treeMenu.xsl
treeMenu.xsl resides at the path metioned above
I have the same code for all files on my local machine taken from production erver.This code works perfectly well on production server -- doesnt give Nullpointer but on local machine this doesnt work & throws NullPointer.

Any idea where I might be going wrong?

I am completely new to xml..Please help..

Thanks,
Ameeta

[ August 04, 2006: Message edited by: Amee Dabo ]
[ August 04, 2006: Message edited by: Amee Dabo ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You couldn't come up with a better subject?

Please read this and this.
[ August 04, 2006: Message edited by: Bear Bibeault ]
 
Amee Dabo
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to xml/xslt & was struggling for 3 all days & nights on the problem but didnt get through & so made me write the subject line like this.Apologies for the same.Will take care in future.

Regards,
Ameeta
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic