c:import with authentication

Hello Everyone
I'm trying to pull an xml file that is in protected directory.
my code looks like:
<c:catch var="caught">
    <c:url var="requestURL" value="http://superuser:superuser@localhost:8082/pumpkin_cms/docroot/pumpkin/workzone/settings.xml"></c:url>
    <c:import url="${requestURL}" varReader="xmlSource">
    <x:parse var="doc" xml="${xmlSource}" scope="page" />
    </c:import>
</c:catch>
<c:if test="${not empty caught}">
${caught.rootCause}
${caught.message}
</c:if>which results in a 401:
Problem accessing the absolute URL "http://superuser:superuser@localhost:8082/pumpkin_cms/docroot/pumpkin/workzone/settings.xml". java.io.IOException: Server returned HTTP response code: 401 for URL: http://superuser:superuser@localhost:8082/pumpkin_cms/docroot/pumpkin/workzone/settings.xml
in a browser however the request works without any problem.
I did google a lot but could not find anything that would get me past this issue.
Is there someone that can help me with that?
Appreciating input highly!
Thx, Thomas
ps. jstl 1.1 / Tomcat 5.5.17 / Mac OS X / java version 1.5.0_06

Hello
the notation htttp://login:pass@serv/uri
is more a shortcut usually accepted than a real convention
that's why your browser connect to this url but not java...
to connect a protected url with java you must encode on base 64 the username/password couple
afaik, a such system is not implemented in JSTL

