How to Resolve the Exception

Dear All,
i want to edit the data when i do the action on button.
for this i wrote the code like this:
try
PreparedStatement ps =
this.getOADBTransaction().getJdbcConnection().prepareStatement("update xxcrm_costsheet_t set approved_status='C' where OPCS_COSTSHEETID=?");
ps.setInt(1, cstid);
ps.executeUpdate();
ps.close();
this.getDBTransaction().commit();
} catch (Exception e)
System.out.println("the exception is" + e);
i am getting the following error only i will try to commit the changes.
i don't know y am getting the error:
pls guide me:
I hope u will help me.
Thanks in Advance
Anusha

Hi,
Use This Code
try
PreparedStatement ps =
this.getOADBTransaction().getJdbcConnection().prepareStatement("update xxcrm_costsheet_t set approved_status='C' where OPCS_COSTSHEETID=?");
ps.setInt(1, cstid);
ps.executeUpdate();
this.getOADBTransaction().commit();
catch (Exception e)
System.out.println("the exception is" + e);
finally
try
ps.close();
catch(Exception e1)
System.out.println("the exception is" + e1);
Thanks,
Gaurav

Similar Messages

  • How to log the exception using Log action in Oracle Service Bus

    Hi,
    Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.

    It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.

  • TS1702 Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Maybe here:
    IOS 6 App store crash: Apple Support Communities

  • How to write the exceptions in function module

    dear all,
         how to write the exceptions in function modules with example.
    thanq
    jyothi

    Hi,
    Raising Exceptions
    There are two ABAP statements for raising exceptions. They can only be used in function modules:
    RAISE except.
    und
    MESSAGE.....RAISING except.
    The effect of these statements depends on whether the calling program handles the exception or not. The calling program handles an exception If the name of the except exception or OTHERS is specified after the EXCEPTION option of the CALL FUNCTION statement.
    If the calling program does not handle the exception
    · The RAISEstatement terminates the program and switches to debugging mode.
    · The MESSAGE..... RAISING statement displays the specified message. Processing is continued in relation to the message type.
    If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE..... RAISING statement does not display a message. Instead, it fills the system fields sy-msgid, sy-msgty, sy-msgno , and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION read_spfli_into_table.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM spfli INTO TABLE itab WHERE carrid = id.
    IF sy-subrc NE 0.
    MESSAGE e007(at) RAISING not_found.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where the key field CARRID is equal to the import parameter ID and places the entries that it finds into the internal table spfli_tab. If it cannot find any entries, the exception NOT_FOUND is triggered with MESSAGE ... RAISING. Otherwise, the table is passed to the caller as an exporting parameter.
    Calling READ_SPFLI_INTO_TABLE
    The following program calls the function module READ_SPFLI_INTO_TABLE:
    REPORT demo_mod_tech_fb_read_spfli.
    PARAMETERS carrier TYPE s_carr_id.
    DATA: jtab TYPE spfli_tab,
    wa LIKE LINE OF jtab.
    CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
    EXPORTING
    id = carrier
    IMPORTING
    itab = jtab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
    WHEN 2.
    MESSAGE e702(at).
    ENDCASE.
    LOOP AT jtab INTO wa.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDLOOP.
    The actual parameters carrier and jtab have the same data types as their corresponding interface parameters in the function module. The exception NOT_FOUND is handled in the program. It displays the same message that the function module would have displayed had it handled the error.
    Or
    just have to decide what exceptions u want and under what conditions.
    then declarethese exeptions under the exceptions tab.
    in the source code of ur function module.
    if
    like this u can code .
    now when u call the function module in tme mainprogram.
    if some error occurs and u have declared a exception for this then it will set sy-subrc = value u give inthe call of this fm.
    in the fm u can program these sy-subrc values and trigger the code for ur exception.
    Please reward if useful
    Regards,
    Ravi
    Edited by: Ravikanth Alapati on Mar 27, 2008 9:36 AM

  • I have started to get this error message: 5.1.3 bad address syntax in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?

    I have started to get this error message: "5.1.3 bad address syntax" in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?  My email account is through Optimum online and I am using Airpost Express.
    P.S. The error sound "bong" is driving us nuts!

    Please post on the Office for Mac product forums that Microsoft hosts. It's their product and they can best troubleshoot the issue.

  • How to resolve the problem in jdeveloper903 oc4j starting:JspTagLib listener error

    I just download a jdeveloper903,i hava a problem:
    when i start the oc4j alone,it prompt "JspTagLib listener error:null". Then,After depoly the jsp application with JspTag to oc4j,I found the jsp page can not run,but,the jsp application can run in the
    develope environment.
    how can resolve the problem,help!!Thanks.

    I think you might have better luck asking your question in the JDeveloper forum at:
    http://forums.oracle.com/forums/forum.jsp?id=315684
    later -- Jeff

  • How to Resolve the Broken Dc's on CBS.

    Hello all,
    I am facing few broken Dc's in CBS. I tried to resolve the broken DC's by the following procedures, but was not able to completely resolve the broken DC's on CBS. few procedures are
    1. No built and Deploy errors in NWDI
    2.Had released all the activities from transport, no more activity's are in pending state in TSK.
    But I am facing broken DC's in compile state, Metadata and Used Dc's. Can any of you suggest me how to resolve the broken DC's on CBS.
    Thanks you all,
    Anil

    Hi Anil,
    first of all please notice that I've moved this thread to the NWDI forum.
    See the guide:
    Understanding Broken DCs and Dirty DCs
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30b7c94e-fc6b-2910-30b8-d34a7b51309e
    You find some other useful documents in the top-most thread of this page in NWDI forum (SAP NetWeaver Development Infrastructure (NWDI))
    Direct link to the thread:
    Most important NWDI related guides and documents
    The specified item was not found.
    Best Regards,
    Ervin

  • How to resolve the loop in universe level

    how to resolve the loop in universe level

    Hi, Kashim
              In univese level loops resolved by Chasm Trap and Fan Trap methods.
    Chasm Trap:  A chasm trap is a type of join path between three tables when two many-to-one joins converge on single table, and there is no context in place that separate the converging join paths.
    There is "many-to-one-to-many"relationship beween the three tables in the universe structure.you can define a context for each table at the many end of the joins.
    A chasm trap is not dependent on the object types, the query could be made up of only dimensions,only details,or only measures,or any combination of the three types with the "many " tables for chasm to occure.
    you can also detect the chasm trap Automatically, tool---->Detect context
    To resolve the chasm trap, you need to make two separate Queries and than combine the results Depending on type of objects defined for the fact tables and the type of end user environment,
    Fan trap: it is occured when there is a "one-to-many" join to the table that "fans out " into another "one-to-many" join to another table.
    Avoid fan trap: The first place by relating all measure objects in the universe to the same table in the universe structure,Avoid placing a measure on anything other than the last table in a in a table path, which is the table with the "many" cardinality attached to it.
    This methods is not recomended as it only works for measure objects and may result in inefficienies in processing the query. This resolution works the same for chasm and fan traps.
    you can create more alias tables based on your requirement in single universe. and it is true conext, when two or more paths.
    Theese methods also apply for resolving loops:
    Short cut join also one method for resolving loops
    Aggregate aware function used another waty for resolving loops
    if you are not resolving the loop result is  redusing the number of records.

  • My ipad 3 keeps on rebooting after updated to ios 7.1.2. what shd i do?? how to resolve the issue??

    my ipad 3 keeps on rebooting after updated to ios 7.1.2. what shd i do?? how to resolve the issue??

    The first thing that I would try is a reset.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    IF that doesn't stop the rebooting, you should restore the iOS Software. Read this carefully and read to all the way through before proceeding.
    Use iTunes to restore your iOS device to factory settings
    At the very end of the article under "additional information" there is a link to recovery mode. You might need to use that if you cannot restore in the conventional manner.

  • How to trap the exception in cursors

    Hi
    How to trap the exception NO DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;so 1234 is not in my table, how to trap this.could some one help me please
    Edited by: user4587979 on Sep 27, 2010 3:46 AM

    user4587979 wrote:
    Hi
    How to trap the exception NO DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;so 1234 is not in my table, how to trap this.could some one help me please
    Edited by: user4587979 on Sep 27, 2010 3:46 AMYou don't trap NO_DATA_FOUND in a cursor loop, as for others ... you trap and handle the ones you expect.
    NO_DATA_FOUND isn't a condition associated with the processing of a cursor loop.
    You have other options though, for example ...
    declare
       l_processed_something boolean default false;
    begin
       for x in cursor
       loop
          l_processed_something   := true;
          <more processing>
       end loop;
    end;
    /

  • After the IOS 7.1 update I have issue with Game Center, I'm not been able to  load the  games. The apps don't seems to be able to connect to game centre. How to resolve the issue?

    After the IOS 7.1 update I have issue with Game Center, I'm not been able to  load the  games. The apps don't seems to be able to connect to game centre. How to resolve the issue?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • I have recently purchased the highest storage but was unable to backup my phone via icloud, the button on my mphone to backup on icloud is grey out, anyone knows how to resolve the problem?  What's the point of purchasing the biggest storage?

    i have recently purchased the highest storage but was unable to backup my phone via icloud, the button on my iphone to backup on icloud is grey out, anyone knows how to resolve the problem?  What's the point of purchasing the biggest storage?

    First check that your device is correctly connected to the wifi/internet (settings > wifi)
    If your back up continually fails, you might try turning off back up on your mobile device (settings > iCloud > storage & backup) and then deleting the backup file from iCloud by swiping the backup file on the mobile device (settings > iCloud > storage & backup > manage…) and then turning back up on again.
    If this doesn't help, try turning off some items for back up in a pattern to try to establish if your problem is being caused by specific data on your device.
    Being able to back up to the cloud can be very useful, especially if you don't have access to a computer or have infrequent access to one, however unless you specifically need to use iCloud for back up, you will find backing up to iTunes significantly more convenient and possibly more reliable.
    More about iCloud v iTunes Back Up

  • How to resolve the ip address of all computer conntected to host.

    How to resolve the ip address of all computer conntected to host.

    Define it in terms which you can program, I mean ...
    My point is that none of these terms is well-defined: 'connected' for a start. The network is a packet-switch, not a circuit switch, so strictly speaking there are no connections at all.
    What's the purpose behind this?

  • HT4236 Syncing photos using iTunes in windows revealed this error message "iPad Jayvee cannot be synced because it cannot be read from or written to ." Please advise asap how to resolve the issue.  Thanks!

    Please advise how to resolve error message - cannot be synced because it cannot be read from or written to.

    Hello Janet,
    I would recommend this article named 'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod found here http://support.apple.com/kb/ht1207
    Outdated operating system software
    Make sure you have the latest updates for your operating system, which may include improvements for device connections. For example, many USB and FireWire improvements have been included in Windows Service Packs.Check for Mac OS X downloads. Check for Windows updates.
    Computer needs updates
    Make sure you have the latest updates available for your specific computer model (or components for home-built PCs). These are usually available for download on the support website for the maker of the PC (or component). Many USB updates are listed as "Intel chipset" or just "chipset" updates on PC manufacturer's support and download websites.
    Software interference
    Some software can interfere with iTunes, making it unable to write files to your iPod. Think about what software you have installed, and try disabling any add-ons that might be interfering with iTunes. Check your suspected software's documentation or contact the software maker if you need assistance with disabling the application. Out-of-date or incorrectly configured security software frequently causes this issue. See these steps for identifying and troubleshooting third-party security software.
    Damaged files
    If one of your music files or photos is damaged, iTunes may display one of these errors when transferring that file to the iPod. If you identify a file that is causing the error, try deleting that file and reimporting it from a backup file or from the original source. You may be able to repair files by repairing the disk (see the solutions in the next section).
    Unregistered .dll files (Windows)
    Malware or other software may cause an issue with the digital signing of Windows XP drivers. First try restoringthe iPod using the latest version of iTunes.. If you are unable to restore it or the symptom reappears, follow the steps in this document.
    Damaged disk structure
    These errors can also appear if the format of your computer's hard drive or your iPod disk is damaged.
    To repair your computer's hard disk—Mac OS X users, read this article for instructions. Windows users, search the Help system in Windows for chkdsk to get more information on checking and repairing the disk structure.
    To repair an iPod disk—Restore the iPod or iPod shuffle using the latest version of iTunes.
    Warning: Be sure to back up your data before restoring an iPod. The restore process cannot be undone. All of your songs and files will be deleted.
    Corrupt iPod photo Cache
    If you're getting the error when transferring photos to an iPod photo, try deleting the iPod photo Cache and then starting the photo sync again.
    Lost connection
    Make sure that the connections from your computer to the iPod are snug and do not wiggle or come loose during transfers. For example, if you use the wrong size dock for your iPod, it can put strain on the connectors and cause a bad connection. See these articles for more information:
    Learn about iPod Universal Dock
    iPod Dock: Specifications
    Conflict with third-party hardware
    Third-party USB or FireWire devices may also interfere with iTunes' ability to communicate with your iPod. Remove all USB and FireWire devices except the keyboard and mouse before reconnecting your iPod to the computer.
    Bad hardware
    Hardware failure or non-compliant hardware can cause these errors. This could be an issue with iPod hardware or with the cable or dock you're using, but more often it's an issue with the USB or FireWire card or interface in your computer. Some USB and FireWire interfaces just don't work very well. If you isolate the issue to the USB or FireWire interface in your computer, you may want to try a different port, get the computer serviced, or replace the card or interface with a better one.
    If you isolate the issue to an Apple-supplied cable or dock, or the iPod itself, you can get it serviced here.
    Take care,
    Sterling

  • How to resolve the datasource with Cloudspace database?

    Hi,
    I am running WebLogic 6.1 on Win2k and I have problem with
    Cloudscape database in Default Admin Server.
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException:
    Unable to resolve MyJDBCDataSource.
    Resolved: '' Unresolved:'MyJDBCDataSource' ; remaining name ''
    === Finish init method in myJDBCReadServlet.java ===
    1. I created simple table in the Cloudscape database using IJ utility and inserted
    some values:
    prompt>java -classpath %CLASSPATH%;..\lib\tools.jar COM.cloudscape.tools.ij
    ij version 3.5 (c) 1997-2000 Informix Software, Inc.
    ij> CONNECT 'jdbc:cloudscape:demo;create=true';
    WARNING 01J01: Database 'demo' not created, connection made to existing database
    instead.
    ij> SHOW CONNECTIONS;
    CONNECTION0* - jdbc:cloudscape:demo;create=true
    * = current connection
    ij> CREATE TABLE employee(name CHAR(25), location CHAR(20), id INTEGER);
    0 rows inserted/updated/deleted
    2. I created Connection Pool and Data Source using Default Console
    The Connection Pool configuration is the following:
    Name : MyJDBC Connection Pool
    URL : jdbc:cloudscape:demo
    Driver Classname: COM.cloudscape.core.JDBCDriver
    Properties : user=none password=none server=none
    My Data Source configuration is the following:
    Name : MyJDBC Data Source
    JNDI Name: MyJDBCDataSource
    Pool Name: MyJDBC Connection Pool
    I added the following line to myserver startup script to point
    to the database location:
    -Dcloudscape.system.home=./samples/eval/cloudscape/data
    3. I wrote the servlet and here is the piece of the myJDBCReadServlet
    code which generated the exception:
    public void init()
    System.out.println("=== Start init method in myJDBCReadServlet.java ===");
    try {
    ctx = new InitialContext();
    ds = (javax.sql.DataSource) ctx.lookup ("MyJDBCDataSource");
    } catch (Exception E) {
    System.out.println("Init Error: " + E);
    System.out.println("=== Finish init method in myJDBCReadServlet.java ===");
    Why it cannot find the database using JNDI name?
    Any help will be greatly appreciated,
    Jacob Nikom

    Great.
    Here is a link where you can find more cloudscape details:
    http://www.cloudscape.com/docs/doc_36/doc/html/coredocs/docs2.htm
    S.
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    >
    Problem solved!
    Slava - thank you for your help.
    Yes, cloudscape.jar file should be on the CLASSPATH.
    I also put tools.jar from the same directory (I am not sure
    is it necessary or not, but I did not test it).
    However,it is not enough to run WebLogic with Cloudscape
    successfuly. You have to tell WebLogic where the database
    files are. To do it you have to include start-up option
    in the startWebLogic.cmd file.
    It looks like:
    -Dcloudscape.system.home="C:~\samples\eval\cloudscape\data"
    After that it runs. Actually, the file cloudscape.html in the
    directory ~\samples\eval\cloudscape has quite a bit of information.
    Unfortunately, it is difficult to comprehend it until you understand whatthe
    problem is.
    Regards,
    Jacob
    "Slava Imeshev" <[email protected]> wrote:
    Hi Jacob,
    You need to specify the Cloudscape classes in your
    CLASSPATH, which exists in weblogic/samples/eval/cloudscape/lib.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    This is the source of the error:
    <Error> <JDBC>
    <Cannot startup connection pool "MyJDBC_Connection_Pool"
    Cannot load driver class: COM.cloudscape.core.JDBCDriver>
    but I don't know how to fix it.
    I don't know the name of the Cloudscape JDBC driver.
    I looked at cloudscape.jar file and found the following class file:
    COM/cloudscape/core/JDBCDriver.class
    Is it the right driver?
    I tried to use COM.cloudscape.core.XADataSource driver
    classname, but got the same problem - WebLogic cannot find it.
    Which .jar file has correct Cloudscape JDBC driver?
    What else should I do to ensure that driver loads properly?
    Thank you,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Ok. I don't see that neither connection pool nor data source
    trying to start. You did not added targets to them or may be
    you provided wrong target.
    S.
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    Thank you for your response. I am sending you the full
    log as .txt file attachment. It is not very large in order
    to zip it.
    I added some Cloudscape parameters to the startup script,
    so you can see them there. They show to the WebLogic where
    the database is located.
    Also, I think the database was running because I could see
    my tables using IJ utility (Cloudscape tool), however I am
    not sure how Cloudscape exactly starts and runs.
    Regards,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Could you zip the whole log and send it to me?
    I just want to see what the console says about
    creation of your datasources and pools.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    This is the output with Stdout severity threshold = "info".
    I only split a couple of very long lines.
    <Oct 2, 2001 6:29:33 PM EDT> <Info> <HTTP>
    <[WebAppServletContext(5891807,myJDBCReadServlet,/myJDBCReadServlet)]
    myJDBCReadServlet:
    init>
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException: Unable to resolveMyJDBC_Data_Source.
    Resolved: '' Unresolved:'MyJDBC_Data_Source' ; remaining name
    === Finish init method in myJDBCReadServlet.java ===
    === Start service method in myJDBCReadServlet.java ===
    Service Error: java.lang.NullPointerException
    === Finish service method in myJDBCReadServlet.java ===
    "jacob nikom" <[email protected]> wrote:
    Hi Slava,
    Thank you very much for your response.
    I followed your advice and changed the names
    of my ConnectionPool and DataSource, removing
    all spaces. Now they are MyJDBC_Data_Source and
    MyJDBC_Connection_Pool (is underscore OK?).
    I think I turned on the message level on "info" few days ago.
    Could you remind me how to check it?
    I am sending you the full log of my session starting
    from the beginning up to the crush:
    prompt>"C:\WebLogic61\jdk131\bin\java" -hotspot -ms64m -mx64m
    -classpath
    .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\cos.jar
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=C:\WebLogic61"
    -Dcloudscape.system.home="C:\WebLogic61\wlserver6.1\samples\eval\cloudsc
    a
    p
    e
    \data"
    >
    -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled=false
    >
    "-Djava.security.policy==C:\WebLogic61\wlserver6.1/lib/weblogic.policy"
    weblogic.Server
    <Oct 2, 2001 5:21:57 PM EDT> <Info> <Security> <Getting bootpassword
    from user.>
    Enter password to boot WebLogic server:
    Starting WebLogic Server ....
    <Oct 2, 2001 5:22:02 PM EDT> <Notice> <Management> <Loadingconfiguration
    file
    .\config\mydomain\config.xml ...>
    <Oct 2, 2001 5:22:07 PM EDT> <Notice> <WebLogicServer> <StartingWebLogic
    Admin
    Server "myserver" for domain "mydomain">
    <Oct 2, 2001 5:22:10 PM EDT> <Notice> <Management> <Starting
    discovery
    of Managed
    Server...
    This feature is on by default, you may turn this off bypassing -Dweblogic.management.discover=false>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <Management> <Application
    Poller
    started
    for development server.>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <WebLogicServer><SSLListenThread
    listening
    on port 7002>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <WebLogicServer>
    <ListenThread
    listening
    on port 7001>
    <Oct 2, 2001 5:22:18 PM EDT> <Notice> <WebLogicServer> <StartedWebLogic
    Admin
    Server "myserver" for
    domain "mydomain" running in Development Mode>
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException: Unable to
    resolve
    MyJDBC_Data_Source.
    Resolved: '' Unresolved:'MyJDBC_Data_Source' ; remaining name
    === Finish init method in myJDBCReadServlet.java ===
    === Start service method in myJDBCReadServlet.java ===
    Service Error: java.lang.NullPointerException
    "Slava Imeshev" <[email protected]> wrote:
    Jacob,
    Just FYI, DataSource or ConnectionPool name can not
    contain spaces. Change the names and let me know if it helps.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    Thank you for your message. I did assign target to
    my Connection Pool and Data Source. It is "myserver".
    Also, there is not any error messages form WebLogic
    shell except the ones which I place in my message.
    So far the misery remains unresolved.
    Regards,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Hi Jacob,
    Make sure you assigned targets to the connection pool and
    data
    source.
    Also
    check Weblogic shell console for errors.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am running WebLogic 6.1 on Win2k and I have problem
    with
    Cloudscape database in Default Admin Server.
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException:
    Unable to resolve MyJDBCDataSource.
    Resolved: '' Unresolved:'MyJDBCDataSource' ; remainingname
    === Finish init method in myJDBCReadServlet.java ===
    1. I created simple table in the Cloudscape database using
    IJ
    utility
    and
    inserted
    some values:
    prompt>java -classpath %CLASSPATH%;..\lib\tools.jarCOM.cloudscape.tools.ij
    ij version 3.5 (c) 1997-2000 Informix Software, Inc.
    ij> CONNECT 'jdbc:cloudscape:demo;create=true';
    WARNING 01J01: Database 'demo' not created, connection
    made
    to
    existing
    database
    instead.
    ij> SHOW CONNECTIONS;
    CONNECTION0* - jdbc:cloudscape:demo;create=true
    * = current connection
    ij> CREATE TABLE employee(name CHAR(25), location
    CHAR(20),
    id
    INTEGER);
    0 rows inserted/updated/deleted
    2. I created Connection Pool and Data Source using Default
    Console
    The Connection Pool configuration is the following:
    Name : MyJDBC Connection Pool
    URL : jdbc:cloudscape:demo
    Driver Classname: COM.cloudscape.core.JDBCDriver
    Properties : user=none password=none server=none
    My Data Source configuration is the following:
    Name : MyJDBC Data Source
    JNDI Name: MyJDBCDataSource
    Pool Name: MyJDBC Connection Pool
    I added the following line to myserver startup script
    to
    point
    to the database location:
    -Dcloudscape.system.home=./samples/eval/cloudscape/data
    3. I wrote the servlet and here is the piece of themyJDBCReadServlet
    code which generated the exception:
    public void init()
    System.out.println("=== Start init method inmyJDBCReadServlet.java
    ===");
    try {
    ctx = new InitialContext();
    ds = (javax.sql.DataSource) ctx.lookup
    ("MyJDBCDataSource");
    } catch (Exception E) {
    System.out.println("Init Error: " + E);
    System.out.println("=== Finish init method inmyJDBCReadServlet.java
    ===");
    Why it cannot find the database using JNDI name?
    Any help will be greatly appreciated,
    Jacob Nikom

Maybe you are looking for

  • How do I add an email signature that will allow it to become a link

    How do I add a web site URL and email address on my emails that will become a hyper text, so receipient can just click on the URL and it will take them to my site. Thank you

  • Save for previous version 8.5 to 8.2 generates code that crashes Labview (uses classes)

    Hello, I'm working on some java style interfaces for labview for hot swapping of instrumentation for design patterns. When I try to port this code, developed on Labview 8.5 back to labview 8.2, the code it generates crashes labview (both 8.5 and 8.2)

  • Error in Managed system configuration.

    Hi Folks, In Solman 7.1 i am configuring my Java system in managed system configuration on the last phase of configuration which is "Check Configuration" i got the below error... Can any one guide me on this.... I installed the Diagnostic agent as we

  • Blank photo file in recovered photos in photo library

    hi Every time I open iphoto I initially get a message that I have exactly "17 photos that have been found and have not been imported to the iPhoto library. . . would you like to import them? " This message comes up twice. If I press "yes" nothing is

  • Configuration does not install apps

    I am testing Configurator. I setup a simple Profile; one wi-fi setting I chose 5 Apps, three of them paid( my own account) I chose Supervisor option; WHen I applied; a- it started as if it is the first time: asking for language settings,... b- Then a