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.

"No Implementation for..." errors for service bean

5 posts in General Discussion (old) Last posting was on 2000-03-02 22:21:44.0Z
Kimberly C. Turner Posted on 2000-03-01 23:01:55.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 01 Mar 2000 18:01:55 -0500
From: "Kimberly C. Turner" <kcturner@bellatlantic.net>
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: "No Implementation for..." errors for service bean
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 158
NNTP-Posting-Host: tfgfw1.furst.com 206.20.155.252
Message-ID: <347_38BDA163.AF21E3DE@bellatlantic.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27380
Article PK: 158787

After writing numerous server beans in PowerJ 3.0, I finally tried to
write a service component bean. I haven't finished it, but I tried to
build it to check what I had for errors and I received a slew of "No
Implementation for..." errors for methods other that run(), start() and
stop(). Should I be importing another package? I have included the
source below. Ignore the socket stuff, I am in the middle of deciding
how I want to handle the sockets.

Thanks,
Kim

/*
CommunityServices-ServiceBeans-CommUserCheckJagBeanImpl.java

NOTE: This file is a generated file.
Do not modify it by hand!
*/

package CommunityServices.ServiceBeans;


// custom imports for CommUserCheckJagBeanImpl
import powersoft.powerj.db.*;
import java.net.*;


MT-13 No implementation for method 'boolean
org.omg.CORBA.Object._is_a(java.lang.String)'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'boolean
org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object)'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'boolean
org.omg.CORBA.Object._non_existent()'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'int
org.omg.CORBA.Object._hash(int)'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.Object
org.omg.CORBA.Object._duplicate()'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'void
org.omg.CORBA.Object._release()'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.ImplementationDef
org.omg.CORBA.Object._get_implementation()'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.InterfaceDef
org.omg.CORBA.Object._get_interface()'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.Request
org.omg.CORBA.Object._request(java.lang.String)'.
SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.Request
org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,org.omg.CORBA.NVList,org.omg.CORBA.NamedValue)'.

SM-6 Symbol defined in: org/omg/CORBA/Object.class.
MT-13 No implementation for method 'org.omg.CORBA.Request
org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,org.omg.CORBA.NVList,org.omg.CORBA.NamedValue,org.omg.CORBA.ExceptionList,org.omg.CORBA.ContextList)'.

