Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hotjavabean ?

1 view
Skip to first unread message

Ezra Roda

unread,
Feb 15, 1998, 3:00:00 AM2/15/98
to

Hi !
I'm trying to change the html Resource for the hotjavabean
First I add my own resource using the serDecoumentResouce(Reader)
I create my own reader then pass it to the method at the first time it work
fine,
But when I'm trying to change the current Resource using the same method
I got the following error:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:330)
at sunw.hotjava.doc.Document.clear(Document.java:1589)
at sunw.hotjava.doc.DocParser.run(DocParser.java:500)
at java.lang.Thread.run(Thread.java:474)
java.lang.NullPointerException
at sunw.hotjava.tags.TagAppletPanel.<init>(TagAppletPanel.java:175)
at sunw.hotjava.tags.APPLET.createView(APPLET.java:468)
at sunw.hotjava.doc.Formatter.performActivation(Formatter.java:452)
at sunw.hotjava.doc.Formatter.activateItem(Formatter.java:434)
at sunw.hotjava.doc.DocumentFormatter.notify(DocumentFormatter.java:887)
at sunw.hotjava.doc.Document.notifyViews(Document.java:615)
at sunw.hotjava.doc.Document.insertTagPair(Document.java:969)
at sunw.hotjava.doc.DocParser.handleStartTag(DocParser.java:921)
at sunw.html.Parser.startTag(Parser.java:360)
at sunw.html.Parser.parseTag(Parser.java:1776)
at sunw.html.Parser.parseContent(Parser.java:1807)
at sunw.html.Parser.parse(Parser.java:1922)
at sunw.hotjava.doc.DocParser.parseTemplate(DocParser.java:225)
at sunw.hotjava.doc.DocParser.run(DocParser.java:581)
at java.lang.Thread.run(Thread.java:474)

Is there any way to change the resource at runtime ?

I try the following :

m_reportBrowser.setDocumentSource( new StringReader("<html>Test1</html>") );

Then in the actionPerform method on some button event I'm trying to change
it to

m_reportBrowser.setDocumentSource( new StringReader("<html>Test2</html>") );

And I receive the same error .
Any idea ?

Thanks
Ezra.

0 new messages