Why java in ASE can't solve domain name?

Dear all
  Since the ASE before 15.0.3 only support jre1.2. I used to
use xp_cmdshell to invoke external java app to send email by
Sybase procedures. Now I've heard that ASE15.0.3 already
support the JRE1.6 perfectly. So I have a test on
ASE15.0.3--
At first I created the sybpcidb and installed the
installpcidb script. Then I go with "sp_configure 'enable
java',1" and "sp_configure 'enable pci',1" to enable java in
ASE. After that I found I can execute "select
java.lang.System.getProperty("java.version")" correctly with
return "1.6.0_06".
Then I repack the JMaill jars with jar cf0 and instjava them
into ASE15.0.3-- all successful. I thought this could be OK
to send email from Sybase inside now. Then I write a java
class to have a test--
package test

class mailtest
{
	public void test() throws EmailExcpetion
	{
			SimpleEmail email = new SimpleEmail();
			email.setHostName("shadcmail01.wpmikz.com.cn");
			email.setAuthentication("eisen.wang","xxxxxxxx");
			email.addTo("eisen.wang@wpmikz.com.cn", "WJ");
			email.setFrom("eisen.wang@wpmikz.com.cn", "Eisen");
			email.setSubject("title");
			email.setCharset("UTF-8");
			email.setMsg("content:\n123\nabc");
			email.send();
            }
}
but when I execute select (new test.mailtest())>>test()
the ASE report error as:
org.apache.commons.mail.EmailException: Sending the email to
the following server failed : shadcmail01.wpmikz.com.cn:25
----------------------------------------------------------
but when I execute the same command with the
$SYBASE/shared/JRE-6_0_6_32BIT. the mailtest works very
well.
Do you know why and how to solve this problem?
Thanks a lot for any suggestion.
0
Eisen
12/21/2010 8:12:47 AM
sybase.ase.administration 7058 articles. 2 followers. Follow

0 Replies
610 Views

Similar Articles

[PageSpeed] 42

Reply:

Similar Artilces:

Can't construct query plan in ASE 12.0
Error 325 is being returned when trying to execute a stored procedure on version : Adaptive Server Enterprise/12.0/P/SWR 8773 ESD 1/RS6000/AIX 4.3.2/1580/64bit/FBO/Tue Dec 7 03:29:32 1999 ... this is the code causing the error when running on version listed above... it's a sub-query within a stored proc AND SBSB.HIST_ROW_ID = (select MAX(SBSB2.HIST_ROW_ID) FROM Massive_db.audit.CMC_SBSB_SUBSC SBSB2 WHERE SBSB2.SBSB_CK = SBSB.SBSB_CK AND CONVERT(CHAR(10),SBEL.SBEL_INSQ_DT,101) = CONVERT(CHAR 10),SBSB2.HIST_CREATE_DTM,101)) When executing same stored procedure on AS...

can't enable Java in ASE 12
I'm having trouble enabling Java in an ASE 12 server. I have logged on as SA, executed 'sp_configure "enable java", 1', and restarted the server as instructed in the "Java in Adaptive Server Enterprise" guide. When I try to install a java jar I get the following error: Server Message: - Msg 10734, Level 16, State 1: Cannot run this command because Java services are not enabled. A user with System Administrator (SA) role must reconfigure the system to enable Java. Executing 'sp_configure "enable java"' gives the following informat...

I can't get no cache, I can't get no cache. 'Cause I try and I try and I try and, I can't get no, I can't get no cache.
I have fiddled out for days tinkering with the setting in about:config trying to get FireFox 12 to use the disk cache. I have NOT found the trick. This One Trick Pony ain't doing it like it used to up until recently. Pray tell anyone, What information can I share that will point a knowledgeable person to aid me in getting FF to disk.cache? I have also tried restarting FF with add-ons disabled, (There were NOT too many to do this to, so it was quick and easy) Here is my stab at trying to convey the information that MIGHT govern matters Using about:cache Informatio...

Re: I can't get no cache, I can't get no cache. ' Cause I try and I try and I try and, I can't get no, I can't get no cache.
<div>please com e see me about htis<br /> <br /> ------- Original Message f= rom the Global Relay Archive -------<br /> From: Hp &lt;ferd@farkel.net&gt;= <br /> To: "support-firefox@lists.mozilla.org" &lt;support-firefox@lists.mo= zilla.org&gt;<br /> Sent: Sun, 27 May 2012 18:30:18 -0700<br /> Subject: I = can't get no cache, I can't get no cache. 'Cause I try and I try and I try = and, I can't get no, I can't get no cache.<br /> <br /></div> <pre class=3D"gr-maex-body-pre&qu...

2010: Can't register - can't download the software - can't register until I have the software
I have active maintenance on Rad Studio: From: Vicky Rassmisaengthong [mailto:Vicky.Rassmisaengthong@EMBARCADERO.COM] Sent: Wednesday, February 25, 2009 1:58 PM To: rgrossman Cc: amer.supportadmin@codegear.com; Ashley Cosentino Subject: Software Assurance Support for Tech III Inc PO# Credit Card Dear Embarcadero Technologies Support Customer, Welcome! You have been registered as the primary contact on support account number AM####### Herewith we confirm your Embarcadero Technologies support agreement covering: Qty 1 RAD Studio Enterprise Named User licens...