SM-6 Symbol defined in: org/omg/CORBA/Object.class.
public class CommUserCheckJagBeanImpl extends java.lang.Object
implements CtsServices.GenericService
{
protected boolean create() throws java.lang.Exception
{
// Connection source: Jaguar cache
transaction_1.setTraceToLog( true );
transaction_1.setRegisterName( true );
transaction_1.setName( "CommUserCheckJagBeanImpl.transaction_1"
);
transaction_1.setConnectionSource( new
powersoft.powerj.db.JaguarConnectionSource( "DBCustomerJava",
com.sybase.jaguar.jcm.JCMCache.JCM_WAIT, false ) );
transaction_1.setUseInitialSettings( true );
transaction_1.setLoginTimeout( 0 );
transaction_1.setOwner( this );
transaction_1.setRestoreInitialSettings( false );
query_1.setTraceToLog( true );
query_1.setName( "CommUserCheckJagBeanImpl.query_1" );
query_1.setTransactionObject( transaction_1 );
query_1.setOwner( this );



if( !transaction_1.connect() ){
transaction_1.log("autoconnect failed");
}
query_1.setAutoEdit(false);
query_1.setAllowUpdates(true);
query_1.setUpdateConnectionMode(
powersoft.powerj.db.Query.NO_AUTOCONNECT );
query_1.setUpdateMode(
powersoft.powerj.db.Query.IMMEDIATE_UPDATES );
query_1.setUpdateType( powersoft.powerj.db.Query.KEYS_ONLY );
query_1.setKeyUpdate( powersoft.powerj.db.Query.USE_UPDATE );
query_1.setBindUpdates(true);
query_1.setQueryTimeout( 0 );
query_1.setSQL( "" );
query_1.setStatementReturns(
powersoft.powerj.db.Query.STATEMENT_RETURNS_MIXED );

return true;
}

public CommUserCheckJagBeanImpl()
{
super();

try {
create();
}
catch( java.lang.Exception __e) {
System.err.println( __e.toString() + " " + __e.getMessage()
);
}
}
private void unhandledEvent( String listenerName, String methodName,
java.lang.Object event )
{

}
// method for interface CtsServices.GenericService
public void run()
{
while (! _stop) {
try {
java.sql.ResultSet resultSet;
query_1.setSQL("{? = call
db_furstview.dbo.community_users_select_all()}");
query_1.registerOutParameter(1, ConstantDataValue.NUMERIC);
if (!query_1.open()){
System.err.println("Unable to execute community_users_select_all");

_stop = true;
return;
}
resultSet = (java.sql.ResultSet)(query_1.getResultSetObject());
while (resultSet.next()) {
java.lang.String userid = resultSet.getString(2);
java.lang.String password = resultSet.getString(3);
java.lang.String ipaddr = resultSet.getString(5);
Socket socket = new Socket(ipaddr,8888);
if ( socket.connect() ) {
socket.send( "<COMMAND>logon</COMMAND>" );
}
}
java.lang.Thread.sleep(10000);
}
catch (InterruptedException ie) {
_stop = true;
}
}
}
// method for interface CtsServices.GenericService
public void start()
{
_stop = false;
}
// method for interface CtsServices.GenericService
public void stop()
{
_stop = true;
}
/****************************************
* data members
****************************************/

protected powersoft.powerj.db.java_sql.Transaction transaction_1 =
new powersoft.powerj.db.java_sql.Transaction();
protected powersoft.powerj.db.java_sql.Query query_1 = new
powersoft.powerj.db.java_sql.Query();

private static boolean _stop;

}


Dave Wolf [Sybase] Posted on 2000-03-02 13:34:37.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: "No Implementation for..." errors for service bean
Date: Thu, 2 Mar 2000 08:34:37 -0500
Lines: 200
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: PPPa10-ResaleAnnapolis1-1R7308.saturn.bbn.com 4.48.176.71
Message-ID: <347_ktk1WyEh$GA.295@forums.sybase.com>
References: <347_38BDA163.AF21E3DE@bellatlantic.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27336
Article PK: 158748

Dont actually implement the Java interface CtsServices::GenericService.
Instead just make a bean that has a

public void start();
public void stop();
public void run();

And deploy it. Then in JagMan change the interface to
CtsServices::GenericService

Dave Wolf
Internet Applications Division

"Kimberly C. Turner" <kcturner@bellatlantic.net> wrote in message
news:38BDA163.AF21E3DE@bellatlantic.net...
> After writing numerous server beans in PowerJ 3.0, I finally tried to
> write a service component bean. I haven't finished it, but I tried to
> build it to check what I had for errors and I received a slew of "No
> Implementation for..." errors for methods other that run(), start() and
> stop(). Should I be importing another package? I have included the
> source below. Ignore the socket stuff, I am in the middle of deciding
> how I want to handle the sockets.
>
> Thanks,
> Kim
>
> /*
> CommunityServices-ServiceBeans-CommUserCheckJagBeanImpl.java
>
> NOTE: This file is a generated file.
> Do not modify it by hand!
> */
>
> package CommunityServices.ServiceBeans;
>
>
> // custom imports for CommUserCheckJagBeanImpl
> import powersoft.powerj.db.*;
> import java.net.*;
>
>
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._is_a(java.lang.String)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._non_existent()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'int
> org.omg.CORBA.Object._hash(int)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Object
> org.omg.CORBA.Object._duplicate()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'void
> org.omg.CORBA.Object._release()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.ImplementationDef
> org.omg.CORBA.Object._get_implementation()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.InterfaceDef
> org.omg.CORBA.Object._get_interface()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
> org.omg.CORBA.Object._request(java.lang.String)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
>

