Hooking the Exception class
Is there anyway I can hook the exception class to catch any and all exceptions or basically what I am trying to do is have an error reporter class and right now I have try catch blocks in every one of my methods that then from that sends the error to the reporter class and then the reporter sends the messages to my server. Is there a better way of doing this for example some how hooking or extending the exception class?
Any other ways? I just want to see all the ways and
select the best and easiest to implement.No. There isn't any other way to setup a global error handler.
Kaj
Similar Messages
-
Revision: 3540
Author: [email protected]
Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
Log Message:
Fix for missing name of the exception class, when @throw is used.
Also fixes for:
SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
QA: Yes
Doc:
Tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17212
http://bugs.adobe.com/jira/browse/SDK-17242
http://bugs.adobe.com/jira/browse/SDK-17256
Modified Paths:
flex/sdk/trunk/asdoc/templates/class-files.xslt
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja vaRevision: 3540
Author: [email protected]
Date: 2008-10-09 11:20:44 -0700 (Thu, 09 Oct 2008)
Log Message:
Fix for missing name of the exception class, when @throw is used.
Also fixes for:
SDK-17212 - Add a line feed between messages in the ASDoc validation_errors.log file.
SDK-17242 - The Constants.as and GlobalFunctions.as classes from system classes need to have their content added to __Global__.xml
SDK-17256 - For methods of the mx.components.Group class, args or return values of type Object do not appear in the ASDoc output.
QA: Yes
Doc:
Tests: checkintests
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17212
http://bugs.adobe.com/jira/browse/SDK-17242
http://bugs.adobe.com/jira/browse/SDK-17256
Modified Paths:
flex/sdk/trunk/asdoc/templates/class-files.xslt
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/ClassTable.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va -
Confusion with the Exception class
Hello friends
Can anybody please help me.
I am not able to understand why I get complie time error in the first case and I do not get a compile time error in the second case.
The error is IOException which is a checked exception is never thrown in the try block.
but Exception which is the super class of all exception is also checked exception so why dont I get the same error in the second case.
import java.io.*;
class Exception2
public static void main(String args[])
try
return;
}catch(IOException e)
finally
System.out.println("finally");
import java.io.*;
class Exception2
public static void main(String args[])
try
return;
}catch(Exception e)
finally
System.out.println("finally");
}import java.util.*;
public class Exception2 {
public Exception2() {
public static void main(String args[]){
try{
return;
}catch (RuntimeException ee) {
}catch(Exception e) {
}finally{
System.out.println("finally");
up code is very clearly to result.
because RuntimeException is in Exception ,and return can cause RuntimeException,So........................
:) -
ABAP OO Exception Class based processing
Hi there,
Note: In going forward with SAP WAS 6.20, one can handle exceptions using exception-class based handling using RAISE EXCEPTION TYPE abc and then CATCHing it in TRY/ ENDTRY block. Standard method like GET_TEXT can be used to get the text of the exception raised.
Question: If I know the EXCEPTION CLASS and Exception ID of my exception class, is it possible to get the exception text directly from the repository without creating the exception class object?
E.g. Exception class is CX_MY_SECRET_ID
and Exception IDs for this class are
ID_NOT_FOUND,
ID_EXPIRED,
ID_IS_FOR_SPECIAL_ACCESS
E.g. last two exception IDs are my warning conditions, and if such conditions are encountered, all I want to do is collect the warning messages. Whereas first exception ID condition (i.e. ID_NOT_FOUND) is an error for me, in which I have pass the exception back to the calling program. E.g. the source code is like this:
PERFORM.......
If ID is not found
RAISE EXCEPTION TYPE ZCX_MY_SECRET_ID
EXPORTING TEXT_ID = 'ID_NOT_FOUND'.
else if ID has expired
...... then do I have to first raise the exception like raised above and CATCH it before I can get its text? or can I get the exception text directly without raising the exception first (as I know i have to retrieve the text of ZCX_MY_SECRET_ID exception class for Exception ID ID_EXPIRED)?
In other words, if a certain condition is warning for my program, can I get the condition for that exception (from exception class based on exception class name and exception ID), or do I have to RAISE it first explicitely and then CATCH it immediately and execute GET_TEXT to get its text?
Thanks very much!Hello Chetan,
in basic the raise exception type xxx creates an exception object and aborts normal execution continuing in the enclosing try block.
The Abap runtime contains some optimizations regarding the try block has an 'into xxx' clause. But as long you use the same exception you cant take benefit from this.
As far I understand your problem you have two different kind of severities. So I would use 2 differnt exception classes (maybe derived from a common parent type, or one from the other).
So both the code which throws the exception and the one which catches it are aware of the different semantic.
Kind Regards
Klaus -
Exception class & Throwable class
Does the Exception class inherit hashCode from the Throwable class?
thanks in advance for anyones help??No, from Object.
http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Exception.html -
How to use user defined exception class
Hi all
I just need som help with creating a user defined exception class.
Im writing a small/simple text editor.
My exception class looks like this:
public class myExcp extends Throwable
private String message;
public myExcep(String message)
this.message = message;
public void display()
System.out.println(message);
I would like to use it when a user tries to open a exe-file instead of a txt file.
Here is some code from the editor:
if (e.getSource() == open)
saveOld();
if (fc.showOpenDialog(null)== JFileChooser.APPROVE_OPTION)
readFile(fc.getSelectedFile().getAbsolutePath());
saveas.setEnabled(true);
So, should I use exception here or at the readFile method?
readfile:
private void readFile(String fileName)
try
String tmp = fileName.substring(fileName.length() -4, fileName.length());
if (!tmp.equals(".exe"))
FileReader r = new FileReader(fileName);
textarea.read(r, null);
r.close();
currentFile = fileName;
label.setText(currentFile);
changed = false;
catch (IOException e)
JOptionPane.showMessageDialog (this, "Cannot find the file " + fileName);
Where and how do I use my exception class.
Do I need to create an instance? Where?
Should the exception class extend Exception instead?
Thank you in advance /Extend Exception, not Throwable. It's a checked exception that way.
Follow the Sun coding standards and make that exception class name start with a capital letter.
When you extend Exception, override all four ctors.
What's that display method you added? Isn't getMessage() good enough?
You need to create a new instance just before you throw the exception, of course.
Sounds like a terrible design, by the way. Exceptions shouldn't be used like "go to" for app logic. They should signal unrecoverable conditions. You can easily recover from the situation you've described simply by displaying a pop-up that tells the user to open only text-readable file types. I think that's a better solution.
% -
How to Maintain Translation of texts of Exception Class
Hi Experts,
I have an exception class ZCX_CHECK . I have maintained a text in the text tab of the exception class
like No components Exists in Package &PACKAGE_NAME&
PACKAGE_NAME is the Attribute . How do I maintain Translation of the TEXT. When I navigate like Goto->Translation , it is saying Empty Object list.
When I maintain text elements and give text-001 in the text tab of the exception class , the ouptu is coming as text-001 in the Report .
How do I amintain translation , or how can I integrate a message class with an exception class .I know where to metion messsage class . But how do I use it inside exception classLet me rephrase this: When entering a text in your Exception class it will be automatically part of the OTR. You can check this by looking this up in SOTR_EDIT.Press the binoculars button (Find), and search on package (development class).
Now via SE63: Translation->ABAP Objects->Short texts
open node OT on pop-up and double click on Subnode.Enter a * on screen for Object name and press F4. Now enter collection (package / development) class. Select the text to be translated.
BTW: Via SOTR_EDIT you can retrieve the logical key (field concept) which is needed for translation. Select the GUID (logical key / concept) from SOTR_EDIT. -
Exceptions classes in 4.6C
Hello SDNers,
as Uwe had already written in the thread Throw statement equivalent in ABAP Objects.
What would be better?
1. Would you try to develop in 4.6C the exception classes
(plenty of work, but keeping myself updated, and I can use them also in the future)
CX_ROOT -> ZCX_ROOT; ZIF_MESSAGE
CX_STATIC_CHECK (I need this slass) -> ZCX_STATIC_CHECK
2. just to solve the problem with traditionally
METHOD get_xxx.
IF sy-subrc = 0.
ELSE.
RAISE wrong_xxxx.
ENDIF.
ENDMETHOD.
With regards,
PeterYou may appreciate that whatever is possible in OO ABAP is still possible in procedural ABAP with difference in the extent of SW reusability, visibility control etc. So its a design decision whether to go for OO ABAP. In case you have a business case for a class ( you feel that the class will be used many times in your project, you need to control visibility, you have chances of enhancing the functionality of the class, you do not want to incur more resources in testing etc. ), you can go for the development of the exception class.
Otherwise traditional development may be helpful. -
hi all ,,
can any one tell me how to create a exception class in ABAP OOPS concept ??
if possible can give link also for documentHI Jayakumar,
Please go thru this document
Exceptions are represented by objects that are instances of exception classes. Defining an exception is, therefore, the same as creating an exception class.
All exception classes must inherit from the common superclass CX_ROOT and one of its subordinate classes:
CX_STATIC_CHECK
CX_DYNAMIC_CHECK
CX_NO_CHECK
. The assignment of exception classes to one of these three paths of the inheritance hierarchy determines the way in which the associated exceptions are propagated. There is a record of predefined exception classes CX_SY_... whose exceptions are raised in error situations in the runtime environment. These classes all inherit from CX_DYNAMIC_CHECK or CX_NO_CHECK but not from CX_STATIC_CHECK (see hierarchy in the ABAP keyword documentation).
All exception classes must begin with the prefix CX_. They are usually defined globally with the Class Builder of the ABAP Workbench. Local exception classes can, however, also be defined.
Individual (abstract) exception classes that are used as the superclass of further exception classes can be defined. The exceptions of the subordinate classes can be handled together using a superclass.
Exception classes have the following features:
Constructor
The constructor must have a predefined structure and a specific interface. With global classes, the Class Builder generates the correct constructor and sets it to an unchangeable status. The constructor has two IMPORTING parameters:
TEXTID of the SOTR_CONC type
This parameter can be used to determine which of your exception texts the exception will use.
PREVIOUS of the CX_ROOT type
This parameter can be used to assign the PREVIOUS attribute a previous exception.
Methods
In exception classes, you can define your own methods. The following two predefined methods are inherited from the root class CX_ROOT:
GET_TEXT
Sends back the exception texts of a class (controlled by the TEXTID attribute) as a string.
GET_SOURCE_POSITION
Returns the program name, the name of a possible include program, and the line number of the statement that raised the exception.
Attributes
The attributes of exception classes are used to transport additional information on an error situation to the handler. The main piece of information is, however, always the fact that an exception of a particular class has occurred. The following attributes are inherited from CX_ROOT:
TEXTID
Used to specify the exception of a class more precisely by using several exception texts. Is evaluated in the GET_TEXT method.
PREVIOUS
If an exception is mapped to another exception, a reference to the original exception can be defined in this attribute via the EXPORTING addition of the RAISE EXCEPTION statement and by means of the constructor IMPORTING PARAMETER with the same name. This can result in a chain of exception objects. In the event of a runtime error, the exception texts of all the exceptions in the chain are output. Mapping an exception to another exception is only beneficial if the context in which the original exception occurred is important for characterizing the error situation.
KERNEL_ERRID
The name of the associated runtime error is stored in this attribute if the exception was raised by the runtime environment, for example, COMPUTE_INT_ZERODIVIDE with a division by zero. If the exception is not handled, precisely this runtime error occurs.
Parameters cannot be transferred to the constructor for this attribute. If the exception is raised with RAISE EXCEPTION, the attribute is set to initial.
Global Exception Classes
Global exception classes are defined and managed in the Class Builder. If the correct naming convention (prefix CX_) and the class type Exception Class is chosen when a new class is created, the Class Builder automatically becomes the Exception Builder.
The Exception Builder offers precisely the functionality required to define exception classes and generates independently-defined components that must not be changed. When classes are created, the category of the exception must be specified, in other words, whether it is to inherit from CX_STATIC_CHECK, CX_DYNAMIC_CHECK, or CX_NOCHECK.
Tab Pages of the Exception Builder
The Exception Builder has the tab pages Properties, Attributes, Methods, and Texts.
The properties do not normally need to be changed.
Except for the four inherited attributes mentioned above, further public attributes can be generated by the Exception Builder. The contents of these attributes specify the exception more clearly and manage the exception texts.
All of the methods are inherited from CX_ROOT. New methods cannot be added. The instance constructor is generated automatically. It ensures that, when an exception is raised, the attributes have the right values. It also transfers the text of the superclass for an exception class whose exception text is not specified explicitly.
The instance constructor is generated on the basis of the attributes, which are set up on the basis of the exception texts. Changing the attributes in superclasses can, therefore, invalidate the constructors of subordinate classes. The constructors of subordinate classes can be regenerated under Utilities ® CleanUp ® Constructor.
Texts are a special feature of exception classes and the Exception Builder. For further information, refer to Exception Texts.
Local Exception Classes
Local exception classes can be defined for specific exceptions that only occur within one single ABAP program. The condition for a local exception class is that it inherits from one of the three classes CX_STATIC_CHECK, CX_DYNAMIC_CHECK, or CX_NO_CHECK, or from their subordinate classes. An individual constructor and individual attributes can be created. Individual methods should not be created, however, and the methods of superclasses should not be redefined.
Examples of Local Exception Classes
report DEMO_LOCAL_EXCEPTION_1.
class CX_LOCAL_EXCEPTION definition
inheriting from CX_STATIC_CHECK.
endclass.
start-of-selection.
try.
raise exception type CX_LOCAL_EXCEPTION.
catch CX_LOCAL_EXCEPTION.
message 'Local Exception!' type 'I'.
endtry.
This example shows a minimal local exception class, which is simply the local representation of one of the three direct subordinate classes of CX_ROOT. It can be used in the program.
report DEMO_LOCAL_EXCEPTION_2.
class CX_LOCAL_EXCEPTION definition
inheriting from CX_STATIC_CHECK.
public section.
data LOCAL_TEXT type STRING.
methods CONSTRUCTOR importing TEXT type STRING.
endclass.
class CX_LOCAL_EXCEPTION implementation.
method CONSTRUCTOR.
SUPER->CONSTRUCTOR( ).
LOCAL_TEXT = TEXT.
endmethod.
endclass.
data OREF type ref to CX_LOCAL_EXCEPTION.
start-of-selection.
try.
raise exception type CX_LOCAL_EXCEPTION
exporting TEXT = `Local Exception`.
catch CX_LOCAL_EXCEPTION into OREF.
message OREF->LOCAL_TEXT type 'I'.
endtry.
In this example, the exception class from the previous example is extended to include an individual attribute and constructor. The IMPORTING parameter of the constructor must be supplied when the exception is raised (it is required here). The attribute can be evaluated in the handler of the exception.
report DEMO_LOCAL_EXCEPTION_3.
class CX_LOCAL_EXCEPTION definition
inheriting from CX_SY_ARITHMETIC_ERROR.
public section.
methods CONSTRUCTOR importing SITUATION type STRING.
endclass.
class CX_LOCAL_EXCEPTION implementation.
method CONSTRUCTOR.
SUPER->CONSTRUCTOR( OPERATION = SITUATION ).
endmethod.
endclass.
data OREF type ref to CX_LOCAL_EXCEPTION.
data TEXT type STRING.
start-of-selection.
try.
raise exception type CX_LOCAL_EXCEPTION
exporting SITUATION = `START-OF-SELECTION`.
catch CX_LOCAL_EXCEPTION into OREF.
TEXT = OREF->GET_TEXT( ).
message TEXT type 'I'.
endtry.
In this example, an exception class is derived from one of the predefined exception classes for error situations in the runtime environment. An individual constructor is defined with an individual IMPORTING parameter that supplies the superclass constructor with this parameter. When the exception is handled, the exception text, as defined in the superclass, is read with GET_TEXT. -
Hi,
I have a global exception class which is inherited from already existing exception class.
I would like to use this class to raise different exceptions.
How to use this global exception class to raise exceptions with different descriptions?
can anybody explain or send a material on this?
Thanks in advance...
Sreenivas ReddyI guess you have little misunderstanding of the Exception concept.
You have to RAISE the exception from any processing block (Subroutine, Method etc.) and CATCH the exception in where you call the subroutine.
Check this example. In this example, I am raising the exception from the method DEVIDE of the class LCL_TEST. Now, I call this method DEVIDE in the START-OF-SELECTION block. So, here I need to catch this raised exception by the DEVIDE method. In my example I have used the exception class ZCX_GEN_EXC, you may have to replace it with your exception class ZCX_SAMPLE_EXCEPTION.
CLASS lcl_test DEFINITION.
PUBLIC SECTION.
METHODS devide
IMPORTING
n1 TYPE i
CHANGING
n2 TYPE i
RAISING
zcx_gen_exc.
ENDCLASS. "lcl_test DEFINITION
START-OF-SELECTION.
DATA: lo_test TYPE REF TO lcl_test,
lo_exc TYPE REF TO zcx_gen_exc,
lf_n1 TYPE i,
lf_n2 TYPE i.
CREATE OBJECT lo_test.
lf_n1 = 0.
lf_n2 = 10.
TRY.
CALL METHOD lo_test->devide
EXPORTING
n1 = lf_n1
CHANGING
n2 = lf_n2.
* catching the exception
CATCH zcx_gen_exc INTO lo_exc.
MESSAGE lo_exc->wf_etext TYPE 'I'.
ENDTRY.
CLASS lcl_test IMPLEMENTATION.
METHOD devide.
IF n1 = 0.
RAISE EXCEPTION TYPE zcx_gen_exc
EXPORTING
wf_etext = 'Exception occured'
wf_mtype = 'E'.
ELSE.
n2 = n2 / n1.
ENDIF.
ENDMETHOD. "devide
ENDCLASS. "lcl_Test IMPLEMENTATION
Regards,
Naimesh Patel -
Each exception class in its own file????
Hi, I am still quite new to java, and I don't fully understand exceptions. Could you please tell me if for each exception class you require do you have to have a a seperate file. e.g. I'm creating my own array exceptions classes.
The following is the structure:
** The base array exceptions class
public class arrayException extends Exception {
public arrayException () { super(); }
public arrayException (String s) { super(s); }
** The outofboundsArrayException
public class outofboundsArrayException extends arrayException {
public outofboundsArrayException ()
{ super("Number entered is out of bounds"); }
public outofboundsArrayException (String s)
{ super(s); }
** The fullArrayExceptiom
public class fullArrayException extends arrayException {
public fullArrayException ()
{ super("The array is full"); }
public fullArrayException (String s)
{ super(s); }
So will the three classes above need their own file.
I wanted to also know what the super does. I thought when the exception was raised, the text message in the super method is outputted, but i've tested that and it doesn't output (e.g. the error message "The array is full" doesn't output). The only thing that outputs is what you put in the catch part.
Thank You very Much!Could you please tell me if
for each exception class you require do you have to
have a a seperate file.Yes. Exception classes are like any other public class in Java, in that it must be in its own file with the standard naming conventions.
I wanted to also know what the super does. I thought
when the exception was raised, the text message in
the super method is outputted, but i've tested that
and it doesn't outputsuper([0,]...[n]) calls a constructor in the superclass of your current class matching the signature super([0,]...[n]). In this particular case, the Exception's message property is being set by the parent constructor. If you were to leave out super([0,]...[n]), the default no-arg constructor of the superclass would be invoked, and the message would not be set.
Use the getMessage() method of the Exception class to return the message value in later references to your object. -
Wsdl2service exception class: case sensitive problem
When I run wsdl2service on my .wsdl, file the generated class is a different case than the class name(CatalogException vs catalogException). The exception classes will not compile. Any ideas?
<wsdl2service
wsdl="ws_20/CatalogQueryService.wsdl"
destDir="${src_gen}"
typeMappingFile="${autotype}/types.xml"
packageName="mil.dcgs.mdf.webservice"
generateImpl='true'>
<classpath refid='project.classpath'/>
</wsdl2service>
================================================
[wsdl2service] Generating web service from wsdl ws_20/CatalogQueryService.wsdl
[wsdl2service] C:\views\dib\DIB\src_gen_mort\mil\dcgs\mdf\webservice\catalogException.java:9: class CatalogException is public, shou
ld be declared in a file named CatalogException.java
[wsdl2service] public class CatalogException extends java.lang.Exception
[wsdl2service] ^
[wsdl2service] C:\views\dib\DIB\src_gen_mort\mil\dcgs\mdf\webservice\dataAccessException.java:9: class DataAccessException is public
, should be declared in a file named DataAccessException.java
[wsdl2service] public class DataAccessException extends java.lang.Exception
[wsdl2service] ^
[wsdl2service] 2 errors
[wsdl2service] java.io.IOException: Compiler failed executable.exec
[wsdl2service] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[wsdl2service] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[wsdl2service] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
[wsdl2service] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)Windows filenames are not case-sensitive. So you can't have both EventSite.class and eventsite.class in the same directory. What you see there probably also involves Windows 98's habit of messing with the capitalization of file names (try creating a directory with the name of IBM, not Ibm).
-
Assertions vs. Exceptions Classes
Hello Everyone,
in the last weeks we were progressing with the use of exception classes in our current project...
I continued reading about ways to improve software quality and such that I reached the the new way of using Assertions thought this paper: http://www.sapnow.cn/upload/7871465e846771cf9.PDF
My Questions is now when do I use what in my code?
As an example:
Select * from vbak where vbeln = lf_vblen
What do I do to "check" that
lf_vblen
is not initial? Or what do I do IF it IS Inital and it shouild not be, should I raise an exception oder use Assert?
I can imagine that there will be no clear statement, but I would like to get a feeling when to us what ...
Thanks for your reply or comment.You may appreciate that whatever is possible in OO ABAP is still possible in procedural ABAP with difference in the extent of SW reusability, visibility control etc. So its a design decision whether to go for OO ABAP. In case you have a business case for a class ( you feel that the class will be used many times in your project, you need to control visibility, you have chances of enhancing the functionality of the class, you do not want to incur more resources in testing etc. ), you can go for the development of the exception class.
Otherwise traditional development may be helpful. -
Get the values from Exception class
Hi all ..
In class i have raised one exception
when i catch this exception in my program i m able to get the
error message but i need to get all the parameters that i pass
when i raise the exception ...
i have raised like this
RAISE EXCEPTION TYPE cx_bapi_error
EXPORTING
textid = cx_bapi_error=>cx_bo_error
class_name = 'ZHS_'
log_no = wa_bapi_return-log_no
log_msg_no = wa_bapi_return-log_msg_no
t100_msgid = wa_bapi_return-id
t100_msgno = wa_bapi_return-number
t100_msgv1 = wa_bapi_return-message_v1
t100_msgv2 = wa_bapi_return-message_v2
t100_msgv3 = wa_bapi_return-message_v3
t100_msgv4 = wa_bapi_return-message_v4
STATUS = lt_status
and caught the exception like this in my program
CATCH cx_bapi_error INTO go_error.
gd_text = go_error->get_text( ).
EXIT.
ENDTRY.
in this i m just getting the class name which i have passed in exception
i need all other parameters that i have passed ..
if u have any idea pls let me know ..
Thanks in advance ...Hello Jayakumar
Usually the attributes of standard exception classes are defines as <b>public</b> and <b>read-only</b>. Thus, you should be able to use the following coding:
DATA:
go_error TYPE REF TO cx_bapi_error. " specific exception class !!!
TRY.
RAISE EXCEPTION TYPE cx_bapi_error
EXPORTING
textid = cx_bapi_error=>cx_bo_error
class_name = 'ZHS_'
log_no = wa_bapi_return-log_no
log_msg_no = wa_bapi_return-log_msg_no
t100_msgid = wa_bapi_return-id
t100_msgno = wa_bapi_return-number
t100_msgv1 = wa_bapi_return-message_v1
t100_msgv2 = wa_bapi_return-message_v2
t100_msgv3 = wa_bapi_return-message_v3
t100_msgv4 = wa_bapi_return-message_v4
STATUS = lt_status.
CATCH cx_bapi_error INTO go_error.
gd_text = go_error->get_text( ).
WRITE: go_error->t100_msgid, " perhaps the attributes have different name
go_error->t100_msgno, " check attribute names in SE24
EXIT.
ENDTRY.
Regards
Uwe -
Class not found exception for the startup class defined.
iam using weblogic server 10 and bea jrockit 1.5.0.12.
i have created a startup class in the admin console for a web project and i have deployed the war file using the console in a user defined domains, user project directory.
when i start the server, iam getting class not found exception for the startup class.
But, the startup class is available in the web archive (war). how should we add the classes and jars in the war to the classpath in setDomainEnv.sh or is there any other setting available in the console to enable this.Hello Julius,
yes sure, we can move this post to the NW admin forum. I have already posted similar thread on sun forums. I was hoping that someone from SAP SDN already tackled this problem and if not someone specialized in J2EE Engine could troubleshoot me from the class problem I'm getting. I don't know if it's specific from the agent or if this ClassNotFound is a general SAP J2EE Engine error relating to a library not correclty defined.
Kind regards,
Tanguy Mezzano
Maybe you are looking for
-
Ok, here it goes... What I would like to do is turn a busted up Imac into a self contained home web server. My main computer is a PowerMac G3 B&W running OS9 and my frankenstien is an old G3 Imac with OS9 also that I'm going to strip down to just a m
-
Why is the new Nikon 5200 not supportd in LR3?
Having just upgraded from the Nikon D90 to the newish Nikon D5200, I am disapointed that it looks like I need to purchase LR5 if I want to import pictures - and of course I do. It only seems 2 minutes since I bought LR3. Is there a workaround solut
-
Smart Playlists are fixed with iPod Updater 2006-01-10
Hello Podders, Resident Furball here... iPod Updater 2006-01-10 restores dynamic updating of Smart Playlists on the iPod iPod Updater 2005-06-26 disabled the onboard dynamic updating of Smart Playlists on iPods older than the Nano and Gen5. This feat
-
Ludicrously long filenames in iTunes Library
I've recently been re-encoding some of my iTunes library (all classical) as ALE files with no apparent problems until a backup started complaining about over-length filenames. What seems to have happened is that individual titles from Gracenote have
-
My safari keeps crashing when I open it.
Everytime I open safari, it crashes right after the homepages loads. Can anyone help me out with this? Please and thank you! Process: Safari [299] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safa