What's the IO Exception?

Whenever I try to create a output file, it always
appear: IOException; must be caught or declared to be thrown.
What's the meaning?
Thanks in advance.

Exceptions are Java's and many other Object Orientated Language's means for error handling. When you try to open a file there may be many errors, like maybe the file dosent exist, right? To handle this in java you enclose the code that may throw exceptions, or erros, in a try/catch block, catching exceptions that may occur and doing whatever is necessary to inform the user or attempt something else...
example for you would be:
InputStreamReader in = null;
try {
in = new InputStreamReader(FileInputStream("test.txt"), "8859_1");
} catch (IOException e) {
System.out.println("Failed to open file: "+e.toString());

Similar Messages

  • What is the default exception aggregation for the NCKF IO STOCK

    Hi all of you,
    What is the default exception aggregation for the Non Cumulative Key Figure info object Stock?
    When I am selecting Maximum, or minimum or Avereage (all values) its not selecting any of these values but only Average (weighted with the number of days) is getting selected.
    Please explain.
    Thank you.
    TR.

    Hi Vinod,
    Thank you for your reply.
    I had selected Last value as exception aggregation and activated it. But again when I double click on the IO STock, in the aggregation tab besides exception aggregation I find the option Average (Weighted with the number of days).
    Is it getting selected by default when I check the radio button Ncum. value with in- and out-flow?
    Please explain.
    Thank you.
    TR.

  • What are the RATETYPE except AVG and END?

    Hi gurus,
    I have few question regarding RATETYPE.
    1) What are the other RATETYPE except AVG and END?
    2) When do you use AVG rate and when do you use END rate?
    Thanks,
    Charly

    Charly,
    Each member of the Account dimension is assigned one and only one Rate Type. You create the "Rate Types" in the Rate cube and then you assign each Account in the Account dimension a rate type (via the Rate Type Property).  
    You can have 100 different rate types if you wish.  How many rate types do you need per currency?  (Avg, AvgQTD, AvgYTD for example, or you can only use one rate type for your currency translation between your Local (input) currences and your Reporting Currencies.  For example, Balance Sheet accounts commonly use an AVG rate and P&L Accounts often use an END rate.  If you wanted to use a YTD AVG or a QTD AVG rate for each currency then you'd add these as rate types in your Rate cube then you could load these rates and use them in calculations.
    AVG usually means the Average exchange rate for the period, whereas END means the END rate for the period.
    Please let me know if this answers your question.
    Greg

  • What are the users exception-list equivalent in deployment rules?

    Our users run a webapp that runs fine when the url is placed in the exception list, but I am experiencing difficulties getting it to run with deployment ruleset. I know the ruleset works, as it works on other apps.
    What is the equivalent setting in the deployment ruleset?
    This does not work:
    <rule>
    <id location="https://test.example.com" />
    <action permission="run"/>
    </rule>
    So what action should I apply to make it the equivalent of the exception list? "Default"?

    More info:
    <jnlp codebase="https://solo.nordea.com/FileTransfer-richclient-webapp/">
      <information>
    <title>File Transfer</title>
    <vendor>Nordea</vendor>
    <homepage href="index.html"/>
    <description>File Transfer Rich Client application From File</description>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+" initial-heap-size="128m" max-heap-size="512m"/>
    <jar href="FileTransfer-richclient-6.2.9.jar" download="eager"/>
    <jar href="thirdparty-1.2.6.jar" download="eager"/>
    <extension name="filetransfer-dependencies" href="filetransfer-dependencies.jnlp"/>
    <extension name="activation" href="activation.jnlp"/>
    </resources>
    <application-desc main-class="com.nordea.filetransfer.client.controller.MainViewController">
    <argument>DOWNLOAD</argument>
    <argument>no</argument>
    <argument>44420005443231051</argument>
    <argument>NSSO-030BASE64--NSSMD5--NSSOX03000000648RExFTjAwMDAwMzg2PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxldGlja2V0IGFsZ29yaXRobT0iMDEiIGtleWFsaWFzPSJOQ1BfMDAxIiB2ZXJzaW9uPSIzLjAiPjxjcmVhdGVkLz48c291cmNlPk5DUDwvc291cmNlPjxhdXRoPjxwcm9wZXJ0eSBuYW1lPSJjb3VudHJ5Ij5OTzwvcHJvcGVydHk+PHByb3BlcnR5IG5hbWU9InVzZXJpZCI+NDQ0MjAwMDU0NDMyMzEwNTE8L3Byb3BlcnR5Pjxwcm9wZXJ0eSBuYW1lPSJtZXRob2QiPjAzPC9wcm9wZXJ0eT48L2F1dGg+PGNvbnRleHQ+PGRhdGEgbmFtZT0ibGFuZ3VhZ2UiPk5PPC9kYXRhPjxkYXRhIG5hbWU9ImFwcGRhdGEiPjc3MDEyMy03NzEwPC9kYXRhPjwvY29udGV4dD48dGFyZ2V0Pk5DUDwvdGFyZ2V0PjwvZXRpY2tldD5NQUMtMDEwME1ENSAwMDcyTkNQXzAwMSAgICAgICAgIDIwMTQwMTI3MDg1MzAxOTkrMDEwMDAwMTZBRUNCM0ZEMjRCQ0NBRjRGOEU4RTdFQ0YyRTg2QkFG</argument>
      </application-desc>
    </jnlp>

  • What are the system built exceptions in function modules?

    Hi Experts,
    When we are creating the function module in se37 without exceptions ,but system  will assign  2 default exceptions? what are the those exceptions? please provide the information on this issue.
    Thanks,
    Srinivas.

    Hi,
    The system raises exceptions
    1) COMMUNICATION_FAILURE and
    2) SYSTEM_FAILURE  by default.
    Regards,
    Lokeswari.

  • HT5625 if i have multiple apple IDS and i would like to delete all of them except the one I wish to continue using what is the method

    In case I have multiple Apple Ids and I want to delete all of them except one , what is the method to be followed.??
    Or is it that there is no scope for deletion and the Ids are just disabled

    Sorry, Apple ID's cannot be deleted or merged. All you can do is stop using an Apple ID.

  • Im getting exceptional error for website ...what is the problem for that error..error message is posted below

    The initial exception that caused the request to fail, was:
    com.sap.tc.useragent.UserAgentServiceException: Syntax Error in number '$4' of User-Agent Number Element ID 'engineVersion'.
    at com.sap.tc.useragent.ElementTypeNumber.createElement(ElementTypeNumber.java:34)
    at com.sap.tc.useragent.UserAgentElement.createElement(UserAgentElement.java:34)
    at com.sap.tc.useragent.UserAgentElement.copy(UserAgentElement.java:71)
    at com.sap.tc.useragent.UserAgentTemplate.instantiate(UserAgentTemplate.java:45)
    at com.sap.tc.useragent.detection.RegExpDetector.detectUserAgent(RegExpDetector.java:33)
    ... 62 more
    See full exception chain for details.
    Failed to process request. Please contact your system administrator.
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.
    Correction Hints
    Exception could be caused by the development component: com.sap.tc.useragent.interface
    Note: The above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
    System Environment
    Client
    Web Dynpro Client Type AJAX Client
    User agent Mozilla/5.0 (Android; Mobile; rv:24.0) Gecko/24.0 Firefox/24.0
    Client Type ff
    Client Type Profile nn7
    ActiveX disabled
    Java Applets enabled
    Accessibility mode disabled
    Inline CSS n/a
    Validate by rendering true
    Server
    Web Dynpro Runtime vendor: 'sap.com', name: 'tc/wd/webdynpro', scV: 'sap.com', scN: 'WD-RUNTIME', location: 'SAP AG', counter: '7.3005.20130111125833.0000', R: '7.30', SP: '5', PL: '20', change number: '255333', codeline: NW730CORE_05_REL
    J2EE Engine 7.30.3710.270166.20130816104554
    System ID (SID) FP1
    Server Node ID |13769650|137696|Server 00 01_137696|ciFP1/10.72.16.58|SERVER|RUNNING
    Java VM SAP Java Server VM, version:6.1.038 19.1-b02, vendor: SAP AG
    Operating system Linux, version: 2.6.32-220.el6.x86_64, architecture: amd64
    Application
    Java EE Application (deployable object) sap.com/pb
    Web Dynpro Application PageBuilder
    Request URI /webdynpro/resources/sap.com/pb/PageBuilder
    Version vendor: 'sap.com', name: 'pb', scV: 'sap.com', scN: 'EP-RUNTIME', location: 'SAP AG', counter: '7.3005.20111228115104.0000', R: '7.30', SP: '5', PL: '4', change number: '160458'
    Session &amp; Other
    Session Locale en_GB
    Session Timezone India Standard Time
    Time of Failure Sun Oct 27 09:59:27 IST 2013 (Java Time: 1382848167814)
    Session User ClientUser(id=USER.PRIVATE_DATASOURCE.un:CC172020, name=CC172020)
    Http Session Id 978BAO1ZCsh8JZ7REyIA575jsir4QQGyG9IA_SAP
    Client Window Id WID1382848129974
    Application Session Id CrXVdgZ0571vfwcUljh9Bw--Q4*zmQ0kblXVHMfCG18ZBg--
    Web Dynpro Code Generation Infos
    sap.com/pb
    WD web module webdynpro/resources/sap.com/pb: SapDictionaryGenerationCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:24:28+0000, changelist=159000, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapDictionaryGenerationTemplates 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:24:57+0000, changelist=159000, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapGenerationFrameworkCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:14:41+0000,
    WD web module webdynpro/resources/sap.com/pb: SapMetamodelCommon 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:17:37+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapMetamodelCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:15:03+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapMetamodelDictionary 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:20:22+0000, changelist=159002, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapMetamodelWebDynpro 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:25:40+0000, changelist=159462, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapWebDynproGenerationCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:37:46+0000, changelist=159461, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapWebDynproGenerationTemplates 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:37:55+0000, changelist=159461, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb: SapWebDynproRuntimeGen 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:35:55+0000, changelist=159464, host=pwdfm257, is-central=true)
    sap.com/pb_api
    WD (release=NW730CORE_05_REL, buildtime=2011-12-28T16:24:57+0000, changelist=159000, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapGenerationFrameworkCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:14:41+0000, changelist=159048, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapIdeWebDynproCheckLayer 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:37:31+0000, changelist=159461, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapMetamodelCommon 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:17:37+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapMetamodelCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:15:03+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapMetamodelDictionary 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:20:22+0000, changelist=159002, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapMetamodelWebDynpro 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:25:40+0000, changelist=159462, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapWebDynproGenerationCore 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:37:46+0000, changelist=159461, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapWebDynproGenerationTemplates 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:37:55+0000, changelist=159461, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/pb_api: SapWebDynproRuntimeGen 7.3005.20111228114942.0000 (release=NW730CORE_05_REL, buildtime=2011-12-28T16:35:55+0000, changelist=159464, host=pwdfm257, is-central=true)
    sap.com/tc~wd~api
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapDictionaryGenerationCore 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:27:04+0000, changelist=159000, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapDictionaryGenerationTemplates 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:27:18+0000, changelist=159000, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapGenerationFrameworkCore 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:05:47+0000, changelist=159048, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapIdeWebDynproCheckLayer 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:39:20+0000, changelist=180142, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapMetamodelCommon 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:10:50+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapMetamodelCore 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:07:26+0000, changelist=159372, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapMetamodelDictionary 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:22:41+0000, changelist=210375, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapMetamodelWebDynpro 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:27:36+0000, changelist=159462, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapWebDynproGenerationCore 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:39:36+0000, changelist=180142, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapWebDynproGenerationTemplates 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:39:43+0000, changelist=180142, host=pwdfm257, is-central=true)
    WD web module webdynpro/resources/sap.com/tc~wd~api: SapWebDynproRuntimeGen 7.3005.20130109144853.0000 (release=NW730CORE_05_REL, buildtime=2013-01-11T17:37:00+0000, changelist=223591, host=pwdfm257, is-central=true)

    Oh man it looks like a problem with the web server.
    Its an error that happens on SAP, even my dad reported an error like this to me but i wasn't able to solve it.
    What i find is that its an error with browser incompatibility,
    Check this http://scn.sap.com/message/10338540

  • Hi! I have an iPhone 4S with iOS 6.1.3 and I have iTunes 11.1.3.8. on my Windows 8. Now I can't sync my iPhone, because the device is not recognised by iTunes. Somebody have any idea why, or what can I do (except refresh the iPhone software) ?

    Hi! I have an iPhone 4S with iOS 6.1.3 and I have iTunes 11.1.3.8. on my Windows 8. Now I can't sync my iPhone, because the device is not recognised by iTunes. Somebody have any idea why, or what can I do (except refresh the iPhone software) ?

    Hi Drazse,
    Thanks for visiting Apple Support Communities.
    If your iPhone is not recognized by iTunes for Windows, the troubleshooting steps in this article may help:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Jeremy

  • What is the correct way to inform the controller of an exception in MVC?

    Hi this question has been on my mind for a while.
    Imagine you have a an application based on MVC (mode, view controller) design pattern.
    If a non-fatel exception is thrown in the model (e.g. a number format exception) what is the standard way to of informing the controller so that it can do something useful like display an error pop-up or 'gracefully' shut-down the application.
    The two ideas I came up with are:
    -Return -1 or some other variable in the 'catch' of the try/catch.
    Could be messy, every time you called a risky method you would have to wrap it in an if statement.
    -Declare the model as throwing the exception - that way the controller can 'catch' it and do something useful.
    Possibly makes the controller less cohesive.
    -Handle the error directly from the model by having it display a pop-up error message or forward to an error page etc.
    This would make the model less cohesive.
    The controller should still be informed for the exception so it can decide what to do next - if the exception occurred during form validation shouldnt the controller e responsible for redisplaying the form with an error message?
    Is there a 'best practice' of handling exceptions?
    Thanks
    Edited by: vijizzle on May 12, 2010 8:25 PM

    Just have it throw an Exception and let the Controller deal with it.
    Using a pop-up in the Model makes no sense to me. User interface is the View's job. Ultimately, an error pop-up may be presented, but the problem will be passed back to the View before that happens.

  • My parents just bought an ipad. Their apple ID is correct in all the places except in the iTunes and App Stores settings. It won't let you click on the Apple ID to change it. What should they do?

    My parents just bought an ipad. Their apple ID is correct in all the places except in the iTunes and App Stores settings. It won't let you click on the Apple ID to change it. What should they do?

    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.

  • What is the best practice for logging runtime error  or uncheked exceptions

    hello
    my main problem is logging the nullPointerException to a file
    suppose I have this method
    public void myMethod()
       //..... some declaration here
       User user = obj.findUser("userx"); //this may return null
       System.out.println("user name is "+user.getName()); // I may have a null pointer exception here
    }so what is the best practice to catch the exception ??
    can I log the exception without catching it ???
    thank you

    A terrible way of logging exceptions.Not that im not agreeing with you, but why? (I havent
    actually used this)Because it's always on, for one thing. It's not really configurable either, unless you go to some trouble to make it so. You'd have to provide an InputStream. How? Either at compile-time, which is undesirable, or by providing configuration, which a logging framework has already done, better. Then there's the fact that you can't log anything other than the stacktrace - not particularly helpful a lot of the time. In short, it's a buggy and incomplete solution to something that's already been solved much much better by, for example, Log4J

  • What are the best practices for exception handling in n-tier applications?

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with .NET framework.

    What are the best practices for exception handling in n-tier applications?
    The application is a fat client based on MVVM pattern with
    .NET framework.
    That would be to catch all exceptions at a single point in the n-tier solution, log it and create user friendly messages displayed to the user. 

  • What is the best way to handle Exception in Java?

    We are designing an application that will be developed using JSP + EJB .
    To deal with the exception part, we have thought about following solutions
    (1)All methods in EJB will be declare with throws clause, with the respect to the potential exceptions that can be thrown by method.
    We will catch only those exceptions, for which we can take alternative steps or further action when they occurred. All other exceptions will be thrown to the caller.
    (2)All JSP pages will have try/catch that catches exceptions thrown by EJB or by JSP code.
    (3)A common JSP file will be designated to handle Exception by setting isErrorPage property true and all JSP files are pointing to that particular file for exception handling.
    (4)Whenever any exception occurred in application, it will bubbled up and end user will get a common JSP page designed to handle exception.
    I am looking for the suggestions to improve this mechanism.
    Regards,
    Chetan

    The problem with the standard expection handling in a web environment is that all the potentially useful status information goes to the user, who probably won't make head nor tail of it. It also goes to the logs which someone might, or might not get arround to reading.
    What I do is to have a standard method called to deal with unanticipated exceptions and e-mail me a status report. This contains not just the extended stack trace (chasing any level of wrapped exception) but also details of the transaction being processed, including the user if known.
    Set up an e-mail alias with a list of people to receive these reports. Often you can have the problem fixed, and send the user an apologetic e-mail before they even get a complaint in.
    Create JSP tags to do this with any other per-page housekeeping.

  • What is the solution of  non-oracle exception erro 100501

    what is the solution of non-oracle exception erro 100501

    I'm guessing that the TRUE parameter in My_Alert causes the procedure to raise a form_trigger_failure. In that case you could do this:
    Declare
      A number(10);
    Begin
      SELECT Sif_Code
      INTO A
      FROM Pro_Stp_Rcp_Item
      WHERE Sif_Code = :Pro_Stp_Rcp_Item.Sif_Code
      AND Rou_Code = :Routes.Rou_Code;
      My_Alert('Item Code Already Registered',1,TRUE);
    Exception
      When form_trigger_failure then
        raise;
      When No_Data_Found Then null;
      When Too_Many_Rows
        Then My_Alert('Item Code Already Registered',1,TRUE);
      When Others
        Then My_Alert(Sqlerrm||' - '||sqlcode,1,TRUE);
    End;As Steve says, the problem is really caused by When Others here. I've got no problem with trapping "Others" but in forms you might be better off having a generic catch-all in the on-error trigger.

  • SOS!what ' s the exception means?

    Exception in thread "main" com.solarmetric.kodo.runtime.UserException: The
    column "ID" was set to multiple different values in this SQL statement.
    This column was initially set to "1", and was subsequently set to "null".
    This is probably because the schema mapping uses a single column for
    multiple fields on the assumption that the fields will always store the
    same underlying value, but the assumption was broken.

    Jian-
    How is the relation defined in your .jdo file? Are you using application
    identity for these classes, or just datastore identity?
    Also, what is the "presistenObject" call you mention below? Did you mean
    to say "makePersistent"?
    In article <bof4rs$btd$[email protected]>, jian xu wrote:
    hi Marc:
    here are 2 table, one is account,anthoer is account_detail,
    the accountdetail have fk:acct_id refer to the account's id
    and the schema.xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <schemas>
    <schema name="RAINER">
    <table name="XJ_ACCOUNT">
    <pk name="PK" column="ID"/>
    <column name="ACCOUNT_NO" type="varchar" size="20"/>
    <column name="BALANCE" type="decimal" size="22"/>
    <column name="CREATE_DATE" type="timestamp" size="7"/>
    <column name="ID" type="decimal" not-null="true" size="22"/>
    <column name="NAME" type="varchar" size="20"/>
    </table>
    <table name="XJ_ACCOUNT_DETAIL">
    <pk name="PK_DTL" column="DETAIL_ID"/>
    <column name="ACCT_ID" type="decimal" size="22"/>
    <column name="BALANCE" type="decimal" size="22"/>
    <column name="DETAIL_ID" type="decimal" not-null="true"
    size="22"/>
    <column name="LAST_BALANCE" type="decimal" size="22"/>
    <column name="MODIFY_DATE" type="timestamp" size="7"/>
    <fk name="FK" delete-action="exception"
    to-table="RAINER.XJ_ACCOUNT" column="ACCT_ID"/>
    </table>
    </schema>
    </schemas>
    some account balance-1000 and add a new record to accountDetail
    the code are:
    pm=...
    pm.currentTransaction().begin()
    XjAccount acct=...
    acct.setBalance(acct.getBalance()-1000);
    XjAcctountDetail acctDetail=new XjAccountDetail(....);
    pm.presistenObject(acctDetail);
    pm.currentTransaction().commit();
    pm.close();
    then the exception are throwed,so why?
    thanks
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • Display and lock up problems with 3 week old MBP!!!

    Hi all, I hope that someone here can help with a scary problem that I have experienced with my (otherwise perfect!!) MBP!! Occasionally, so far always after a boot up or wake up (but never on the login screen!), the MBP will lock up completely and th

  • Issue with Customize program for Dunning Forms

    Hi  Experts I have write a perform for dunning form in a outside report apart from standard print program. After doing some calculations I want print some information in the form using the function module "Write_Form", but I am not able write on the

  • Saving Photos library on external drive?

    I have been storing my iPhoto library on an external drive and opening iPhoto from that drive. How can I do the same thing for the new Photos app? I have so many pictures and I don't want to use up storage space on my computer or pay for tons of stor

  • IPhone-Outlook 2007 Calendar Sync (What worked for me)

    Hi; Today after 3 weeks of day after day trial my iPhone-Outlook 2007 Calenar synch problems seems to be fully fixed. Once again this is what worked for me - I am sharing it and hope that can help you as well: Overview ======================== I now

  • OC4J_Portal Container consuming all of the CPU

    This is something that started recently. I have opened a TAR, but no one has been able to figure out teh problem. We are running Portal 9.0.2.6.18 on Solaris and every couple of days the container jumps from < 1 % of the CPU, to 100% of one of the CP