org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
org.omg.CORBA.NVList,org.omg.CORBA.NamedValue)'.
>
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
>
org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
org.omg.CORBA.NVList,org.omg.CORBA.NamedValue,org.omg.CORBA.ExceptionList,or
g.omg.CORBA.ContextList)'.
>
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> public class CommUserCheckJagBeanImpl extends java.lang.Object
> implements CtsServices.GenericService
> {
> protected boolean create() throws java.lang.Exception
> {
> // Connection source: Jaguar cache
> transaction_1.setTraceToLog( true );
> transaction_1.setRegisterName( true );
> transaction_1.setName( "CommUserCheckJagBeanImpl.transaction_1"
> );
> transaction_1.setConnectionSource( new
> powersoft.powerj.db.JaguarConnectionSource( "DBCustomerJava",
> com.sybase.jaguar.jcm.JCMCache.JCM_WAIT, false ) );
> transaction_1.setUseInitialSettings( true );
> transaction_1.setLoginTimeout( 0 );
> transaction_1.setOwner( this );
> transaction_1.setRestoreInitialSettings( false );
> query_1.setTraceToLog( true );
> query_1.setName( "CommUserCheckJagBeanImpl.query_1" );
> query_1.setTransactionObject( transaction_1 );
> query_1.setOwner( this );
>
>
>
> if( !transaction_1.connect() ){
> transaction_1.log("autoconnect failed");
> }
> query_1.setAutoEdit(false);
> query_1.setAllowUpdates(true);
> query_1.setUpdateConnectionMode(
> powersoft.powerj.db.Query.NO_AUTOCONNECT );
> query_1.setUpdateMode(
> powersoft.powerj.db.Query.IMMEDIATE_UPDATES );
> query_1.setUpdateType( powersoft.powerj.db.Query.KEYS_ONLY );
> query_1.setKeyUpdate( powersoft.powerj.db.Query.USE_UPDATE );
> query_1.setBindUpdates(true);
> query_1.setQueryTimeout( 0 );
> query_1.setSQL( "" );
> query_1.setStatementReturns(
> powersoft.powerj.db.Query.STATEMENT_RETURNS_MIXED );
>
> return true;
> }
>
> public CommUserCheckJagBeanImpl()
> {
> super();
>
> try {
> create();
> }
> catch( java.lang.Exception __e) {
> System.err.println( __e.toString() + " " + __e.getMessage()
> );
> }
> }
> private void unhandledEvent( String listenerName, String methodName,
> java.lang.Object event )
> {
>
> }
> // method for interface CtsServices.GenericService
> public void run()
> {
> while (! _stop) {
> try {
> java.sql.ResultSet resultSet;
> query_1.setSQL("{? = call
> db_furstview.dbo.community_users_select_all()}");
> query_1.registerOutParameter(1, ConstantDataValue.NUMERIC);
> if (!query_1.open()){
> System.err.println("Unable to execute community_users_select_all");
>
> _stop = true;
> return;
> }
> resultSet = (java.sql.ResultSet)(query_1.getResultSetObject());
> while (resultSet.next()) {
> java.lang.String userid = resultSet.getString(2);
> java.lang.String password = resultSet.getString(3);
> java.lang.String ipaddr = resultSet.getString(5);
> Socket socket = new Socket(ipaddr,8888);
> if ( socket.connect() ) {
> socket.send( "<COMMAND>logon</COMMAND>" );
> }
> }
> java.lang.Thread.sleep(10000);
> }
> catch (InterruptedException ie) {
> _stop = true;
> }
> }
> }
> // method for interface CtsServices.GenericService
> public void start()
> {
> _stop = false;
> }
> // method for interface CtsServices.GenericService
> public void stop()
> {
> _stop = true;
> }
> /****************************************
> * data members
> ****************************************/
>
> protected powersoft.powerj.db.java_sql.Transaction transaction_1 =
> new powersoft.powerj.db.java_sql.Transaction();
> protected powersoft.powerj.db.java_sql.Query query_1 = new
> powersoft.powerj.db.java_sql.Query();
>
> private static boolean _stop;
>
> }
>
>


