Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

get PeerAddress and Solaris

3 posts in General Discussion (old) Last posting was on 2000-03-23 11:04:23.0Z
Peter Reedijk Posted on 2000-03-22 13:14:26.0Z
Newsgroups: sybase.public.easerver
From: "Peter Reedijk" <peter.reedijk@pica.nl>
Organization: 192.87.44.61
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: get PeerAddress and Solaris
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Wed, 22 Mar 2000 08:14:26 -0500
Lines: 29
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_5hYkMCAl$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25942
Article PK: 155970

A couple of months ago, there was a thread in this newsgroup on problems calling
get PeerAddress when Jaguar is running as NT Service. I have similar problems,
and on Solaris as well.

Btw I'm not calling getPeerAddress myself (I know nothing about Java), but the
EmailComponent from SDN (which I downloaded and installed succesfully) does.

On both platforms, everything works fine as long as I call the mail component
from a client or a standard component (built in PowerBuilder). When I call it
from a service component (also PB), either directly or via another standard
component, the following error appears in the server log:

Mar 22 13:59:28 2000: JavaJaguarApi: get PeerAddress failed

Difference: on Solaris, the mail is sent anyway, on NT it is not.
Version info: WinNT: Jaguar 3.0.1 (Build 30033)
Solaris: JaguarCTS - /Version 3.5(Build 35036)
(In both cases Jaguar is started as a console)

I ain't got a clue how I can avoid this error. Anyone does?
TIA,
Peter
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Dave Wolf [Sybase] Posted on 2000-03-22 17:49:21.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: get PeerAddress and Solaris
Date: Wed, 22 Mar 2000 12:49:21 -0500
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: vpn-eme-071.sybase.com 130.214.8.71
Message-ID: <347_n4gFUeCl$GA.111@forums.sybase.com>
References: <347_5hYkMCAl$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25912
Article PK: 155940

Peter,

Looks like a bug in my sample program. My code calls getPeerAddress() to
find out what the addy is of the email client. When calling from a service
component We'd need to skip this call. You can feel free to modify my
sample and I'll fix it when I get some cycles. Im on travel overseas this
week.

Dave Wolf
Internet Applications Division

"Peter Reedijk" <peter.reedijk@pica.nl> wrote in message
news:5hYkMCAl$GA.201@forums.sybase.com...
> A couple of months ago, there was a thread in this newsgroup on problems
calling
> get PeerAddress when Jaguar is running as NT Service. I have similar
problems,
> and on Solaris as well.
>
> Btw I'm not calling getPeerAddress myself (I know nothing about Java), but
the
> EmailComponent from SDN (which I downloaded and installed succesfully)
does.
>
> On both platforms, everything works fine as long as I call the mail
component
> from a client or a standard component (built in PowerBuilder). When I call
it
> from a service component (also PB), either directly or via another
standard
> component, the following error appears in the server log:
>
> Mar 22 13:59:28 2000: JavaJaguarApi: get PeerAddress failed
>
> Difference: on Solaris, the mail is sent anyway, on NT it is not.
> Version info: WinNT: Jaguar 3.0.1 (Build 30033)
> Solaris: JaguarCTS - /Version 3.5(Build 35036)
> (In both cases Jaguar is started as a console)
>
> I ain't got a clue how I can avoid this error. Anyone does?
> TIA,
> Peter
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp


Peter Reedijk Posted on 2000-03-23 11:04:23.0Z
Newsgroups: sybase.public.easerver
From: "Peter Reedijk" <peter.reedijk@pica.nl>
Organization: 192.87.44.61
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: get PeerAddress and Solaris
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 23 Mar 2000 06:04:23 -0500
Lines: 56
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_5SE5LeLl$GA.285@forums.sybase.com>
References: <347_5hYkMCAl$GA.201@forums.sybase.com> <347_n4gFUeCl$GA.111@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25846
Article PK: 155882

Thanks, Dave!

I commented out the first two lines in the process() function in the source file
SmtpEmailImpl.java:

listen();
say("HELO " + /*
InetAddress.getByName(com.sybase.jaguar.server.Jaguar.getPeerAddress()).getHostN
ame() + */ "\n");

and now it all works great, both on NT and Solaris.
Peter

On Wed, 22 Mar 2000 12:49:21 -0500,
in powersoft.public.easerver

Dave Wolf [Sybase] <dwolf@sybase.com> wrote:
>Peter,
>
>Looks like a bug in my sample program. My code calls getPeerAddress() to
>find out what the addy is of the email client. When calling from a service
>component We'd need to skip this call. You can feel free to modify my
>sample and I'll fix it when I get some cycles. Im on travel overseas this
>week.
>
>Dave Wolf
>Internet Applications Division
>
>"Peter Reedijk" <peter.reedijk@pica.nl> wrote in message
>news:5hYkMCAl$GA.201@forums.sybase.com...
>> A couple of months ago, there was a thread in this newsgroup on problems
>calling
>> get PeerAddress when Jaguar is running as NT Service. I have similar
>problems,
>> and on Solaris as well.
>>
>> Btw I'm not calling getPeerAddress myself (I know nothing about Java), but
>the
>> EmailComponent from SDN (which I downloaded and installed succesfully)
>does.
>>
>> On both platforms, everything works fine as long as I call the mail
>component
>> from a client or a standard component (built in PowerBuilder). When I call
>it
>> from a service component (also PB), either directly or via another
>standard
>> component, the following error appears in the server log:
>>
>> Mar 22 13:59:28 2000: JavaJaguarApi: get PeerAddress failed
>>
>> Difference: on Solaris, the mail is sent anyway, on NT it is not.
>> Version info: WinNT: Jaguar 3.0.1 (Build 30033)
>> Solaris: JaguarCTS - /Version 3.5(Build 35036)
>> (In both cases Jaguar is started as a console)
>>
>> I ain't got a clue how I can avoid this error. Anyone does?
>> TIA,
>> Peter
>> ---== Posted via the PFCGuide Web Newsreader ==---
>> http://www.pfcguide.com/_newsgroups/group_list.asp
>
>

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp