Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Database 10g supported on Solaris 11 ?

User611985Dec 17 2014 — edited Dec 18 2014

Is Oracle Database 10g supported on Solaris 11.1 ?

Where is the support matrix?

Thanks in advance

Comments

843834
OK, I figured out that I needed to parse the DataInputStream.... so:
try {
            u = new URL("http://www.google.com"); 
            is = u.openStream(); 
            dis = new DataInputStream(new BufferedInputStream(is)); 
            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            docBuilderFactory.setIgnoringComments(true);
            docBuilderFactory.setValidating(false);
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            Document doc = docBuilder.parse(dis);  // The exception is caught here.....

        } catch (Exception ex) {
               System.out.println(ex.getMessage());
         }
But now I get this exception:
class org.xml.sax.SAXParseException
The entity name must immediately follow the '&' in the entity reference.

Any idea?
843834
Or in other words...

What is the best way to parse a URL and ignore all SAXParseException.
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse("http://www.gogle.com");
Thanks.
DrClap
n_k wrote:
What is the best way to parse a URL and ignore all SAXParseException.
The best way is to not use an XML parser. XML parsers are required to throw an exception and stop parsing as soon as they encounter malformed XML.

And since (according to your example) you're trying to parse HTML, you would be better off to use an HTML parser that produces a DOM.
843834
Thanks.

I used the html parser (http://htmlparser.sourceforge.net/) and it works fine.
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 15 2015
Added on Dec 17 2014
3 comments
1,469 views