Kimberly C. Turner Posted on 2000-03-02 14:51:12.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 02 Mar 2000 09:51:12 -0500
From: "Kimberly C. Turner" <kcturner@bellatlantic.net>
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: "No Implementation for..." errors for service bean
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 192
NNTP-Posting-Host: tfgfw1.furst.com 206.20.155.252
Message-ID: <347_38BE7FE0.3030750C@bellatlantic.net>
References: <347_38BDA163.AF21E3DE@bellatlantic.net> <347_ktk1WyEh$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27328
Article PK: 158740

Thanks Dave. I was a little confused by the documentation telling me to
implement the interface. I will recreate may bean without the "implements."

"Dave Wolf [Sybase]" wrote:

> Dont actually implement the Java interface CtsServices::GenericService.
> Instead just make a bean that has a
>
> public void start();
> public void stop();
> public void run();
>
> And deploy it. Then in JagMan change the interface to
> CtsServices::GenericService
>
> Dave Wolf
> Internet Applications Division
>
> "Kimberly C. Turner" <kcturner@bellatlantic.net> wrote in message
> news:38BDA163.AF21E3DE@bellatlantic.net...
> > After writing numerous server beans in PowerJ 3.0, I finally tried to
> > write a service component bean. I haven't finished it, but I tried to
> > build it to check what I had for errors and I received a slew of "No
> > Implementation for..." errors for methods other that run(), start() and
> > stop(). Should I be importing another package? I have included the
> > source below. Ignore the socket stuff, I am in the middle of deciding
> > how I want to handle the sockets.
> >
> > Thanks,
> > Kim
> >
> > /*
> > CommunityServices-ServiceBeans-CommUserCheckJagBeanImpl.java
> >
> > NOTE: This file is a generated file.
> > Do not modify it by hand!
> > */
> >
> > package CommunityServices.ServiceBeans;
> >
> >
> > // custom imports for CommUserCheckJagBeanImpl
> > import powersoft.powerj.db.*;
> > import java.net.*;
> >
> >
> > MT-13 No implementation for method 'boolean
> > org.omg.CORBA.Object._is_a(java.lang.String)'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'boolean
> > org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object)'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'boolean
> > org.omg.CORBA.Object._non_existent()'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'int
> > org.omg.CORBA.Object._hash(int)'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.Object
> > org.omg.CORBA.Object._duplicate()'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'void
> > org.omg.CORBA.Object._release()'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.ImplementationDef
> > org.omg.CORBA.Object._get_implementation()'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.InterfaceDef
> > org.omg.CORBA.Object._get_interface()'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.Request
> > org.omg.CORBA.Object._request(java.lang.String)'.
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.Request
> >
> org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
> org.omg.CORBA.NVList,org.omg.CORBA.NamedValue)'.
> >
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > MT-13 No implementation for method 'org.omg.CORBA.Request
> >
> org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
> org.omg.CORBA.NVList,org.omg.CORBA.NamedValue,org.omg.CORBA.ExceptionList,or
> g.omg.CORBA.ContextList)'.
> >
> > SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> > public class CommUserCheckJagBeanImpl extends java.lang.Object
> > implements CtsServices.GenericService
> > {
> > protected boolean create() throws java.lang.Exception
> > {
> > // Connection source: Jaguar cache
> > transaction_1.setTraceToLog( true );
> > transaction_1.setRegisterName( true );
> > transaction_1.setName( "CommUserCheckJagBeanImpl.transaction_1"
> > );
> > transaction_1.setConnectionSource( new
> > powersoft.powerj.db.JaguarConnectionSource( "DBCustomerJava",
> > com.sybase.jaguar.jcm.JCMCache.JCM_WAIT, false ) );
> > transaction_1.setUseInitialSettings( true );
> > transaction_1.setLoginTimeout( 0 );
> > transaction_1.setOwner( this );
> > transaction_1.setRestoreInitialSettings( false );
> > query_1.setTraceToLog( true );
> > query_1.setName( "CommUserCheckJagBeanImpl.query_1" );
> > query_1.setTransactionObject( transaction_1 );
> > query_1.setOwner( this );
> >
> >
> >
> > if( !transaction_1.connect() ){
> > transaction_1.log("autoconnect failed");
> > }
> > query_1.setAutoEdit(false);
> > query_1.setAllowUpdates(true);
> > query_1.setUpdateConnectionMode(
> > powersoft.powerj.db.Query.NO_AUTOCONNECT );
> > query_1.setUpdateMode(
> > powersoft.powerj.db.Query.IMMEDIATE_UPDATES );
> > query_1.setUpdateType( powersoft.powerj.db.Query.KEYS_ONLY );
> > query_1.setKeyUpdate( powersoft.powerj.db.Query.USE_UPDATE );
> > query_1.setBindUpdates(true);
> > query_1.setQueryTimeout( 0 );
> > query_1.setSQL( "" );
> > query_1.setStatementReturns(
> > powersoft.powerj.db.Query.STATEMENT_RETURNS_MIXED );
> >
> > return true;
> > }
> >
> > public CommUserCheckJagBeanImpl()
> > {
> > super();
> >
> > try {
> > create();
> > }
> > catch( java.lang.Exception __e) {
> > System.err.println( __e.toString() + " " + __e.getMessage()
> > );
> > }
> > }
> > private void unhandledEvent( String listenerName, String methodName,
> > java.lang.Object event )
> > {
> >
> > }
> > // method for interface CtsServices.GenericService
> > public void run()
> > {
> > while (! _stop) {
> > try {
> > java.sql.ResultSet resultSet;
> > query_1.setSQL("{? = call
> > db_furstview.dbo.community_users_select_all()}");
> > query_1.registerOutParameter(1, ConstantDataValue.NUMERIC);
> > if (!query_1.open()){
> > System.err.println("Unable to execute community_users_select_all");
> >
> > _stop = true;
> > return;
> > }
> > resultSet = (java.sql.ResultSet)(query_1.getResultSetObject());
> > while (resultSet.next()) {
> > java.lang.String userid = resultSet.getString(2);
> > java.lang.String password = resultSet.getString(3);
> > java.lang.String ipaddr = resultSet.getString(5);
> > Socket socket = new Socket(ipaddr,8888);
> > if ( socket.connect() ) {
> > socket.send( "<COMMAND>logon</COMMAND>" );
> > }
> > }
> > java.lang.Thread.sleep(10000);
> > }
> > catch (InterruptedException ie) {
> > _stop = true;
> > }
> > }
> > }
> > // method for interface CtsServices.GenericService
> > public void start()
> > {
> > _stop = false;
> > }
> > // method for interface CtsServices.GenericService
> > public void stop()
> > {
> > _stop = true;
> > }
> > /****************************************
> > * data members
> > ****************************************/
> >
> > protected powersoft.powerj.db.java_sql.Transaction transaction_1 =
> > new powersoft.powerj.db.java_sql.Transaction();
> > protected powersoft.powerj.db.java_sql.Query query_1 = new
> > powersoft.powerj.db.java_sql.Query();
> >
> > private static boolean _stop;
> >
> > }
> >
> >