superreview granted: [Bug 331614] window.open unnecessarily escapes all URLs (can't handle IDN/extended domain-names) : [Attachment 217983] don't escape
Darin Fisher (Google) <darin@meer.net> has granted Gavin Sharp <gavin.sharp@gmail.com>'s request for superreview: Bug 331614: window.open unnecessarily escapes all URLs (can't handle IDN/extended domain-names) https://bugzilla.mozilla.org/show_bug.cgi?id=331614 Attachment 217983: don't escape https://bugzilla.mozilla.org/attachment.cgi?id=217983&action=edit ------- Additional Comments from Darin Fisher (Google) <darin@meer.net> sr=darin ...

superreview requested: [Bug 331614] window.open unnecessarily escapes all URLs (can't handle IDN/extended domain-names) : [Attachment 217983] don't escape
Gavin Sharp <gavin.sharp@gmail.com> has asked Darin Fisher (Google) <darin@meer.net> for superreview: Bug 331614: window.open unnecessarily escapes all URLs (can't handle IDN/extended domain-names) https://bugzilla.mozilla.org/show_bug.cgi?id=331614 Attachment 217983: don't escape https://bugzilla.mozilla.org/attachment.cgi?id=217983&action=edit ...

Customer changed domain name
Customer changed domain name from nemesanderson.com to nemesbumbaugh.com and also changed hosting company for domain, mx record looks ok now but customer can only receive emails now, cannot send and gwia screen says unable to send because domain user@nemesanderson.com can't be found (this is not a valid domain name anymore and am not sure where its getting this). I have checked and modified gwia settings for new domain and am not sure how to resolve this...any ideas? Check the settings under C1/Tools/Groupwise system/Internet addressing - ensure the new domain name is in...

ASE 12.5 developer's edition
I've installed ASE 12.5 developer's edition, which I can connect to with Sybase Central as long as I use localhost as the host name. If I try to connect remotely, or use the machine name or IP address locally, it won't let me connect. Is this a feature of the developer's edition? J. Cavanaugh I guess your running wintendo, check the $SYBASE/ini/sql.ni file which hostname/ip is entered -- Joop "The trouble with the concept of time is, there is no such thing as time, there is only an unlimited permutation of now" http://thedominion.cc "J...

ASE and ASE
Could it be possible to take scripts from ASA and load them in an ASE Any information is welcome jean-fran´┐Żois ASA supports a fairly large sub-set of Transact-SQL, so if you write your stored procedures and triggers in ASA using T-SQL, you should be able to create scripts that will run against both ASE and ASA. If you're planning to do this though, I would suggest developing your database schema against ASA, since everything you write in T-SQL in ASA will be supported on ASE, but the reverse is not true. Check out the section in the ASA documentation entitled "Tra...

ASE to ASE
Hi, Is anyone out there doing ASE to ASE replication using SQL remote? If you are have created your own version of the SSEXTRACT utility to set up a replicant database in ASE rather than ASA? Or does anyone know if SYBASE has created a version SSEXTRACT for use with ASE to ASE replication? Thanks in advance Doug Trainer Hi Douglas, I thought the SQL Remote Replication support in ASE11.5 was meant for a consolidate-database only (by design)! At least that was what Sybase said when they announced support for SQL Remote technology support in ASE11.5. I will be happy to...

Two things,Why do I keep getting emails that I don't want. can't get rid of them? Why can't I get my email when I am out of town? Or can I?
Name: Ed Leech Email: ELCraftatzoominternetdotnet Product: Thunderbird Summary: Two things,Why do I keep getting emails that I don't want. can't get rid of them? Why can't I get my email when I am out of town? Or can I? Comments: I am getting frusted with all the emails coming in that I do not want, I am using the tools to get thme out but they keep coming. They just use different names or whatever. I have been thinking of just switching to something else but my business intrusts know this email and it is tooo confusing to change. Every time I go out of town on bu...

Can't connect to ASE
Hi, I starte dhaving this weird problem today that is preventing me to use isql to connect to this server. I can connect to it from my laptop but now from the linux server where ASE 15 is installed. I can also use isql on this server to connect to another server, but not the local ASE. I get the following CTLIB error. Any idea why? Thanks CT-LIBRARY error: ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed Hello, Are you running into this issue? http://www.peppler.org/FAQ/linux.html#q1...

Can't base report on stored procedure--'Can't create Datawindow'
I installed IM65 today to give it a try. I made a db config to our local ASE 11.9.2 engine via Sybase' odbc driver that came with 11.9.2. I start a new report, tell it to be tabular and to get data from a SP. It asks which SP and I tell it. The result is an odbc error: Cannot create DataWindow Intersolv SQL ODBC driver: Incorrect syntax near '='. 1 execute dbo.sp_si_addressbest_;0 RETURN_VALUE = :RETURN_VALUE' I can execute the SP fine from SQL Advantage or from Crytal Reports. Thanks. -- Frank Burleigh Indiana University School of Law Bloomi...

Web resources about - Why java in ASE can't solve domain name? - sybase.ase.administration

Resources last updated: 12/2/2015 7:57:22 PM