Call a class at anothor server
Dear All
I'd like to call a class in another server.
I.e. If I have an application running in my machine, and i need to share a class say "test.class" at a directory called H at another server say "http://xxx.xx.x/h/. ". So how I can call this class.
Thank you
unless you want to "Run" this class locally, in which case maybe you want to look at a Network Class Loader...
Similar Messages
-
How can i call shutdown class after the server stopped listening http request
Hi,
I am using wls70sp1. I noticed that the shutdown class called right atfer the
Server state changed to SUSPENDING. Then i saw the <http> *.jsp: destroy>, etc.
see the log file in attachment. how can config the server stop the http listening
first and then do the clean up works? This is very important for us, otherwise,
there is still chance the request be left out.
Thanks
[shut.txt]Hi,
I am using wls70sp1. I noticed that the shutdown class called right atfer the
Server state changed to SUSPENDING. Then i saw the <http> *.jsp: destroy>, etc.
see the log file in attachment. how can config the server stop the http listening
first and then do the clean up works? This is very important for us, otherwise,
there is still chance the request be left out.
Thanks
[shut.txt] -
Call a class after successfuly starting weblogic server
I need to create a class which which some parameter and start a application automatically just after starting weblogic server so that when user request for application he will get quick response. Actually my application takes some time to be start service so that the very first user need to wait for some time.
I am facing the exception of not founding initial context is thrown because the load-on-startup and
by creating startup class the classes are loaded before the server comes in to running state.
In that case the server doen't have its host name and port configurated.
At the time of application setup we need to get the initial context from t3: by using
host and port. At this stage any of the process is unable to get the context.
Is there any way by which we can automatically call a class after starting the server.I have deployed a ear file.
which has one Ear project and one ejb module and one portal application and about 4 web applications.
One of my webapplication need to be started before the user start working on any web application.
I have tried to configure and run you suggestion but i am unable to find the place where should i put the listener and startup class entry. my ear project has weblogic-application.xml file i shall put these entry there then xml doesn't validate and i shall get the project compile error. and same case with the application.xml of ear project and portal application weblogic.xml and web.xml file. I have found only one which is not giving compile time error is wlw-config.xml in portal application.
I am working on weblogic workshop 10.2
if you have any idea about that where i can put these configuration entry so that the class will called on firing event by server. then please let me know.
thanks in advance. -
Call java class that exists in separate server
We have a java class on application server that provides some functions for returning important message. We need to call some functions by using stored procedures or functions in DB. Can anyone tell me how to tell the procedure to connect to the application server?
Remarks:
1. The OS of application server is UNIX and OS of DB server is Windows
2. The administrator login/password on both the application server and DB server are known
Thank you for your help
Edited by: user7946502 on 2009/6/19 上午 1:43Technically this is possible, though I do not have any experience with Axis but I have tried it with JAX-WS.
-
From PL/SQL call java class present in Application server
Hi,
I need to call a java class file which is present on the application server. the call has to be made from pl/sql.
I do not want to make use of the java stored procedures for this.
Is there a way to call a class file residing on the application server from a pl/sql.
Please help me out.
Thanks & Regards
KamleshNew idea. DDL isn`t working but if i would make some DQL ? Like select??
I`m trying to deploy java class like this:
public class test {
public static String say()
throws SQLException{
Connection conn = new OracleDriver().defaultConnection();
String sql = "Select names from pdb_proteins where numbers=61";
try {
// Load the Oracle JDBC driver
Class.forName("oracle.jdbc.OracleDriver") ;
System.out.println("Oracle JDBC driver loaded ok.");
} catch (Exception e) {
System.err.println("Exception: "+e.getMessage());
try {
ResultSet rset = null;
PreparedStatement pstmt = conn.prepareStatement(sql);
rset=pstmt.executeQuery(sql);
String wynik = null;
wynik = rset.getString(1);
return wynik;
} catch (SQLException e) {
System.out.println("Connection Failed! Check output console");
e.printStackTrace();
return "nope";
Then invoke with PL/SQL function
and i`m getting error ORA-29534: object SYSTEM.oracle/jdbc/OracleDriver
Could someone help me with this? How i could register jdbc driver inside Oracle db??
Edited by: Rado_mir on 2013-06-03 02:42 -
How can I call the Class and have a PDF appear in seperate window?.
I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window.
Where I have an issue is in opening another window to display the PDF.
I know the Standard PDF Facsheet does exactly this, but that is triggered via the Web browser and calls a Java script, avoiding and events and round-server trip processing. I would have changed the button values so that when pressed it does process the various events and eventually ends up at EH_ONPREVIEW for the BP_HEAD/Overview. I know just need to open a new window and call the process to create the PDF via Smartform.
Any suggestions would be more than welcome. I have spent so much time on this, and have gained no real ground, so far.
JasonHi,
in the method
data: zcontrol TYPE SSFCTRLOP.
zcontrol-device = 'PRINTER'.
zcontrol-langu = sy-langu.
zcontrol-no_dialog = 'X'.
zcontrol-getotf = 'X'.
data: job type SSFCRESCL.
data: devtype type RSPOPTYPE.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
IMPORTING
e_devtype = devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
data: output_options type SSFCOMPOP.
output_options-tdprinter = devtype.
call function FM_NAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = zcontrol
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = output_options
* USER_SETTINGS = 'X'
IMPORTING
* DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = job
* JOB_OUTPUT_OPTIONS =
TABLES
t_texto = t_texto
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
endif.
data: DOCTAB_ARCHIVE type TABLE OF DOCS,
LINES type TABLE OF TLINE.
*CALL FUNCTION 'CONVERT_OTF_2_PDF'
** EXPORTING
** USE_OTF_MC_CMD = 'X'
** ARCHIVE_INDEX =
** IMPORTING
** BIN_FILESIZE =
* TABLES
* otf = job-otfdata
* doctab_archive = doctab_archive
* lines = lines
* EXCEPTIONS
* ERR_CONV_NOT_POSSIBLE = 1
* ERR_OTF_MC_NOENDMARKER = 2
* OTHERS = 3
data: l_pdf_len type i,
l_pdf_xstring type XSTRING.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
TABLES
otf = job-otfdata
lines = lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
IF sy-subrc is initial.
DATA: cached_response TYPE REF TO cl_http_response.
CREATE OBJECT cached_response
EXPORTING add_c_msg = 1.
l_pdf_len = XSTRLEN( l_pdf_xstring ).
cached_response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->if_http_response~set_status( code = 200
reason = 'OK' ).
cached_response->if_http_response~server_cache_expire_rel(
expires_rel = 180 ).
data guid type GUID_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
data display_url type string.
CONCATENATE url '/' guid '.pdf' INTO
display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
*GV_DISPLAY_URL & GV_PRINTON are class attributes
CLEAR: gv_display_url, gv_printon.
MOVE display_url TO gv_display_url.
gv_printon = 'X'.
ENDIF.
Send me you e-mail i cannot post the code that is used in the view.htm.
Best Regards,
Caíque Escaler
Edited by: Caíque Escaler on Nov 26, 2010 5:00 PM -
Unable to call Java class method within Embedding Java Activity in BPEL
Hi ,
I have written Java Class named 'Class3' .
When I am creating and trying to call these classes whithin Embedding Java Activity , compile time error is coming. Compiler is not finding class . Error message is like this one.
uildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
scac:
[scac] Validating composite : 'C:\JDeveloper\mywork\Application7\Embedded15\composite.xml'
[scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
[scac] symbol : class Class3
[scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
[scac] C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\ExecLetBxExe0.java:73: cannot find symbol
[scac] symbol : class Class3
[scac] location: class orabpel.bpelembedded15.ExecLetBxExe0
[scac] Note: C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\bpel\BPELEmbedded15\src\orabpel\bpelembedded15\BPEL_BIN.java uses unchecked or unsafe operations.
[scac] Note: Recompile with -Xlint:unchecked for details.
[scac] FATAL_ERROR: location {ns:composite/ns:component[@name='BPELEmbedded15']}(20,36): Failed to compile bpel generated classes.
[scac] failure to compile the generated BPEL classes for BPEL process "BPELEmbedded15" of composite "default/Embedded15!1.0"
[scac] The class path setting is incorrect.
[scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
[scac]
BUILD FAILED
C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : C:\JDeveloper\mywork\Application7\Embedded15\SCA-INF\classes\scac.log for errors
Total time: 8 seconds
I am creating Class3 directly in Application Resources folder indide Project Folder in Jdeveloper without creating any package. Code of the class is .......
public class Class3 {
public Class3() {
super();
public String getValue(){
return "BBBBBBB";
Can any one help?
Regards
Yogendra Rishishwar
9867927087Hi ,
In your java project frm jdev..right click and choose general and then choose deployment profiles and then choose Jar ..and then give some appropriate name(abc) and then click ok.
Then under resources file u get a abc.deploy file right click and say deploy to jar ..u will find the jar in that director.Now include this jar in your prjct libraries.
have a look at the link http://niallcblogs.blogspot.com/search/label/embedded%20Java -
EJB is not throwing exception to calling Action class in Unix environment
Hi
We are using Weblogic Server 9.2.3.0.
One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
Somehow the EJB is swallowing the exception.
any idea? I suspect it may be environmental issue?
thank youHi
We are using Weblogic Server 9.2.3.0.
One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
Somehow the EJB is swallowing the exception.
any idea? I suspect it may be environmental issue?
thank you -
Startup Class in WebLogic server 6.1
I Have a Java application as startup class in Weblogic server 6.1 . I need to stop
the application without restarting the Weblogi server (The startup class should
be removed and the change should be reflected in WebLogic server). Is it possible
to achieve this. I Know that we can remove the startup class from the console
but the change is getting reflected only if i restart the WebLogic Server. Can
some one help me out ?.
Thanks,
S GopikrishnaEven if it is EJB-only, adding .war with startup logic will be more convinient
than startup classes.
S Gopikrishna <[email protected]> wrote:
Hi
Thanks a lot for the info. My application is not servlet based rather not
web based. In this case how to solve my startupclass problem.
Regards,
S Gopikrishna
Dimitri Rakitine <[email protected]> wrote:
You can deploy web-app(stand-alone, or as a part of an EAR), which has
servlets marked as
load-on-startup (in that case you can use servlet's init() method to
perform your startup
logic), or has servlet context listeners registered
(http://e-docs.bea.com/wls/docs61/webapp/app_events.html#177041) - contextInitialized()
callback will be called when application is deployed, and contextDestroyed()
will be called when application is undeployed.
S Gopikrishna <[email protected]> wrote:
Thanks a lot for the info. Iam pretty new to WeblogicServer. Can utell me about
how to use load-on-startup servlets or application listeners ?.
Thanks in Advance
S Gopikrishna
Dimitri Rakitine <[email protected]> wrote:
You can look into using load-on-startup servlets or application listeners
instead
of startup classes in 6.1 - that way you can redeploy your application
and re-execute
it's startup logic without placing any classes in the system classpath
or restarting
WebLogic.
S Gopikrishna <[email protected]> wrote:
I Have a Java application as startup class in Weblogic server 6.1
I need to stop
the application without restarting the Weblogi server (The startupclass should
be removed and the change should be reflected in WebLogic server).Is it possible
to achieve this. I Know that we can remove the startup class from
the
console
but the change is getting reflected only if i restart the WebLogicServer. Can
some one help me out ?.
Thanks,
S Gopikrishna--
Dimitri--
Dimitri
Dimitri -
Call java class by using servlet
i written simple servlet with doGet(0. I need call java class when i run servlet
my requirement is when i start the server i will call servlet it will redirect to another page.
but before that servlet will run java class. which i have written externally.
i need to run java class by using servlet then it will redirect to another page.
could you give the proper solutionYou don't call classes - you call methods.
There's nothing special about servlets except the requirement that they implement HttpServlet. Servlets and other classes they interact with all get compiled into WEB-INF/classes on the server.
To forward a request to, say, "other.jsp" you do:
getServletContext().getRequestDispatcher("/other.jsp").forward(request,response); -
How to call a class file in a jsp without deploying anything in j2ee
Hi,
I am new in J2EE. I have some jsps, which I configured using web.properties(documentroot=c:/jsp/). I am able to get
those pages by the web browser. I have some import statements in some jsps, now I
am trying to access those page but it is failing, it says
org.apache.jasper.JasperException: Unable to compile class for
JSPD:\j2sdkee1.3\repository\pradip\web\_0002fLogin_0002ejspLogin_jsp_0.java:1:
Class com.gui.UPMGuiGlobalConstants not found in import.
import com.gui.UPMGuiGlobalConstants;
Actually I have not deployed any class file or jsps.. Now my question is can I access
these jsps without deploying anything, like can I put my .jar file in any j2ee
directory(like lib or anywhere else, I already tried after putting in /lib) and restart the
j2ee and use it. So how can I call a class file from a jsp without any kind of
deployment?
Please send me the reply as soon as possible.
Regds,
PradipAfter you put the jar containing the class to import into the WEB-INF/lib directory, you still need to include it in the jsp.
Putting the jar into the lib dir, will make it available to the vm, but as in any other java class, you still need to import it into the class, that the jsp will be compiled into.
And you do that by putting
<%@page import="com.gui.UPMGuiGlobalConstants" %>somewhere near the top of your jsp. (well you don't need to put it there, but it good style ;)
That should do it. -
Calling a class's method from another class
Hi, i would like to know if it's possible to call a Class's method and get it's return from another Class. This first Class doesn't extend the second. I've got a Choice on this first class and depending on what is selected, i want to draw a image on the second class witch is a Panel extended. I put the control "if" on the paint() method of the second class witch is called from the first by the repaint() (first_class.repaint()) on itemStateChanged(). Thankx 4 your help. I'm stuck with this.This program is for my postgraduation final project and i'm very late....
import java.awt.*;
import java.sql.*;
* This type was generated by a SmartGuide.
class Test extends Frame {
private java.awt.Panel ivjComboPane = null;
private java.awt.Panel ivjContentsPane = null;
IvjEventHandler ivjEventHandler = new IvjEventHandler();
private Combobox ivjCombobox1 = null;
class IvjEventHandler implements java.awt.event.WindowListener {
public void windowActivated(java.awt.event.WindowEvent e) {};
public void windowClosed(java.awt.event.WindowEvent e) {};
public void windowClosing(java.awt.event.WindowEvent e) {
if (e.getSource() == Test.this)
connEtoC1(e);
public void windowDeactivated(java.awt.event.WindowEvent e) {};
public void windowDeiconified(java.awt.event.WindowEvent e) {};
public void windowIconified(java.awt.event.WindowEvent e) {};
public void windowOpened(java.awt.event.WindowEvent e) {};
private Panel ivjPanel1 = null;
* Combo constructor comment.
public Test() {
super();
initialize();
* Combo constructor comment.
* @param title java.lang.String
public Test(String title) {
super(title);
* Insert the method's description here.
* Creation date: (11/16/2001 7:48:51 PM)
* @param s java.lang.String
public void conexao(String s) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
String url = "jdbc:oracle:thin:system/[email protected]:1521:puc";
Connection db = DriverManager.getConnection(url);
//String sql_str = "SELECT * FROM referencia";
Statement sq_stmt = db.createStatement();
ResultSet rs = sq_stmt.executeQuery(s);
ivjCombobox1.addItem("");
while (rs.next()) {
String dt = rs.getString(1);
ivjCombobox1.addItem(dt);
db.close();
} catch (SQLException e) {
System.out.println("Erro sql" + e);
} catch (ClassNotFoundException cnf) {
* connEtoC1: (Combo.window.windowClosing(java.awt.event.WindowEvent) --> Combo.dispose()V)
* @param arg1 java.awt.event.WindowEvent
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void connEtoC1(java.awt.event.WindowEvent arg1) {
try {
// user code begin {1}
// user code end
this.dispose();
// user code begin {2}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {3}
// user code end
handleException(ivjExc);
* Return the Combobox1 property value.
* @return Combobox
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private Combobox getCombobox1() {
if (ivjCombobox1 == null) {
try {
ivjCombobox1 = new Combobox();
ivjCombobox1.setName("Combobox1");
ivjCombobox1.setLocation(30, 30);
// user code begin {1}
this.conexao("select * from referencia");
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
return ivjCombobox1;
* Return the ComboPane property value.
* @return java.awt.Panel
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getComboPane() {
if (ivjComboPane == null) {
try {
ivjComboPane = new java.awt.Panel();
ivjComboPane.setName("ComboPane");
ivjComboPane.setLayout(null);
getComboPane().add(getCombobox1(), getCombobox1().getName());
getComboPane().add(getPanel1(), getPanel1().getName());
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
return ivjComboPane;
* Return the ContentsPane property value.
* @return java.awt.Panel
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Panel getContentsPane() {
if (ivjContentsPane == null) {
try {
ivjContentsPane = new java.awt.Panel();
ivjContentsPane.setName("ContentsPane");
ivjContentsPane.setLayout(new java.awt.BorderLayout());
getContentsPane().add(getComboPane(), "Center");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
return ivjContentsPane;
* Return the Panel1 property value.
* @return Panel
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private Panel getPanel1() {
if (ivjPanel1 == null) {
try {
ivjPanel1 = new Panel();
ivjPanel1.setName("Panel1");
ivjPanel1.setBackground(java.awt.SystemColor.scrollbar);
ivjPanel1.setBounds(24, 118, 244, 154);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
return ivjPanel1;
* Called whenever the part throws an exception.
* @param exception java.lang.Throwable
private void handleException(java.lang.Throwable exception) {
/* Uncomment the following lines to print uncaught exceptions to stdout */
// System.out.println("--------- UNCAUGHT EXCEPTION ---------");
// exception.printStackTrace(System.out);
* Initializes connections
* @exception java.lang.Exception The exception description.
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initConnections() throws java.lang.Exception {
// user code begin {1}
// user code end
this.addWindowListener(ivjEventHandler);
* Initialize the class.
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
try {
// user code begin {1}
// user code end
setName("Combo");
setLayout(new java.awt.BorderLayout());
setSize(460, 300);
setTitle("Combo");
add(getContentsPane(), "Center");
initConnections();
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
// user code begin {2}
// user code end
* Insert the method's description here.
* Creation date: (11/17/2001 2:02:58 PM)
* @return java.lang.String
public String readCombo() {
String dado = ivjCombobox1.getSelectedItem();
return dado;
* Starts the application.
* @param args an array of command-line arguments
public static void main(java.lang.String[] args) {
try {
/* Create the frame */
Test aTest = new Test();
/* Add a windowListener for the windowClosedEvent */
aTest.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosed(java.awt.event.WindowEvent e) {
System.exit(0);
aTest.setVisible(true);
} catch (Throwable exception) {
System.err.println("Exception occurred in main() of Test");
exception.printStackTrace(System.out);
* Insert the type's description here.
* Creation date: (11/17/2001 1:59:15 PM)
* @author:
class Combobox extends java.awt.Choice {
public java.lang.String dado;
* Combobox constructor comment.
public Combobox() {
super();
initialize();
* Called whenever the part throws an exception.
* @param exception java.lang.Throwable
private void handleException(java.lang.Throwable exception) {
/* Uncomment the following lines to print uncaught exceptions to stdout */
// System.out.println("--------- UNCAUGHT EXCEPTION ---------");
// exception.printStackTrace(System.out);
* Initialize the class.
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
try {
// user code begin {1}
// user code end
setName("Combobox");
setSize(133, 23);
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
// user code begin {2}
// user code end
* main entrypoint - starts the part when it is run as an application
* @param args java.lang.String[]
public static void main(java.lang.String[] args) {
try {
java.awt.Frame frame = new java.awt.Frame();
Combobox aCombobox;
aCombobox = new Combobox();
frame.add("Center", aCombobox);
frame.setSize(aCombobox.getSize());
frame.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
frame.setVisible(true);
} catch (Throwable exception) {
System.err.println("Exception occurred in main() of Combobox");
exception.printStackTrace(System.out);
* Insert the type's description here.
* Creation date: (11/17/2001 2:16:11 PM)
* @author:
class Panel extends java.awt.Panel {
* Panel constructor comment.
public Panel() {
super();
initialize();
* Panel constructor comment.
* @param layout java.awt.LayoutManager
public Panel(java.awt.LayoutManager layout) {
super(layout);
* Called whenever the part throws an exception.
* @param exception java.lang.Throwable
private void handleException(java.lang.Throwable exception) {
/* Uncomment the following lines to print uncaught exceptions to stdout */
// System.out.println("--------- UNCAUGHT EXCEPTION ---------");
// exception.printStackTrace(System.out);
* Initialize the class.
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
try {
// user code begin {1}
// user code end
setName("Panel");
setLayout(null);
setSize(260, 127);
} catch (java.lang.Throwable ivjExc) {
handleException(ivjExc);
// user code begin {2}
// user code end
* main entrypoint - starts the part when it is run as an application
* @param args java.lang.String[]
public static void main(java.lang.String[] args) {
try {
java.awt.Frame frame = new java.awt.Frame();
Panel aPanel;
aPanel = new Panel();
frame.add("Center", aPanel);
frame.setSize(aPanel.getSize());
frame.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
frame.setVisible(true);
} catch (Throwable exception) {
System.err.println("Exception occurred in main() of java.awt.Panel");
exception.printStackTrace(System.out);
* Insert the method's description here.
* Creation date: (11/17/2001 2:18:36 PM)
public void paint(Graphics g) {
/* Here's the error:
C:\Test.java:389: non-static method readCombo() cannot be referenced from a static context
System.out.println(Test.lerCombo());*/
System.out.println(Test.readCombo()); -
Is it possible to call a class method using pattern in ABAP editor.
Hi,
Is it possible to call a class method using pattern in ABAP editor.
Thank U for Ur time.
Cheers,
SamYes,
Click patterns.
Then choose Abap objects patterns.
Click on the Tick
It will give a new screen
Here Give the name of the class first.
Then the object (instance of the calss)
And finally the method ..
it will give you the pattern
Hope this helps. -
Is it possible to call a class in a jar file from JNI environment?
Hi
Is it possible to call a class in a jar file from JNI environment?
Thanks in advance.Could you explain a bit more what you are trying to do? (In other words, your question is vague.)
o If your main program is written in C, you can use JNI to start a JVM, load classes from the jar of your choice, and call constructors and methods of the objects defined in the jar.
o If your main program is java, and has been laoded from a jar, a JNI routine can call back into java to use the constructors and methods of classes defined in the jar(s). -
Exception while calling stored procedure in SQL server
Hi,
I run into a problem while calling a proc in SQL server. I am using a database control to do so. The proc returns a integer. This is the first time I use SQL server. Any thoughts? Thanks in advance.
My method call is:
int createAccount(SQLParameter[] param)
The sql is:
{call espsiCompany(?, ?, ?)}
The error is:
java.lang.NullPointerException
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getStatement_v2(DatabaseControlImpl.jcs:1885)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.invoke(DatabaseControlImpl.jcs:2691)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:373)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
at services.OnyxDBControl.createAccount(OnyxDBControl.ctrl)
at services.OnyxDBControlTest.createAccount(OnyxDBControlTest.jws:18)Hi. That's not the signature of the procedure. What I'd like to see is
the SQL used to create the procedure, eg:
create procedure myProc @foo int, @bar varchar(30) ....
as
begin
end
Jun Li wrote:
Here you go. Thanks for your time.
DECLARE @RC int
DECLARE @iSiteId int
DECLARE @iCompanyId int
DECLARE @chLanguageCode char(4)
DECLARE @vchAssignedId varchar(255)
DECLARE @vchCompanyName varchar(255)
DECLARE @vchAddress1 varchar(255)
DECLARE @vchAddress2 varchar(255)
DECLARE @vchAddress3 varchar(255)
DECLARE @vchCity varchar(255)
DECLARE @chRegionCode char(4)
DECLARE @chCountryCode char(4)
DECLARE @vchPostCode varchar(40)
DECLARE @vchPhoneNumber varchar(40)
DECLARE @vchEmailAddress varchar(255)
DECLARE @vchURL varchar(255)
DECLARE @iCompanyTypeCode int
DECLARE @iCompanySubTypeCode int
DECLARE @iFamilyId int
DECLARE @iParentId int
DECLARE @iPrimaryContactId int
DECLARE @vchContactFirstName varchar(255)
DECLARE @vchContactLastName varchar(255)
DECLARE @iDivisionCode int
DECLARE @iSICCode int
DECLARE @iMarketSector int
DECLARE @vchTaxId varchar(255)
DECLARE @vchDunnsNumber varchar(255)
DECLARE @iPhoneTypeId int
DECLARE @iAddressTypeId int
DECLARE @iSourceId int
DECLARE @iStatusId int
DECLARE @bValidAddress tinyint
DECLARE @iAccessCode int
DECLARE @bPrivate tinyint
DECLARE @vchUser1 varchar(255)
DECLARE @vchUser2 varchar(255)
DECLARE @vchUser3 varchar(255)
DECLARE @vchUser4 varchar(255)
DECLARE @vchUser5 varchar(255)
DECLARE @vchUser6 varchar(255)
DECLARE @vchUser7 varchar(255)
DECLARE @vchUser8 varchar(255)
DECLARE @vchUser9 varchar(255)
DECLARE @vchUser10 varchar(255)
DECLARE @chInsertBy char(10)
DECLARE @dtInsertDate datetime
DECLARE @tiLockRecord tinyint
DECLARE @tiRecordStatus tinyint
DECLARE @tireturnType tinyint
-- Set parameter values
EXEC @RC = [ONYXPROD].[dbo].[espsiCompany] @iSiteId, @iCompanyId OUTPUT , @chLanguageCode, @vchAssignedId, @vchCompanyName, @vchAddress1, @vchAddress2, @vchAddress3, @vchCity, @chRegionCode, @chCountryCode, @vchPostCode, @vchPhoneNumber, @vchEmailAddress, @vchURL, @iCompanyTypeCode, @iCompanySubTypeCode, @iFamilyId, @iParentId, @iPrimaryContactId, @vchContactFirstName, @vchContactLastName, @iDivisionCode, @iSICCode, @iMarketSector, @vchTaxId, @vchDunnsNumber, @iPhoneTypeId, @iAddressTypeId, @iSourceId, @iStatusId, @bValidAddress, @iAccessCode, @bPrivate, @vchUser1, @vchUser2, @vchUser3, @vchUser4, @vchUser5, @vchUser6, @vchUser7, @vchUser8, @vchUser9, @vchUser10, @chInsertBy, @dtInsertDate, @tiLockRecord, @tiRecordStatus, @tireturnType
Maybe you are looking for
-
How do I reconnect missing files in the Slideshow Editor?
I created a slideshow and set up everything (pan/zoom, size, etc) and it worked fine. I saved the project before closing it and had created an output video at 800x600. For some reason I could not create the 1024x768 video. After shutting down for the
-
I have troubleshoot beyond the average user expectations, google for answers and read many forums posts to no avail... and I refuse to believe that I will have to download a 3rd party app to make my iMac go to sleep. My MacBook has shown similar symp
-
Urgent(Issue in RSA7 and SMQ1)
We have two data sources 0CRM_OPPT_H and 0CRM_OPPT_I are in RSA7 and we deleted queues manually for these data source in SMQ1. Whenever we dochanges to records related to these data sources that changes we can able to see in RSA3 and Data base tables
-
hi this is pradeep can anyone pls send me the whole transaction codes of sap bw i have some doubts in transaction codes. through ur answer i can know the transaction codes
-
ADF Specific Default Changes from 10g to 11.1.2.0.0
Does anyone have a definitive list of changes to the default settings that are new in 11.1.2.0.0? I am migrating an application from 10g to 11 and what works fine in 10 not so much in 11. I have already learned that the default iterator change event