Calling classes within classes..
This is what my code looks like:
public class MainClass implements ActionListener
methods not shown
public void actionPerformed(ActionEvent event)
if(event.getSource().equals(newKeyItem))
NewKeyGUI nkGUI = new NewKeyGUI();
else if(event.getSource().equals(loadKeyItem))
LoadKeyGUI lkGUI = new LoadKeyGUI();
class NewKeyGUI implements ActionListener
/* methods not shown */
class LoadKeyGUI implements ActionListener
/* methods not shown */
}When it performs the action for the newKeyItem in the MainClass nothing happens, but my GUI is set up perfectly.. When I compiled I got no errors due to the classes within the MainClass..
So I am guessing that I am calling the 'sub-classes' incorrectly then.
Please help me! thanks in advance!
Your actionPerformed method does essentially nothing. The blocks of the if statements instantiate new objects, assign them to local variables, which then disappear when the block immediately ends. Unless the NewKeyGUI and LoadKeyGUI constructors do something as a side effect (which, IMHO, is bad design), nothing is happening hear other than instantiating objects unnecessarily.
You probably meant to assign the new objects to existing fields -- so, get rid of the first "NewKeyGUI" and "LoadKeyGUI" on each line.
Personally, I think it's also a red flag when you do event.getSource(). With anonymous inner classes, it's a lot easier now to create mini anonymous classes for each specific GUI widget as needed.
Similar Messages
-
hye i am a new netbeans user..
i need to know how to implement classes within classes in Netbeans..
thank uhye i am a new netbeans user..
i need to know how to implement classes within
classes in Netbeans..Is there something special about doing it in Netbeans? You should just have to follow the language syntax and go ahead and define the inner class. -
How can I call a java class from within my program?
I was wondering if there's a platform independent way to call a java class from my program.
Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.
-
Calling a java class in JSP in Weblogic 5.1
Hi
I am trying to call a java class in a jsp page. But it is giving an error:
Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_knet\_buy.java' failed:
C:\weblogic\myserver\classfiles\jsp_servlet\_knet\_buy.java:79: cannot access jsp_servlet._knet.e24PaymentPipe
probably occurred due to an error in /knet/buy.jsp line 25:
e24PaymentPipe pipe = new e24PaymentPipe();
Is this a problem bcos of the wrong path of the class file which i am calling?
Please help this is urgentHello All
As I tried to deploy the easiest project (dummy.war) on WebLogic 8.1.5, There is only one class (without package) Login.class
*********** Listing of the dummy WAR ***********
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/Login.class
WEB-INF/web.xml
index.jsp
login.jsp
************ Output of deployment from Admin Console****************
Log:
A log of the task's activities.
[Deployer:149033]preparing application dummy on intranetAdmin
[Deployer:149033]prepared application dummy on intranetAdmin
[Deployer:149033]activating application dummy on intranetAdmin
[Deployer:149033]failed application dummy on intranetAdmin
[Deployer:149034]An exception occurred for task [Deployer:149026]
Deploy application dummy on intranetAdmin.:
Exception:weblogic.management.ApplicationException: start() failed.
Module: dummy Error: weblogic.management.DeploymentException:
[HTTP:101216]Servlet: "index" failed to preload on startup in Web application:
" dummy ".
weblogic.servlet.jsp.CompilationException: Compilation of D:\apps\wlsapp\
INTRAN~1\.\intranetAdmin\.wlnotdelete\extract\intranetAdmin_ dummy _ dummy
\jsp_servlet\__index.java failed.
D:\apps\wlsapp\INTRAN~1\.\intranetAdmin\.wlnotdelete\extract\
intranetAdmin_dummy_dummy\jsp_servlet\__index.java:22: '.' expected
import Login; //[ /login.jsp; Line: 8]
^
1 error
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.
java:3430)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.
java:3387)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext
.java:3373)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3356)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:
6208)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:864)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2134)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2175)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
activateContainer(SlaveDeployer.java:2520)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer
.java:2438)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2155)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2254)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2149)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.
java:2401)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:
883)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.io.IOException: Compiler failed executable.exec
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
... 22 more
- with nested exception:
[java.io.IOException: Compiler failed executable.exec]
I put this class into a dummy package named sample, changed package declaration within this class and changed import statement within jsp pages like this :
<%@ page import="sample.Login " %>
<jsp:useBean id="logUsr" scope="session" class="sample.Login" />
When I did like this, everything is ok. No more exception.
If my application has so many java classes under WEB-INF/classes/ without creating package, it may be so inconvenience.
Please kindly let me know why this exception (class not found exception) occurred.
And what is the solution? I cannot deploy the application successfully yet.
many thanks,
Zin Ko Win -
How to import .jar files in order to use the classes within this file
hello guys,
I'm just wondering how can i import .jar files in order to uses the classes within this file.
let's take an example:
i have a folder in which I have many .jar files which contain classes to be called. the full path of this folder is set in the Classpath inside the enviroment variables.
so does anyone have any idea how can i import these .jar files so i can use the classes?
thank you.Hi,
My problem is that: I created a Serializable class in a project. And I added this project (first project) to another project (second project). First project is appearing in the second project' s Libraries folder. No problem. I want to create a jar file from second project. i.e. I want to Build second project (I use NetBeans IDE). I am using Build Main Project tab under Run. It is falling out. I am finding it second project' s jar file under its folder. I am clicking on it. But it is NOT WORKING. Do you know WHY. Could you help me please?
Thanks, -
Creating Instances of class within its definition
Hi,
I am a newbie to Java and am doing a course on Java. In one my assignments it asks us to develop the following method for a Class called CraftStock:
"Define a new helper method void increaseStockCapacity() that creates a
new expanded array as follows. It should create a temporary instance of
CraftStock by using its single-argument constructor ? the value of the argument n is determined by the current size of the original craft stock array plus the
extraCapacity constant. All items in the original array must be copied from the
original array to the temporary instance of CraftStock. The array reference in the
original array instance of CraftStock must then be reassigned to the new
temporary array instance."
My question is - is this possible - can one create an instance of a class from within its definition? I can't find anyhting on this from the books.
Any help would be appreciated.
Thanks
DevIsn't there a caveat to all this?
If one creates an instance of a class within its own
definition, doesn't one face the potential danger of
attempting to access some part of the object which
has not yet been constructed?nope. why would it? we're creating a new instance of the class, from scratch. we're not accessing any part of the object, we're creating a new one. the fact that this is being done within the definition of the class is irrelevant. by the time anything comes to call on a static method of the class, the class is initialized already. remember, static methods don't have any dependency on a particular instance
sorry, that doesn't read very well, does it! what I mean is that the class itself is not the same thing as an instance of that class
Message was edited by:
georgemc -
ProgressMonitor in thred, call from other class
Hi all
I have a problem using the ProgressMonitor... I just want to update the progress from another class.
So what i was thinking was:
I could implement a method that invoked the thread, and thereby updating the progress.
The problem occurs when the calculating steps is going. The parent class calls ProgressDiff fine but it doesn't update it, it doesn't even show anything. Just when the task is finished it says, simulation done!!
I have tried searching alot on these forums, and on google, but all methods implementing progressmonitor uses a call from within the class. <- Not what I want. :=)
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.beans.*;
public class ProgressDiff extends JFrame {
public ProgressMonitor progressMonitor;
public int tll;
public ProgressDiff(int maks, String set) {
super("Progress");
setSize(250, 100);
progressMonitor = new ProgressMonitor(null,
"Differentiere og l�ser\n" + set,
"", 0, maks);
progressMonitor.setProgress(0);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setProgressTal(0, false);
setLocationRelativeTo(null);
setVisible(true);
public void setProgressTal(int fremGang, boolean done) {
tll = fremGang;
SwingUtilities.invokeLater(new Update());
if (done) {
Toolkit.getDefaultToolkit().beep();
JOptionPane.showMessageDialog(null,
"Simuleringen er f�rdig."
, "F�rdig",
JOptionPane.INFORMATION_MESSAGE);
class Update implements Runnable {
public void run() {
if (progressMonitor.isCanceled()) {
Toolkit.getDefaultToolkit().beep();
JOptionPane.showMessageDialog(null,
"Simuleringen er f�rdig."
, "F�rdig",
JOptionPane.INFORMATION_MESSAGE);
} else {
progressMonitor.setProgress(tll);
progressMonitor.setNote(String.format("Completed %d%%.\n", tll));
}Any help would be apreciable!!
Thx.Thx for the reply, I now have a working Progressmonitor which i easily can control
import java.awt.Toolkit;
import javax.swing.ProgressMonitor;
* Use of a ProgressMonitor. This class implements an easy to use progressmonitor for use in other classes.
* @author Nick Andersen
* @created 4. marts 2008
* @version 1.00
public class ProgressMonitorSetup {
private ProgressMonitor progressMonitor;
private String title;
private int min;
private int progress;
private int max;
private String note;
private String complete;
private String cancel;
private String completeTotal;
* Constructor af ProgressMonitorSetup
public ProgressMonitorSetup() {
title = "K�rsel af langt job";
min = 0;
max = 100;
complete = "Fremgang: ";
cancel = "Job afbrudt.";
completeTotal = "Job f�rdigt.";
note = "";
* Constructor af ProgressMonitorSetup
* @param title The title in Progressmonitor
* @param min The minimum value in the progressmonitor
* @param max The maximum value in the progressmonitor
* @param complete Beskrivelse af Parameteren
* @param completeTotal Beskrivelse af Parameteren
* @param cancel Beskrivelse af Parameteren
public ProgressMonitorSetup(String title, int min, int max, String complete, String completeTotal, String cancel) {
this.title = title;
this.min = min;
this.progress = min;
this.max = max;
this.complete = complete;
this.completeTotal = completeTotal;
this.cancel = cancel;
note = "";
* S�tter title attributten af ProgressMonitorSetup object
* @param title Den nye title v�rdi
public void setTitle(String title) {
this.title = title;
* S�tter minimum attributten af ProgressMonitorSetup object
* @param min Den nye minimum v�rdi
public void setMinimum(int min) {
this.min = min;
* S�tter maximum attributten af ProgressMonitorSetup object
* @param max Den nye maximum v�rdi
public void setMaximum(int max) {
this.max = max;
* S�tter runningComplete attributten af ProgressMonitorSetup object
* @param complete Den nye runningComplete v�rdi
public void setRunningComplete(String complete) {
this.complete = complete;
* S�tter complete attributten af ProgressMonitorSetup object
* @param completeTotal Den nye complete v�rdi
public void setComplete(String completeTotal) {
this.completeTotal = completeTotal;
* S�tter cancel attributten af ProgressMonitorSetup object
* @param cancel Den nye cancel v�rdi
public void setCancel(String cancel) {
this.cancel = cancel;
* Returnere cancel attributten af ProgressMonitorSetup object
* @return cancel v�rdi
public String getCancel() {
return cancel;
* Returnere done attributten af ProgressMonitorSetup object
* @return done v�rdi
public boolean isDone() {
if (progress >= max) {
progressMonitor.close();
return true;
} else {
return false;
* METODEN
public void close() {
progressMonitor.close();
* METODEN
public void initProgressMonitor() {
progressMonitor = new ProgressMonitor(null,
title, note,
min, max);
progressMonitor.setMillisToDecideToPopup(100);
progressMonitor.setMillisToPopup(100);
progressMonitor.setProgress(min);
* S�tter progress attributten af ProgressMonitorSetup object
* @param i Den nye progress v�rdi
* @return Beskrivelse af den Returnerede V�rdi
public String setProgressMessage(int i) {
progress = i;
progressMonitor.setProgress(progress);
note = complete + progress + " af " + max;
progressMonitor.setNote(note);
if (progressMonitor.isCanceled() || isDone()) {
Toolkit.getDefaultToolkit().beep();
if (progressMonitor.isCanceled()) {
progress = max++;
return cancel;
} else {
return completeTotal;
return note;
* S�tter progress attributten af ProgressMonitorSetup object
* @param i Den nye progress v�rdi
public void setProgress(int i) {
progress = i;
progressMonitor.setProgress(progress);
note = complete + progress + " af " + max;
progressMonitor.setNote(note);
if (progressMonitor.isCanceled() || isDone() ) {
Toolkit.getDefaultToolkit().beep();
if (progressMonitor.isCanceled()) {
progress = max++;
} else {
}Sry about the comment, and the danish... But this works really nice, if you place the swingworker around the method needing progressmonitor. -
Instantiating a class within a class
I've got a package with 2 classes. The first, we'll call it
C1, is being instantiated within the main body of code. In turn, it
instantiates another class, C2.
Problem is, the C2 instantiation is not happening. However,
if I instantiate the class within the main code body, the
instantiations within C1 work ok. A chopped down version of my
code:
// main.swf
import stuff.*;
var myC1:C1 = new C1();
var myC2:C2 = new C2(); // remove this line and the line
below stops functioning
// C1.as
class stuff.C1 {
public function C1() {
trace('C1 instantiated');
var anotherC2 = new C2(); // this line doesn't work unless
the line above is included
// C2.as
class stuff.C2 {
public function C2() {
trace('C2 instantiated');
So if I take the classes out of the package it works also, so
I'm guessing it has something to do with the way I'm importing the
files maybe? I dunno. Any thoughts?What Darcia wrote make me suppose that a class is totally created with the first line of a java file (i.e. public class PrivAndPublic{ )and initialized by the constructor (which, if omitted, comes by default with no arguments)...after all this, the class can be instantiated many times I want from inside the class itself.
(I was thinking the class needed to reach the matching close curly brace to be possible to instantiate it)
But as phyzome said I have to be careful to do not make the object call the method which I put the object in, otherwise I will cause an infinite loop...as I did try ;)
Thanx guys, see you. -
Triggering Java class within wls using Autosys
Is it possible to trigger a Java class within the weblogic server externally using an utility like Autosys ?
Dont know autosys that well but I would guess you would have to invoke java
and run a starter class.
There is a good product out there called Flux which is an all java based
scheduling system that has some great scheduling features and is made
to trigger either Session Beans, Add entrys to JMS Queues/Topic or
fire a java class when a scheduled event is fired.
try
www.simscomputing.com
Anil wrote:
Is it possible to trigger a Java class within the weblogic server externally using an utility like Autosys ? -
How to call a Java class from another java class ??
Hi ..... can somebody plz tell me
How to call a Java Class from another Java Class assuming both in the same Package??
I want to call the entire Java Class (not any specific method only........I want all the functionalities of that class)
Please provide me some slotuions!!
Waiting for some fast replies!!
Regards
Smita MohantyHi Smita,
you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
e.g.
you have developed A.java and B.java, both are in same package.
in implementaion of B.java
class B
A obj = new A();
//to access A's methods
A.method();
// to access A's variable
//either
A.variable= value.
//or
A.setvariable() or A.getvariable() -
How to call a java class in a bat file
Hi
I need to call a Test.java class in a bat files .It refer .DOM.jar
in C:/url; How do i call the java class i need the syntax
Thanks lotassuming lanch.bat, Test.class and DOM.jar are in c:\url
assuming %JAVA_HOME% is defined (else substitue it with your java installation directory)
here is the content of launch.bat:
cd C:/url (or cd c:\url ) (or cd c: followed by cd url)
%JAVA_HOME%\bin java -classpath .;DOM.jar Test
hop that'd help,
marvinrouge -
Trying to create object of a class within servlet - help!!
I have created and compiled the following classes within
C:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes
1)LoginServlet
2)LoginManager
3)I have LoginServlet trying to create an object of type LoginManager, very simple,
but I get the following errors:
Cannot resolve symbol: LoginManager lm = new LoginManager();
^
Cannot resolve symbol: LoginManager lm = new LoginManager();
^
4)I have the .java and .class files located within the same directory, so I don't
see what's wrong here??? HELP!
LoginManager looks like:
public class LoginManager {
public boolean authenticateUser(String username, String password){
boolean status = false;
//simple code for string matching
return status;
LoginServlet looks like:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class LoginServlet extends HttpServlet {
// Constructors
// Variables
public static final String CONTENT_TYPE = "text/html";
public boolean LOGIN_STATUS;
// Methods
public void service (HttpServletRequest req, HttpServletResponse res)
throws IOException {
String username = "";
String password = "";
LoginManager lm = new LoginManager();
username = req.getParameter("username");
password = req.getParameter("password");
LOGIN_STATUS = lm.authenticateUser(username, password);
res.setContentType(CONTENT_TYPE);
PrintWriter out = res.getWriter();
out.println("<html><head><title>Hello World</title></head>" +
"<body>Hello! Your login status is " + LOGIN_STATUS +
"</body>" +
"</html>");
public void init (ServletConfig config) throws ServletException {
super.init(config);Do you have . in the CLASSPATH when compiling your servlet?
ron <[email protected]> wrote:
I have created and compiled the following classes within
C:\bea\wlserver6.1\config\mydomain\applications\DefaultWebApp\WEB-INF\classes
1)LoginServlet
2)LoginManager
3)I have LoginServlet trying to create an object of type LoginManager, very simple,
but I get the following errors:
Cannot resolve symbol: LoginManager lm = new LoginManager();
^
Cannot resolve symbol: LoginManager lm = new LoginManager();
^
4)I have the .java and .class files located within the same directory, so I don't
see what's wrong here??? HELP!
LoginManager looks like:
public class LoginManager {
public boolean authenticateUser(String username, String password){
boolean status = false;
//simple code for string matching
return status;
LoginServlet looks like:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class LoginServlet extends HttpServlet {
// Constructors
// Variables
public static final String CONTENT_TYPE = "text/html";
public boolean LOGIN_STATUS;
// Methods
public void service (HttpServletRequest req, HttpServletResponse res)
throws IOException {
String username = "";
String password = "";
LoginManager lm = new LoginManager();
username = req.getParameter("username");
password = req.getParameter("password");
LOGIN_STATUS = lm.authenticateUser(username, password);
res.setContentType(CONTENT_TYPE);
PrintWriter out = res.getWriter();
out.println("<html><head><title>Hello World</title></head>" +
"<body>Hello! Your login status is " + LOGIN_STATUS +
"</body>" +
"</html>");
public void init (ServletConfig config) throws ServletException {
super.init(config);
Dimitri -
Java.lang.NoClassDefFoundError while calling a java class from BPEL
Hi,
I'm calling a java class to convert JSON to XML using BPEL. I have imported all the necessary jar files in the project and compiling done successfully.
But at runtime , i get the java.lang.NoClassDefFoundError: net/sf/json/JSON error.
For this i placed all the necessary jars under FUSION_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/ path and restarted the server.
But still i'm getting the same error at runtime.
Did i missed any step? Let me know the procedure to solve this.
Do i have to run ant or edit Manifest file after placing the jar?
in one site i find we have to place the jars under <DOMAIN HOME>/lib directory. Is this correct?
We are using SOA suite 11.1.1.6.
Thanks,
TerryHi Karan,
I have done placing the jars at FUSION_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/ and ran ant -f build.xml .The build was successful without any error.
I have even placed the jars in <DOMAIN HOME>/lib (/us2001/fmw/11.1.1.6/user_projects/domains/ohsdomain/lib) and did a server restart.
After these activities, when i execute the composite, i still get the error in em console,
Message
got RuntimeException
Supplemental Detail
oracle.fabric.common.FabricException: Could not create object of class 'packageName.className'; nested exception is:
java.lang.NoClassDefFoundError: net/sf/json/JSON
at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:698)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
Any help on this.
Thanks,
Terry -
Error while calling badi using class cl_exithandler with getInstance
hi experts...we are using SAP ECC 6.0 version
I have created BADI Def and Implementation using se18 and se19 with some interface methods..
Problem:
I'm writing a report to call that using class CL_EXITHANDLER but it shows an Exception..
" Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised."
Report example:
DATA: CL_EXIT TYPE REF TO CL_EXITHANDLER,
IF_USER_INSTANCE TYPE REF TO ZIF_EX_USER_MAILID1.
CALL METHOD cl_exithandler=>get_instance
EXPORTING
EXIT_NAME = 'ZBADI_USERMAIL_DEF'
* NULL_INSTANCE_ACCEPTED = SEEX_FALSE
* IMPORTING
* ACT_IMP_EXISTING =
CHANGING
instance = IF_USER_INSTANCE
* EXCEPTIONS
* NO_REFERENCE = 1
* NO_INTERFACE_REFERENCE = 2
* NO_EXIT_INTERFACE = 3
* CLASS_NOT_IMPLEMENT_INTERFACE = 4
* SINGLE_EXIT_MULTIPLY_ACTIVE = 5
* CAST_ERROR = 6
* EXIT_NOT_EXISTING = 7
* DATA_INCONS_IN_EXIT_MANAGEM = 8
* others = 9
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
so i found that all EXITs are in the Table " SXS_ATTR"
but what i have created BADI has not exist in that Table so that it gets an Exception(while i'm debugging found this)
so kindly tel me whats problem my BADI "ZBADI_USERMAIL_DEF" not maintained that Database table
but in Implentation class its working fine..yes i have created badi in Enhancement spot so regarding what u told i'm using GET BADI and CALL BADI
DATA:W_HANDLE TYPE REF TO ZBADI_USERMAIL_DEF.
GET BADI W_HANDLE.
CALL BADI w_handle->get_user_mailid
EXPORTING
uname = UNAME
changing
mailid = W_EMAIL
WRITE: / 'UNAME:',UNAME.
WRITE: / 'EMAIL ID',W_EMAIL.
CALL BADI w_handle->get_user_address_data
EXPORTING
uname = UNAME
changing
addrdata = W_ADDRDATA
IF W_ADDRDATA IS NOT INITIAL.
WRITE: / W_ADDRDATA-BNAME,W_ADDRDATA-NAME1,W_ADDRDATA-NAME2,W_ADDRDATA-TELPR,W_ADDRDATA-TELNR,W_ADDRDATA-TEL01.
ENDIF.
but here BADI are not called
Interface implementation class methods not executed so kindly tel me whats problem here.
Thanks in Advance
sivakumar -
Calling a Java Class from PL/SQL
Hai,
I need a technique of calling a class file and invoke its
methods written in Java by PL/SQL for my intranet development.
PLease let me know if you have really experienced and won.
Thanks
JOhnsonFirst, to call a Java class from PL/SQL the class needs to be
deployed to the database. you can check the 8i documentation for
the instructions for loading Java into the database(LoadJava).
The document contains information on how to load the Java and
call it from PL/SQL. The following links should help.
Loading Java:
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
java.817/a83728/03write6.htm
Invoking a Java Method in the database:
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
java.817/a83728/04jserv2.htm
Gary (JDev Team)
Maybe you are looking for
-
IPod Touch 3G in DFU Mode and won't come out
Hello, My daughter's iPod Touch 3G appears to be in DFU mode, but won't come out. The screen is completely black, and when I attach it to the computer, it comes up with the message "iTunes had detected as an iPhone in recovery mode. You must restore
-
Just another question...
Endangering that you ignore further posts of mine :-) For several days I'm trying to track down a bug in our application. However, I don't really have a clue. Now, I'm going to present you the facts and you tell me, where my problem is (at least, thi
-
How should be set Index block size in Warehouse databases?
Hi, We have Warehouse database. I cannot find out index block size. 1. Where can I get know our index block sizes? 2. How can I enlarge index block sizes? Is it related with tablespace? After your suggestion do I need increase or set buffer cache kee
-
Getting original file name to show in Metadata list.
I always convert to dng first thing. Then rename the files with clients name. I know that the original file name is still in the metadata, but how do I get it to show up on LR's metadata list?
-
My import wizard won't work, when it goes to the selection, I select to import from internet explorer, hit next and it just sits there and does nothing.