You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Zender00 <da...@gmx.net> on 2009/03/11 13:43:37 UTC

Net.NNTP: Different behavior using different newsserver

Hi,

I got some troubles when I am using the org.apache.commons.net.nntp package
with different (binary-)newsserver.

On my first testserver all methods worked fine
(Connecting/Authentication/Load groups/Load header of a group).

But when I tried to use a different server (same kind of access) I get a
completely different behavior.
Connect and authentication works as the same but I does not receive any
newsgroup. (Method NNTPClient.listNewsgroups() )

On another server I get once again another behavior: This server does send a
lot of group information but I cannot receive any header from a newsgroup:
NNTPClient.retrieveArticleInfo() returns always only an "-1".

When I use GrabIT to scan these different server there are no problems, so I
guess there is something wrong in my nntp package.
Are there any known bugs within this package who can explain this?

Kind regards,
D. Penning
-- 
View this message in context: http://www.nabble.com/Net.NNTP%3A-Different-behavior-using-different-newsserver-tp22454348p22454348.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Net.NNTP: Different behavior using different newsserver

Posted by Zender00 <da...@gmx.net>.
Hi Rory,

I tried to use tcpdump to capture the output from my application and the
server input. But I were not able to notice significant varieties... It
seems that the server send empty responses.

Maybe I have to access the nntp server in different ways? I already noticed
that newsreader (e.g. GrabIT) perform a bunch of NNTP-Commands (Login,
Disconnect, Login, Disconnect, Select Group ...) before they start the
proper command...

Kind regards,
D. Penning


Rory Winston wrote:
> 
> Are you able to capture the output on the wire, so we can reproduce?
> 
> Zender00 wrote:
>> Hi,
>>
>> I got some troubles when I am using the org.apache.commons.net.nntp
>> package
>> with different (binary-)newsserver.
>>
>> On my first testserver all methods worked fine
>> (Connecting/Authentication/Load groups/Load header of a group).
>>
>> But when I tried to use a different server (same kind of access) I get a
>> completely different behavior.
>> Connect and authentication works as the same but I does not receive any
>> newsgroup. (Method NNTPClient.listNewsgroups() )
>>
>> On another server I get once again another behavior: This server does
>> send a
>> lot of group information but I cannot receive any header from a
>> newsgroup:
>> NNTPClient.retrieveArticleInfo() returns always only an "-1".
>>
>> When I use GrabIT to scan these different server there are no problems,
>> so I
>> guess there is something wrong in my nntp package.
>> Are there any known bugs within this package who can explain this?
>>
>> Kind regards,
>> D. Penning
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Net.NNTP%3A-Different-behavior-using-different-newsserver-tp22454348p22471961.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Net.NNTP: Different behavior using different newsserver

Posted by Rory Winston <ro...@gmail.com>.
Are you able to capture the output on the wire, so we can reproduce?

Zender00 wrote:
> Hi,
>
> I got some troubles when I am using the org.apache.commons.net.nntp package
> with different (binary-)newsserver.
>
> On my first testserver all methods worked fine
> (Connecting/Authentication/Load groups/Load header of a group).
>
> But when I tried to use a different server (same kind of access) I get a
> completely different behavior.
> Connect and authentication works as the same but I does not receive any
> newsgroup. (Method NNTPClient.listNewsgroups() )
>
> On another server I get once again another behavior: This server does send a
> lot of group information but I cannot receive any header from a newsgroup:
> NNTPClient.retrieveArticleInfo() returns always only an "-1".
>
> When I use GrabIT to scan these different server there are no problems, so I
> guess there is something wrong in my nntp package.
> Are there any known bugs within this package who can explain this?
>
> Kind regards,
> D. Penning
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: Net.NNTP: Different behavior using different newsserver

Posted by Zender00 <da...@gmx.net>.
Hi,

after a research and some tcpdumps I tried to use the same commands as
"GrabIT" for receiving the group headers.
I perform these actions (after I already load the groups successfully)
1.) Disconnect
2.) Connect/Authenticate
3.) Select Newsgroup
4.) Download header

At point (4) the program halts for some seconds and then it stopped with
exception:
"Connection closed without indication." This occurs in line

"DotTerminatedMessageReader reader =
(DotTerminatedMessageReader)client.retrieveArticleInfo(rangeFrom, rangeTo);
"

A really strange behaviour, do you see any reasons for this?

Kind regards,
D. Penning



Zender00 wrote:
> 
> Hi,
> 
> I got some troubles when I am using the org.apache.commons.net.nntp
> package with different (binary-)newsserver.
> 
> On my first testserver all methods worked fine
> (Connecting/Authentication/Load groups/Load header of a group).
> 
> But when I tried to use a different server (same kind of access) I get a
> completely different behavior.
> Connect and authentication works as the same but I does not receive any
> newsgroup. (Method NNTPClient.listNewsgroups() )
> 
> On another server I get once again another behavior: This server does send
> a lot of group information but I cannot receive any header from a
> newsgroup: NNTPClient.retrieveArticleInfo() returns always only an "-1".
> 
> When I use GrabIT to scan these different server there are no problems, so
> I guess there is something wrong in my nntp package.
> Are there any known bugs within this package who can explain this?
> 
> Kind regards,
> D. Penning
> 

-- 
View this message in context: http://www.nabble.com/Net.NNTP%3A-Different-behavior-using-different-newsserver-tp22454348p22539015.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org