Click here to Skip to main content
14,238,330 members
   

Java

 
AnswerRe: Code to Read Raw data from Wireless Modem in java Pin
jschell27-Dec-18 13:27
memberjschell27-Dec-18 13:27 
QuestionJava Panel Program Pin
Member 1408268117-Dec-18 11:36
memberMember 1408268117-Dec-18 11:36 
AnswerRe: Java Panel Program Pin
Richard MacCutchan17-Dec-18 22:33
protectorRichard MacCutchan17-Dec-18 22:33 
Questionjava program cannot compile Pin
Member 1409285317-Dec-18 9:55
memberMember 1409285317-Dec-18 9:55 
AnswerRe: java program cannot compile Pin
Richard MacCutchan17-Dec-18 22:23
protectorRichard MacCutchan17-Dec-18 22:23 
QuestionConnecting to website and checking elements Pin
Valentinor15-Dec-18 1:57
memberValentinor15-Dec-18 1:57 
AnswerRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 3:49
protectorRichard MacCutchan15-Dec-18 3:49 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 4:19
memberValentinor15-Dec-18 4:19 
Unfortunately I'm new to "web area", but I still have to learn it.
Quote:
You can check the existence of particular elements by reading the document surce.

So, I take it that the combination of DocumentBuilderFactory + DocumentBuilder + Document was the right choice, no?

Quote:
Unless you tell us what the errors are it is difficult to make any useful suggestions.

Well this one is a little more complicated. It is different from site to site (my best guess is the way they are made).
When I get pass the 403 error, I'm getting 503 (couldn't find a way to fix this one), and there are some websites where I don't get either but the last error:
java.io.IOException: Server returned HTTP response code: 403 for URL:

java.io.IOException: Server returned HTTP response code: 503 for URL:

[Fatal Error] :1:3: The markup in the document preceding the root element must be well-formed.
Exception in thread "main" org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed.

All these errors point to this line:
Document doc = db.parse(new InputSource(httpURLConnection.getInputStream()));

GeneralRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 4:40
protectorRichard MacCutchan15-Dec-18 4:40 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 4:54
memberValentinor15-Dec-18 4:54 
GeneralRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 5:01
protectorRichard MacCutchan15-Dec-18 5:01 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 5:54
memberValentinor15-Dec-18 5:54 
GeneralRe: Connecting to website and checking elements Pin
jschell15-Dec-18 7:05
memberjschell15-Dec-18 7:05 
AnswerRe: Connecting to website and checking elements Pin
jschell15-Dec-18 7:07
memberjschell15-Dec-18 7:07 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 9:30
memberValentinor15-Dec-18 9:30 
QuestionHandle Multiple Threads With One Server Pin
Member 1408670212-Dec-18 0:45
memberMember 1408670212-Dec-18 0:45 
AnswerRe: Handle Multiple Threads With One Server Pin
Richard MacCutchan12-Dec-18 21:54
protectorRichard MacCutchan12-Dec-18 21:54 
AnswerRe: Handle Multiple Threads With One Server Pin
jschell15-Dec-18 7:12
memberjschell15-Dec-18 7:12 
QuestionMerge sort question Pin
Member 1408406810-Dec-18 5:31
memberMember 1408406810-Dec-18 5:31 
AnswerRe: Merge sort question Pin
Richard MacCutchan10-Dec-18 6:32
protectorRichard MacCutchan10-Dec-18 6:32 
GeneralRe: Merge sort question Pin
Member 1408406810-Dec-18 11:37
memberMember 1408406810-Dec-18 11:37 
GeneralRe: Merge sort question Pin
Richard MacCutchan10-Dec-18 21:50
protectorRichard MacCutchan10-Dec-18 21:50 
GeneralRe: Merge sort question Pin
Member 1408406811-Dec-18 0:30
memberMember 1408406811-Dec-18 0:30 
QuestionBuffer reading is hanging while reading ? Pin
GiteHrudaya10-Dec-18 1:28
memberGiteHrudaya10-Dec-18 1:28 
AnswerRe: Buffer reading is hanging while reading ? Pin
Richard MacCutchan10-Dec-18 4:41
protectorRichard MacCutchan10-Dec-18 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.