Similar Messages

  • An issue with authentication and authorization on ISE 1.2

    Hi, I'm new to ISE.
    I have an issue with authentication and authorization.
    I have ISE 1.2 plus patch 6 installed on VMware.
    I have built-in Windows XP supplicant and 2960 cisco switch with IOS c2960-lanbasek9-mz.150-2.SE5.bin
    On supplicant I use EAP(PEAP) with EAP-MSCHAP v2.
    I created  authentication and authorization rules with Active Directory  as External Identity Source. Also I applied  authorization profile with DACL.I login on Windows XP machine under different Active Directory accounts. Everything works fine (authentication, authorization ), but only for several hours. After several hours passed , authentication and authorization stop working . I can see that ISE trying authenticate and authorize users, but ISE always use only one account for  authentication and authorization . Even if I login under different accounts ISE continue to use only one last account.
    I traied to reboot switch and PC,but it didn’t help. Only rebooting of ISE helps. After ISE rebooting, authentication and authorization start to work properly for several hours.
    I don’t understand is it a glitch or I misconfigured ISE or switch, supplicant?
    What  should I do to resolve this issue?
    Switch configuration:
     testISE#sh runn
    Building configuration...
    Current configuration : 7103 bytes
    ! Last configuration change at 12:20:15Tue Apr 15 2014
    ! NVRAM config last updated at 10:35:02  Tue Apr 15 2014
    version 15.0
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname testISE
    boot-start-marker
    boot-end-marker
    no logging console
    logging monitor informational
    enable secret 5 ************
    enable password ********
    username radius-test password 0 ********
    username admin privilege 15 secret 5 ******************
    aaa new-model
    aaa authentication dot1x default group radius
    aaa authorization network default group radius
    aaa authorization auth-proxy default group radius
    aaa accounting update periodic 5
    aaa accounting dot1x default start-stop group radius
    aaa server radius dynamic-author
     client 172.16.0.90 server-key ********
    aaa session-id common
    clock timezone 4 0
    system mtu routing 1500
    authentication mac-move permit
    ip dhcp snooping vlan 1,22
    ip dhcp snooping
    ip domain-name elauloks
    ip device tracking probe use-svi
    ip device tracking
    epm logging
    crypto pki trustpoint TP-self-signed-1888913408
     enrollment selfsigned
     subject-name cn=IOS-Self-Signed-Certificate-1888913408
     revocation-check none
     rsakeypair TP-self-signed-1888913408
    crypto pki certificate chain TP-self-signed-1888913408
    dot1x system-auth-control
    spanning-tree mode pvst
    spanning-tree extend system-id
    vlan internal allocation policy ascending
    ip ssh version 2
    interface FastEthernet0/5
     switchport mode access
     ip access-group ACL-ALLOW in
     authentication event fail action next-method
     authentication event server dead action reinitialize vlan 1
     authentication event server alive action reinitialize
     authentication host-mode multi-auth
     authentication open
     authentication order dot1x mab
     authentication priority dot1x mab
     authentication port-control auto
     authentication periodic
     authentication timer reauthenticate server
     authentication violation restrict
     mab
     dot1x pae authenticator
     dot1x timeout tx-period 10
     spanning-tree portfast
    interface FastEthernet0/6
     switchport mode access
     ip access-group ACL-ALLOW in
     authentication event fail action next-method
     authentication event server dead action reinitialize vlan 1
     authentication event server alive action reinitialize
     authentication order dot1x mab
     authentication priority dot1x mab
     authentication port-control auto
     authentication periodic
     authentication timer reauthenticate server
     authentication violation restrict
     mab
     dot1x pae authenticator
     dot1x timeout tx-period 10
     spanning-tree portfast
    interface FastEthernet0/7
    interface Vlan1
     ip address 172.16.0.204 255.255.240.0
     no ip route-cache
    ip default-gateway 172.16.0.1
    ip http server
    ip http secure-server
    ip access-list extended ACL-ALLOW
     deny   icmp any host 172.16.0.1
     permit ip any any
    ip radius source-interface Vlan1
    logging origin-id ip
    logging source-interface Vlan1
    logging host 172.16.0.90 transport udp port 20514
    snmp-server community public RO
    snmp-server community ciscoro RO
    snmp-server trap-source Vlan1
    snmp-server source-interface informs Vlan1
    snmp-server enable traps snmp linkdown linkup
    snmp-server enable traps mac-notification change move
    snmp-server host 172.16.0.90 ciscoro
    radius-server attribute 6 on-for-login-auth
    radius-server attribute 6 support-multiple
    radius-server attribute 8 include-in-access-req
    radius-server attribute 25 access-request include
    radius-server dead-criteria time 5 tries 3
    radius-server vsa send accounting
    radius-server vsa send authentication
    radius server ISE-Alex
     address ipv4 172.16.0.90 auth-port 1812 acct-port 1813
     automate-tester username radius-test idle-time 15
     key ******
    ntp server 172.16.0.1
    ntp server 172.16.0.5
    end

    Yes. Tried that (several times) didn't work.  5 people in my office, all with vers. 6.0.1 couldn't access their gmail accounts.  Kept getting error message that username and password invalid.  Finally solved the issue by using Microsoft Exchange and "m.google.com" as server and domain and that the trick.  Think there is an issue with imap.gmail.com and IOS 6.0.1.  I'm sure the 5 of us suddently experiencing this issue aren't the only ones.  Apple will figure it out.  Thanks.

  • Problem with authentication in OBIEE

    Hello, I have a problem with authentication in OBIEE.
    A user who does not exist, enter the application and can enter but can not access almost anything, it is very rare because in addition webcatalog are created within the folder with your name and no one created it.
    any ideas?

    I created SR and i solved the problem.
    The problem wasn´t in weblogic. We migrated rpd 10g to 11g, I had define one initialization block session in RPD, when we disabled it, it´s running fine.
    Oracle recomended work in weblogic in obiee 11g
    best regards
    Edited by: Benito Camelas on Sep 29, 2011 7:12 AM

  • Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

    Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

    Importation ;I just started with lightroom 5,6 (french)-I 'd like to import with creation of a second copy apart of the catalog but impossible to activate this option.How should I do to activate this option?

  • Issue with calling external web service with authentication details ...

    Hi,
         I am facing a deployment issue with Oracle ESB. I am trying to call an external Web Service with authentication from ESB SOAP Service. It is working fine with my local ESB version 10.1.3.3.0 Build PCBPEL_10.1.3.3.0_GENERIC_070615.0525; however it is getting an error at our development ESB version 10.1.3.3.1 Build PCBPEL_10.1.3.3.1_GENERIC_RELEASE.
         I am getting following error.
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception during SOAP invoke: Server was unable to process request. ---> Object reference not set to an instance of an object.; nested exception is: javax.xml.rpc.soap.SOAPFaultException: Server was unable to process request. ---> Object reference not set to an instance of an object. at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.populateFaultMessage(WSIFOperation_JaxRpc.java:3086) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1728) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1473) at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeRequestResponseOperation(WSIFOperation_JaxRpc.java:1196) at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:867) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:770) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:790) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:208) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:127) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:118) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:95) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1424) at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:112) at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:307) at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispat
         Could one of you please help me out to understand why it is happining.
    Thanks in advance.
    Jyotirmoy.

    Hi Mahesh,
    One you are missing is authentication token or credentials.
    Please refer to the following articles.
    http://www.cleverworkarounds.com/2014/02/05/tips-for-using-spd-workflows-to-talk-to-3rd-party-web-services/
    A Series of articles related to Web Service in SPD Workflow
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 1
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 2
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 3
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 4
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 5
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 6
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 7
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 8
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 9
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 10
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 11
    Trials or tribulation?
    Inside SharePoint 2013 workflows–Part 12
    Please don't forget to mark it answered, if your problem resolved or helpful

  • Configure the sendmail with authentication in solaris 10

    hai
    i am very new in solaris admin i would like to know how to configure the sendmail in solaris with authentication option any one knows please share with me

    The sendmail shipped with solaris hasnt been compiled for authentication.
    So I ended up compiling my own version of cyrus-sasl and sendmail.
    There are some pointers of the sendmail.org web site.

  • Importing with Panasonic PV-GS32

    Over the last few months I've imported hours of video footage from my Panasonic PV-GS32. One day last week I was only able to import for about 10 minutes before it stopped. I tried a few extra times with no luck, then waited a day and tried again and it worked. A week later I only get about 3 seconds of importing before it stops and won't go any further. I've tried the following with no luck: a new account within my iMac; a different fire wire port; a new fire wire cable; shutting down and unplugging my iMac.
    Any other ideas or has anyone had difficulty importing with a Panasonic PV-GS32 lately?
    iMac4,   Mac OS X (10.4.7)   2 GHz Intel Core Duo
    iMac4,   Mac OS X (10.4.7)   2 GHz Intel Core Duo
    Message was edited by: Scott J O

    Welcome to iMovie Discussions.
    I wonder how full your Mac's hard disc is. Digital Video needs about 13GB of space per hour of recording time. So that's about 6.5GB per half hour of tape, or about 2GB of space per 10 minutes.
    If there's not much empty space left on your disc, there may not be room to store much video.
    If your disc is full from "..importing hours of video.." you may need to get an external FireWire disc for storing more material. If you do buy an external disc, you'll need to plug it in, go to Applications>Utilities>Disk Utility, then select your new disc and click the 'Erase' tab in Disk Utility, and format the new external disc as "Mac OS Extended" ..otherwise it won't work correctly with iMovie.

  • Using iMovie 7.1.4 on an iMac w/ Snow Leopard; HD video imported with a Firewire cable transfers fine, but audio arrives with major static; problem persists w/ different cameras

    Using iMovie 7.1.4 on an iMac w/ Snow Leopard; HD video imported with a Firewire cable transfers fine, but audio arrives with major static; problem persists w/ different cameras & Firewire cables; source DV tape has no audfio static.

    I forgot to write down my computer specs:
    iMac 27 Mid 2011
    2.7 GHz Intel Core i5
    4 GB 1333 MHz DDR3
    AMD Radeon HD 6770M 512 MB
    OS X 10.9.2

  • 6.0.2 freezes when importing with canon 5d

    Hi, I'm using The latest version of Iphoto 6.0.2 with an intel Mini. The computer locks up every time i try to import photos from my 5d. It always freezes about half way through the import. I've used different memory cards, a card reader, and even hooked it up to the USB port, it doesn't matter, it still freezes. The latest thing i tried was to delete the album.xml file and restart. That didn't do it either. The weird thing is that I have zero problems importing with my 20D. I can get around the problem by copying the photos to my Dell laptop, put them on a USB memory stick and then import them into iphoto with success. Any ideas? I have a feeling it has something to do with the canon software that i installed and then removed because i didn't like it. Could it be a conflict between i photo and the canon software? How do I make sure I remove all the canon crap?

    Foxfile:
    I don't think it's due top the software unless it's operating on the files as you import. Are you shooting RAW and the accompanying jpg? I've had zero experience with RAW but try the following:
    1 - create a new, fresh library and then see if you can import into it. If not then it's an account issue. If the new library works then it's
    2 - log into another account and see if the photos will work there. If so then it's your primary account that is having trouble.
    Also check some of the options in the camera about file types, compatibility, etc. There may be something in there that can be changed so make them work. I'm guessing since I don't have a camera that shoots raw.

  • Importing with a dvcam deck

    So I gave up on trying to import 45 min blocks of video into im08. I am now taking a dvd player, running it through a sony dvcam dsr-11. This allows me to import the 10 seconds I need from many random places. But im08 keeps force quiting. Not that it stops and I have to force quit, the computer quits. What do I need to do to keep it from quiting?

    Ok, so I imported with im06 and then imported im06 into im08 and it worked...or atleast it has so far. only problem is it renamed all of my clips!

  • Importing with DATA MANAGER

    While directly importing with the help of data manager it gives me an error.
    It doesnt import data from each and every field, it gives me two kins of error
    1) some fields dont exist
    2) another type of error is unable to find a lookup value.
    And do suggest, even if Import manager exists when can i use this functionality.
    regards
    +
      | Eleana West

    First of all this Functionality can be used whenever u are sure that the data which has to be imported is free of any redundancies then only it is feasible to use this functionality.
    Otherwise u need to use import mgr so that any kind of duplicates records can be eliminated.
    And the errors which u are getting are
    1)  some fields dont exist
         It gives bcoz from the source side the columns names do not match with the names on the destination side i.e.. the field names in the repository structure.
    2)  another type of error is unable to find a lookup value.
         Even if the field names match and if the field on the destination side is a kind of lookup field i.e.. in turn its looking up in some other table then this kind of error arises.
    u can bypass this error while importing thru data mgr by clicking on option button either skip value or skip record.
    Hope dis clears ur doubt.
    If any other queries feel free to ask
    Regards Tejas..............

  • Does Import with impdp.exe just ADD or REPLACE a table content?

    Assume I have I dumpfile which I want to import with the impdp.exe tool.
    Part of the dumpfile is the content of e.g. TABLE testtable123
    Furthermore lets say that after the previous export of the dumpfile
    some more data is added to the table while other data rows were meanwhile deleted.
    So if I execute now the impdp.exe operation is the dumpfile data just ADDED
    to the existing data in the current table testtable123 or does it completely REPLACE
    all data rows in table testtable123?
    Peter

    So if I execute now the impdp.exe operation is the dumpfile data just ADDED
    to the existing data in the current table testtable123 or does it completely REPLACE
    all data rows in table testtable123[http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_import.htm#i1006538]
    Note that if CONTENT=DATA_ONLY is specified, the default is APPEND, not SKIP
    TABLE_EXISTS_ACTION={SKIP | APPEND | TRUNCATE | REPLACE}
    APPEND loads rows from the source and leaves existing rows unchanged
    REPLACE drops the existing table and then creates and loads it from the source. This is not a valid option if the CONTENT parameter is set to DATA_ONLY.
    HTH
    -Anantha

  • BLOB importing with IMP

    Hello,
    I am trying to import a database dump to another location. This exercise gives an error when importing the table containing BLOB column.
    My original database was in tablespace 'R' and owned by user 'R'. Now I want to load it to tablespace 'M' owned by user 'M'. What I understand is that the loader (IMP) still tries to create table with a BLOB column in 'R' tablespace while I want it to be created in 'M'.
    What is the solution to this problem?
    Kindly reply asap.
    -- Hamid

    Well said Tom & Karen,
    However, I have extracted a piece of information from the metalink, it might be helpful to you.
    What are the errors you get and what type of export/import are you doing and have you tried SQL Loader which also supports loading of LOBs? The Utilities manual has information on how to accomplish export/import and load LOBs. If you are doing a direct path export then suggest running a conventional path export. Are you using any other features like Advanced Queuing and how big is the size of data, is it lesser than 4K? What kind of LOB specially you have and have you changed the database character set? If you are not using commit=y on import, suggest you try.
    130814.1 How to move LOB Data to Another Tablespace
    119897.1 How to Select a LOB Column over a Database Link
    66431.1 LOBS - Storage, Redo and Performance Issues
    If you are trying to set up a user/schema for one(on his own tablespace), into which he can import tables (have BLOB and CLOB columns) which are maintained in another schema (and tablespace) then its documented as an restriction described in the Oracle8i Utilities
    1. Import with INDEXFILE parameter to generate the script
    that can be used to modify the LOB's tablespace clause.
    $imp system/manager fromuser=scott tables=\(circul\)
    indexfile=create_lob_table
    2. Edit the generated script file create_lob_table.sql:
    REM CREATE TABLE "SCOTT"."CIRCUL" ("CIRCUL_ID" VARCHAR2(8) NOT NULL
    REM ENABLE, "FIC_CIRCUL" BLOB) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS
    REM 255 LOGGING STORAGE(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS
    REM 121 PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    REM TABLESPACE "USERS" LOB ("FIC_CIRCUL") STORE AS (TABLESPACE "USERS"
    REM ENABLE STORAGE IN ROW CHUNK 2048 PCTVERSION 10 NOCACHE LOGGING
    REM STORAGE(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 121
    REM PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)) ;
    REM ... 0 rows
    2.1 Remove the REM comments
    2.2 Change the owner SCOTT by the new owner U1
    2.2 Change the tablespace USERS by the TOUSER's tablespace NEW_TBS in the whole statement.
    3. Run the script create_lob_tabl
    4. Import the data only in the created table, ignoring the CREATE TABLE statement failure.
    $imp system/manager fromuser=scott tables=\(circul\) ignore=y

  • Export / Import with FULL=Y

    Hello DBA's,
    after consulting several thread on exp/imp with the option full=y the doubt that I have left is when using imp with full=y ignore=y in a new data base, the data base obtained will be equal to the data base from which export with full=y became. Thanks for its answers.

    export full=y
    will export all the user ,roles,tablespace creation scripts,tables all the datadictionary views
    for example if u connect the databse with single user try to get the privileges from the existing Db and then
    create the database in the new server
    create users and grant privileges before import;
    then import with fromuser= ,touser
    if you issues FULL=y
    it will start creating all the system ,index and all the other tablespaces provided it should have the same directories as it is in current DB
    to avoid create the dataabse ,tablespace users then import with fromuser,touser option
    thanks

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

Maybe you are looking for