Evan Ireland Posted on 2000-03-02 22:21:44.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 03 Mar 2000 11:21:44 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kimberly C. Turner" <kcturner@bellatlantic.net>
CC: sandvik@sybase.com
Subject: Re: "No Implementation for..." errors for service bean
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 32
NNTP-Posting-Host: vpn-eme-047.sybase.com 130.214.8.47
Message-ID: <347_38BEE978.855C2447@sybase.com>
References: <347_38BDA163.AF21E3DE@bellatlantic.net> <347_ktk1WyEh$GA.295@forums.sybase.com> <347_38BE7FE0.3030750C@bellatlantic.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27287
Article PK: 158705


"Kimberly C. Turner" wrote:
>
> Thanks Dave. I was a little confused by the documentation telling me to
> implement the interface. I will recreate may bean without the "implements."

The docs should say you should implement the operations of the IDL interface,
as opposed to the Java interface CtsServices.GenericService, which is the
remote interface that would be used for clients (except in this case clients
don't usually access these methods).

The trouble is that CtsServices.GenericService extends org.omg.CORBA.Object,
and you don't want to have to implement the methods from the base CORBA remote
object interface.

If you like, with Jaguar 3.5 (since the first EBF) you can say:

class MyService implements CtsServices.GenericServiceOperations

(This is a recent addition to CORBA, to generate a pure Java interface
containing just the operations you need to implement). But note that as long
as you have the required methods, you don't need an 'implements' clause.
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856


Scott McReynolds [Sybase] Posted on 2000-03-02 06:08:13.0Z
Newsgroups: sybase.public.easerver
From: "Scott McReynolds [Sybase]" <scottmc@sybase.com>
Subject: Re: "No Implementation for..." errors for service bean
Date: Wed, 1 Mar 2000 23:08:13 -0700
Lines: 227
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: scottmc-pc.sybase.com 158.77.55.90
Message-ID: <347_J$WCr4Ah$GA.201@forums.sybase.com>
References: <347_38BDA163.AF21E3DE@bellatlantic.net>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27363
Article PK: 158771

Kim,

you need to implement CtsServices::GenericService. the problem is that you
have not implemented that interface.

Here is an example
package myService;

import org.omg.CORBA.*;
import java.util.*;
import java.lang.Object;

public class myServiceImpl
{
public java.lang.String of_getHelloWorld()
{
throw new org.omg.CORBA.NO_IMPLEMENT("SydneyService/myService
of_getHelloWorld");
}

public void run()
{
throw new org.omg.CORBA.NO_IMPLEMENT("SydneyService/myService run");
}

public void start()
{
throw new org.omg.CORBA.NO_IMPLEMENT("SydneyService/myService
start");
}

public void stop()
{
throw new org.omg.CORBA.NO_IMPLEMENT("SydneyService/myService
stop");
}
}

scott

Kimberly C. Turner <kcturner@bellatlantic.net> wrote in message
news:38BDA163.AF21E3DE@bellatlantic.net...
> After writing numerous server beans in PowerJ 3.0, I finally tried to
> write a service component bean. I haven't finished it, but I tried to
> build it to check what I had for errors and I received a slew of "No
> Implementation for..." errors for methods other that run(), start() and
> stop(). Should I be importing another package? I have included the
> source below. Ignore the socket stuff, I am in the middle of deciding
> how I want to handle the sockets.
>
> Thanks,
> Kim
>
> /*
> CommunityServices-ServiceBeans-CommUserCheckJagBeanImpl.java
>
> NOTE: This file is a generated file.
> Do not modify it by hand!
> */
>
> package CommunityServices.ServiceBeans;
>
>
> // custom imports for CommUserCheckJagBeanImpl
> import powersoft.powerj.db.*;
> import java.net.*;
>
>
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._is_a(java.lang.String)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'boolean
> org.omg.CORBA.Object._non_existent()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'int
> org.omg.CORBA.Object._hash(int)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Object
> org.omg.CORBA.Object._duplicate()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'void
> org.omg.CORBA.Object._release()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.ImplementationDef
> org.omg.CORBA.Object._get_implementation()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.InterfaceDef
> org.omg.CORBA.Object._get_interface()'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
> org.omg.CORBA.Object._request(java.lang.String)'.
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
>

org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
org.omg.CORBA.NVList,org.omg.CORBA.NamedValue)'.
>
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> MT-13 No implementation for method 'org.omg.CORBA.Request
>
org.omg.CORBA.Object._create_request(org.omg.CORBA.Context,java.lang.String,
org.omg.CORBA.NVList,org.omg.CORBA.NamedValue,org.omg.CORBA.ExceptionList,or
g.omg.CORBA.ContextList)'.
>
> SM-6 Symbol defined in: org/omg/CORBA/Object.class.
> public class CommUserCheckJagBeanImpl extends java.lang.Object
> implements CtsServices.GenericService
> {
> protected boolean create() throws java.lang.Exception
> {
> // Connection source: Jaguar cache
> transaction_1.setTraceToLog( true );
> transaction_1.setRegisterName( true );
> transaction_1.setName( "CommUserCheckJagBeanImpl.transaction_1"
> );
> transaction_1.setConnectionSource( new
> powersoft.powerj.db.JaguarConnectionSource( "DBCustomerJava",
> com.sybase.jaguar.jcm.JCMCache.JCM_WAIT, false ) );
> transaction_1.setUseInitialSettings( true );
> transaction_1.setLoginTimeout( 0 );
> transaction_1.setOwner( this );
> transaction_1.setRestoreInitialSettings( false );
> query_1.setTraceToLog( true );
> query_1.setName( "CommUserCheckJagBeanImpl.query_1" );
> query_1.setTransactionObject( transaction_1 );
> query_1.setOwner( this );
>
>
>
> if( !transaction_1.connect() ){
> transaction_1.log("autoconnect failed");
> }
> query_1.setAutoEdit(false);
> query_1.setAllowUpdates(true);
> query_1.setUpdateConnectionMode(
> powersoft.powerj.db.Query.NO_AUTOCONNECT );
> query_1.setUpdateMode(
> powersoft.powerj.db.Query.IMMEDIATE_UPDATES );
> query_1.setUpdateType( powersoft.powerj.db.Query.KEYS_ONLY );
> query_1.setKeyUpdate( powersoft.powerj.db.Query.USE_UPDATE );
> query_1.setBindUpdates(true);
> query_1.setQueryTimeout( 0 );
> query_1.setSQL( "" );
> query_1.setStatementReturns(
> powersoft.powerj.db.Query.STATEMENT_RETURNS_MIXED );
>
> return true;
> }
>
> public CommUserCheckJagBeanImpl()
> {
> super();
>
> try {
> create();
> }
> catch( java.lang.Exception __e) {
> System.err.println( __e.toString() + " " + __e.getMessage()
> );
> }
> }
> private void unhandledEvent( String listenerName, String methodName,
> java.lang.Object event )
> {
>
> }
> // method for interface CtsServices.GenericService
> public void run()
> {
> while (! _stop) {
> try {
> java.sql.ResultSet resultSet;
> query_1.setSQL("{? = call
> db_furstview.dbo.community_users_select_all()}");
> query_1.registerOutParameter(1, ConstantDataValue.NUMERIC);
> if (!query_1.open()){
> System.err.println("Unable to execute community_users_select_all");
>
> _stop = true;
> return;
> }
> resultSet = (java.sql.ResultSet)(query_1.getResultSetObject());
> while (resultSet.next()) {
> java.lang.String userid = resultSet.getString(2);
> java.lang.String password = resultSet.getString(3);
> java.lang.String ipaddr = resultSet.getString(5);
> Socket socket = new Socket(ipaddr,8888);
> if ( socket.connect() ) {
> socket.send( "<COMMAND>logon</COMMAND>" );
> }
> }
> java.lang.Thread.sleep(10000);
> }
> catch (InterruptedException ie) {
> _stop = true;
> }
> }
> }
> // method for interface CtsServices.GenericService
> public void start()
> {
> _stop = false;
> }
> // method for interface CtsServices.GenericService
> public void stop()
> {
> _stop = true;
> }
> /****************************************
> * data members
> ****************************************/
>
> protected powersoft.powerj.db.java_sql.Transaction transaction_1 =
> new powersoft.powerj.db.java_sql.Transaction();
> protected powersoft.powerj.db.java_sql.Query query_1 = new
> powersoft.powerj.db.java_sql.Query();
>
> private static boolean _stop;
>
> }
>
>