logo       


Re: DOMWrite an HTMLDocument: msg#00013

Subject: Re: DOMWrite an HTMLDocument
Hi Jake,

I did test the reduced test case. It produces the exact same exception from when I get the HTMLDocument from my business object.

Thanx,
Roger.

--
Jacob Kjome wrote:
Hi Roger,

See comments below...

At 11:30 PM 7/9/2003 -0300, you wrote:

Hey Barracuda wizards!

I'm updating an application from Barracuda 0.something to Barracuda 1.2 and I got stuck on this:

--
java.lang.NullPointerException
at org.enhydra.xml.io.BaseDOMFormatter.getEncoding(BaseDOMFormatter.java:326) at org.enhydra.xml.io.BaseDOMFormatter.(BaseDOMFormatter.java:374)
        at org.enhydra.xml.io.HTMLFormatter.(HTMLFormatter.java:99)
at org.enhydra.xml.io.DOMFormatter.getFormatter(DOMFormatter.java:156)
        at org.enhydra.xml.io.DOMFormatter.write(DOMFormatter.java:192)
at org.enhydra.barracuda.core.util.dom.DefaultDOMWriter.write(DefaultDOMWriter.java:181) at org.enhydra.barracuda.core.util.dom.DefaultDOMWriter.write(DefaultDOMWriter.java:146) at lsb.presentation.screens.WizardScreen$RenderTabPreviewHandler.handleViewEvent(WizardScreen.java:336)
--


Hmm... curious. Looks like it has more to do with XMLC than Barracuda, though. As such, I'm cc'ing the XMLC list.

when writing an HTMLDocument with DefaultDOMWriter.

Do you guys have an idea what it could be? The reduced testcase is:

HTMLDocument themeDoc = org.enhydra.xml.xmlc.html.HTMLDocumentFactory.createBasicDocument();
new DefaultDOMWriter().write(themeDoc, context.getResponse());


What exactly are you trying to do? createBasicDocument() will create an empty HTMLDocument. Why would you want to write that immediately to output? It still shouldn't fail with a NullPointerException in BaseDOMFormatter, however. Looks like it bombs on the second line below...

} else if (document instanceof XMLObjectLink) {
        encoding = ((XMLObjectLink)document).getXMLObject().getEncoding();
}

Not sure how that would cause a null pointer exception? If the document is an instance of XMLObjectLink, then the document is, obviously, not null and that whole line should succeed. Richard, David, Mark, any ideas here?

Roger, did you actually test your reduced testcase or are you assuming that it is equivalent to another piece of code that is bombing? If you haven't tested the reduced testcase, can you post your actual code? It might make a bit more sense.

Jake


Cheers,
Roger.

_______________________________________________
Barracuda mailing list
Barracuda@xxxxxxxxxxxxxxxx
http://barracudamvc.org/lists/listinfo/barracuda


_______________________________________________
Barracuda mailing list
Barracuda@xxxxxxxxxxxxxxxx
http://barracudamvc.org/lists/listinfo/barracuda




Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe