dbTalk Databases Forums  

ORA-29531 - And the method is declared both PUBLIC and STATIC

comp.databases.oracle comp.databases.oracle


Discuss ORA-29531 - And the method is declared both PUBLIC and STATIC in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jkstexas2001@yahoo.com
 
Posts: n/a

Default ORA-29531 - And the method is declared both PUBLIC and STATIC - 03-11-2005 , 01:35 PM






Could someone be of assistance and show me the problem with the
following code? I have researched Metalink regarding ORA-29531, and the
most common cause of this error is the failure to declare the method
"public" and "static". I have done both here and still have the same
error:

Java Code::::::::::::::::::::::::::::::::::::::::::::::

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "TimeZoneFormatter" AS
import java.util.TimeZone;
import java.util.Date;
import java.text.DateFormat;

public class TimeZoneFormatter {

public static String Convert(String clientTimezone, Date clientDate)
{
//set the format for the dates
DateFormat dateFormatter =
DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG);
TimeZone timeZoneClient = TimeZone.getTimeZone(clientTimezone);
// Set the time zone of the date formatter to Client time zone.
dateFormatter.setTimeZone(timeZoneClient);

return dateFormatter.format(clientDate);
}
}

;
/

Wrapper Code:::::::::::::::::::::::::::::::::::::::::::::: :;

CREATE OR REPLACE function TimeZoneFormatter (ClientTimezone varchar2,
ClientDate varchar2)
return varchar2 as
language java
name 'TimeZoneFormatter.Convert(java.lang.String, java.lang.String)
return java.lang.String';
/


Test:::::::::::::::::::::::::::::::::::::::::::::: :::;


select TimeZoneFormatter('Europe/Paris','Wed Mar 09 23:22:24 CST 2005')
from dual ;
*
ERROR at line 1:
ORA-29531: no method Convert in class TimeZoneFormatter


Thank you very much in advance!

Jeff


Reply With Quote
  #2  
Old   
GreyBeard
 
Posts: n/a

Default Re: ORA-29531 - And the method is declared both PUBLIC and STATIC - 03-11-2005 , 02:08 PM






On Fri, 11 Mar 2005 11:35:43 -0800, jkstexas2001 wrote:

Quote:
Could someone be of assistance and show me the problem with the

Using normal newsgropup etiquette, you would have lurked here for at
least 2 days and realized this is not an official newsgroup. It is not
carried on all news servers. As a result, you are missing a large part of
the possible respondents. If you want an answer, I suggest you repost to
comp.databases.oracle.server



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.