Problem while calculating time before 5 years

Dear all,
See the following code. Here i tried to calculate the time before 5 years.
import java.util.Date;
public class Test
        public static void main(String args[])
                long threshold = -1;
                long age = 5;
                long currentTime = System.currentTimeMillis();
                threshold = currentTime - (age*(365*86400000)); //  To calculate the time bef 5 years from now.
                System.out.println("Threshold value(in Date) :: "+new Date(threshold));
}The result is
Threshold value(in Date) :: Mon Aug 06 05:42:55 IST 2007
But when i change the code as follows
                threshold = currentTime - (age*365*86400000); // Just removing the brackets before & after 365*86400000It's giving the correct result as follows:
Threshold value(in Date) :: Thu Oct 31 09:12:21 IST 2002
Why is it so?. Please explain me.
Thanks.

the problem is (I believe) due to int overflow.
In your first calculation, your multiplication -- (365*86400000) is done with ints and will give an int result, an incorrect result because this will likely be greater than int allows, which on my system is 2147483647.
the second calculation is a long * int * int, so the result will be a long which will not be corrupted.
Try it yourself:
public class Fubar2
    public static void main(String[] args)
        System.out.println(Integer.MAX_VALUE);
        int a = 100000000;
        int b = 500;
        System.out.println(a * b);
        System.out.println((long)a * b);
        a = 86400000;
        b = 365;
        System.out.println(a * b);
        System.out.println((long)a * b);
}Edited by: petes1234 on Oct 29, 2007 8:53 PM

Similar Messages

  • After Updating Adobe Indesign CC ,While I'm selecting text in a paragraph, the text disappears and this problem repeated several times before update everything was ok

    After Updating Adobe Indesign CC ,While I'm selecting text in a paragraph, the text disappears and this problem repeated several times before update everything was ok

    First, see Replace Your Preferences and do it for the original account.
    If that fails to solve the problem, rename the two Adobe folders that contain the prefs in the user profile for that account and copy the folders from the new account where it works. You want to be sure you copy the folders, rather than merge the contents, so you must rename the old folders first.

  • Problem at calculation time, when using Dynamic Calc measures

    Hello,<BR><BR>We are using Essabse v6.5 and we want to upgrade to v7.1.<BR>we are performing some tests, in order to check that the Cubes we have created in 6.5 are working properly in v7.1.<BR><BR>the problem that we are experiencing is that the calculation time for the cubes that have dynamic calc members has exploaded to 10 times more, compared to what it took at version 6.5.<BR><BR>Do you have any idea why this happens. (also we are still using the old client "Application Manager")<BR><BR>Furhermore, I have set up 2 cubes that are the same, except the 1st has dynamic calc memebers, whereas the 2ns has not.<BR>I perform calcualtions with the “SET MSG DETAIL;” and receive the following:<BR>CUBE (A) with Dynamic Calc<BR>Total Block Created: [4.3720e+03] Blocks <BR>Sparse Calculations: [8.0620e+03] Writes and [2.5338e+05] Reads <BR>Dense Calculations: [2.8000e+01] Writes and [2.8000e+01] Reads <BR>Sparse Calculations: [6.0202e+06] Cells <BR>Dense Calculations: [1.1476e+06] Cells <BR><BR>CUBE (B) withOUT Dynamic Calc<BR>Total Block Created: [4.3720e+03] Blocks <BR>Sparse Calculations: [4.3720e+03] Writes and [3.5887e+04] Reads <BR>Dense Calculations: [2.8000e+01] Writes and [2.8000e+01] Reads <BR>Sparse Calculations: [6.0202e+06] Cells <BR>Dense Calculations: [1.1476e+06] Cells <BR><BR>Question: Why does Cube (A) has more “Sparse Calculations” than Cube(B) ????<BR><BR><BR>thanx

    Yes, all the settings were exactly the same. See following:<BR>- Data Cache (note: we are NOT using the Data File Cache) <BR>- Index Cache<BR>- Index Page<BR>- Commit Block Interval<BR>- Cache memory Locking<BR>- Access Mode = buffered IO<BR>- Data Compression = Bit-Map encoding<BR>- Two Pass Calculatino = ON<BR>- Aggregate Missing Values = ON<BR>- CFG file<BR><BR><BR>Is there any new settings in 7.1 that I must configure?<BR>Is there any settings that I cannot see through the old client Application Manager, which is important? Must I install the new client in order to be able to configure correctly the Outline/Cube?<BR><BR>Thnkx<BR><BR>

  • Problem while calculating date based on the selection

    Hi friends,
    On my selection screen i have 2 fields
    a) 1 WEEK
    b) 2 weeks
    now when the user enters value yes in 1 week it should display the data which are less than one week old from current date and if user enters yes in 2weeks field then it should display the data which are less than 2 weeks old from the current date.
    ie : in my internal table i have a date field zdate
    now i should check if the ZDATE is within one week range  ( for 1WEEK FIELD ) it should display only that data.
    similary i should check for ( 2week field on the selection scree)
    How can i do that...
    Any function modules available for the above requirment.
    Thanks in advance.
    Regards
    Kumar

    Hi Kumar,
    SY-DATUUM - X does not work when the month and year changes..
    for example if the current date is 02/01/2010
    now if i say sy-datum - 7 , the system will not recognise the month and year change here...
    I'm not sure what you're saying here is accurate.  I created the following piece of code to check;
    data l_var type datum.
    l_var = '20100102'.
    l_var = l_var - 7.
    Write: / L_var.
    The value of l_var at the end was 26.12.2009, which seems to work for me. Anurag's answer seems to be correct.
    Regards,
    Nick
    P.S. Your question actually breaks the forum rules, questions on manipulating dates have been asked many times before and the answers typically only require basic arithmatic

  • Problem while filtering time

    Hey ppl,
    I''m working in a report and I need to do some time filtering to keep in the graph only the records of the current day. Everything workis fine while on edit mode in the Active Studio, however when I switch to the view mode or to the Active Viewer I keep getting this exception:
    Exception Message An error has occurred in the ADC storage system. ORA-00904: "33a5c05c-667a-4d67-9463-ab56ac"."_tipoDeDocumento": invalid identifier
    Stack Trace Server stack trace: at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at Oracle.BAM.ReportCache.Server.ReportCacheServer.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [1]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Oracle.BAM.Middleware.ReportCache.IReportCache.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at Oracle.BAM.Middleware.ReportCache.RemoteReportCache.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at Oracle.BAM.ReportServer.DataManager.OpenViewSet(String strModifier, ViewSetBuilderBase oViewSetBuilder, String strUserName) at Oracle.BAM.ReportServer.ViewSet.GetRecords(XmlDocument oProperties, String strUserName, ViewSetBuilderBase oViewSetBuilder, Int32 iBrowserTimezoneOffset) at Oracle.BAM.ReportServer.Chart.RenderChart(String strXmlModifier, String strXmlProperties, String strActive, String strClientWidth, String strClientHeight, String strBrowserTimezoneOffset, Boolean bEMail, String strUserName) ...
    Debugging Information An error has occurred in the ADC storage system. ORA-00904: "33a5c05c-667a-4d67-9463-ab56ac"."_tipoDeDocumento": invalid identifier [ErrorSource="ActiveDataCache", ErrorID="ADCStorageException"] Debugging information: Oracle.BAM.ActiveDataCache.Common.Exceptions.CacheException: An error has occurred in the ADC storage system. ORA-00904: "33a5c05c-667a-4d67-9463-ab56ac"."_tipoDeDocumento": invalid identifier Server stack trace: at Oracle.BAM.ActiveDataCache.Kernel.Server.DataStoreServer.OpenViewset(Modifier modifier, ViewsetOptions options, Int32 iTransactionID) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at Oracle.BAM.ReportCache.Server.ReportCacheServer.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [1]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Oracle.BAM.Middleware.ReportCache.IReportCache.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at Oracle.BAM.Middleware.ReportCache.RemoteReportCache.OpenViewSet(ViewSetBuilderBase oViewSetBuilder) at Oracle.BAM.ReportServer.DataManager.OpenViewSet(String strModifier, ViewSetBuilderBase oViewSetBuilder, String strUserName) at Oracle.BAM.ReportServer.ViewSet.GetRecords(XmlDocument oProperties, String strUserName, ViewSetBuilderBase oViewSetBuilder, Int32 iBrowserTimezoneOffset) at Oracle.BAM.ReportServer.Chart.RenderChart(String strXmlModifier, String strXmlProperties, String strActive, String strClientWidth, String strClientHeight, String strBrowserTimezoneOffset, Boolean bEMail, String strUserName) ...
    Assembly ReportServer
    State Oracle.BAM.ReportServer.ViewStreamer
    Event GetViewsInOneRoundTrip
    ViewIDsXml <ViewIDsXml><ViewID id='view1'/></ViewIDsXml>
    view1_ReportType tiled
    view1_DataSet McHistorial_DO
    view1_ViewsetId NOT_INITIALIZED
    view1_ViewId view1
    view1_Properties <Properties ContentType="LineChart" datasetId="_Mc_Historial_DO"><Title display="true" color="#ffffff" font-family="Tahoma" font-weight="Bold" font-size="11" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false" background-color="#7B97C0" text-align="left"><Text bUseViewName="true"></Text></Title><ChartTitle display="false" font-family="tahoma" font-weight="Bold" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><DataAxis auto="true" min="" max="" major="" minor="" font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><NonDataAxis font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false" bAllowDiagonal="true" bShowGroupLabels="true"/><Legend display="false" font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false" location="bottom"/><ColorPalette selected="1"/><ActiveData showColor="true" newColor="#FFE299" newTimeSeconds="1000"/><Groups bynumber="false"/><SeriesValues font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><ErrorMessage font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><HorizontalAxisLabel showlabel="false" labelpos="onside" font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><VerticalAxisLabel showlabel="false" labelpos="onside" font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><Target bUseTarget="false" fTargetValue="" bShowValue="true" strTargetLabel="" eDashStyle="solid" strTargetColor="" iDashThickness="1" font-family="tahoma" font-size="11" color="#000000" underline="false" overline="false" line-through="false" capitalize="false" uppercase="false" lowercase="false"/><Empty display="true" text="No Values"/><ThreeDOptions fBackDepth="25"/><Body background-color="transparent"><Border color="#000000" width="1px" style="solid"/></Body><Series datasetField="_EstadoC" dataType="INTEGER" bShowValue="true" bShowPercent="false" bShowSeriesName="false" bShowAggFunction="true" ModifierID="0" aggregate="SUM" include="true" chartType="LineChart" order="0"/><Series datasetField="_EstadoH" dataType="INTEGER" bShowValue="true" bShowPercent="false" bShowSeriesName="false" bShowAggFunction="true" ModifierID="0" aggregate="SUM" include="true" chartType="LineChart" order="1"/><Series datasetField="_EstadoI" dataType="INTEGER" bShowValue="true" bShowPercent="false" bShowSeriesName="false" bShowAggFunction="true" ModifierID="0" aggregate="SUM" include="true" chartType="LineChart" order="2"/><Series datasetField="_EstadoL" dataType="INTEGER" bShowValue="true" bShowPercent="false" bShowSeriesName="false" bShowAggFunction="true" ModifierID="0" aggregate="SUM" include="true" chartType="LineChart" order="3"/><GroupLevel datasetField="_Fecha" dataType="DATETIME" ModifierID="0" eTimeUnit="HOUR" iQuantity="1" isTimeline="true" zeroFill="true" fieldID="HOUR__Fecha"/></Properties> ...
    view1_ModifierXml <Modifier dataset="_Mc_Historial_DO" id="0"><FieldRefs></FieldRefs><Filter><Branch type="ALL"><Entry type="EQ"><Node type="COLUMN">tipoDeDocumento</Node><Node type="STRING">TSF</Node></Entry><Entry type="PeriodicNowCurrent"><Node type="COLUMN">Fecha</Node><Node type="PeriodicNow" period="DAY" offset="0" bActive="false"></Node></Entry></Branch></Filter><Groups><Group level="0"/><Group level="1" datasetField="_Fecha" iQuantity="1" eTimeUnit="HOUR" isTimeline="true" zeroFill="true"><Aggregate operandDatasetField="_EstadoC" operation="SUM"/><Aggregate operandDatasetField="_EstadoH" operation="SUM"/><Aggregate operandDatasetField="_EstadoI" operation="SUM"/><Aggregate operandDatasetField="_EstadoL" operation="SUM"/></Group></Groups></Modifier> ...
    view1_InEditor false
    view1_IsInViewMode true
    view1_ActiveDataDelay 0
    view1_TimezoneOffset 300
    view1_ActionButtons <ActionButtons/>
    view1_clientWidth 1131
    view1_clientHeight 663
    view1_Assembly ReportServer
    view1_State Oracle.BAM.ReportServer.LineChart
    Hope someone can help me with this,
    Thanks in advance:
    Alex

    Hi,
    I have the same problem. The report works without the time filter (within a time interval of 1 week). In my case, I'm using an external data source (MySQL database table) to feed the BAM data object. But the time filter works with BAM data coming from sensors in other reports. I'm using BAM 10.1.3.1.
    Is it a bug? Is there a workaround? Any help would be greatly appreciated.
    amir

  • Dynamic calc problem while calculation another dynamic calc member

    I have 6 dimensions. Two of them are dense and are tagged as Accounts and Time. The dimension I am having problem with is called "Metrics". It was originally dense. But because the calc scripts were executing slowly, I decided to make "Metrics" a sparse dimension. Now the calc scripts are all executing pretty fast. However, I now have data issues. For example: Within Metrics, I have a hierarchy that looks as follows: Metrics Input.Amount ~ BW.YAG.EQU Dynamic Calc, Two Pass Pct.YAG.EQU Dynamic calc, Two Pass. Both of these Members have a member formula associated with them. "Pct.YAG.EQU" member refers to "BW.YAG.EQU" within it's member formula. Also, notice "Pct.YAG.EQU" comes after "BW.YAG.EQU" Any other thoughts. Really appreciate all your help in this matter. Thanks

    I have 6 dimensions. Two of them are dense and are tagged as Accounts and Time.The dimension I am having problem with is called "Metrics". It was originally dense. But because the calc scripts were executing slowly, I decided to make "Metrics" a sparse dimension. Now the calc scripts are all executing pretty fast. However, I now have data issues.For example:Within Metrics, I have a hierarchy that looks as follows:Metrics Input.Amount ~ BW.YAG.EQU Dynamic Calc, Two Pass Pct.YAG.EQU Dynamic calc, Two Pass.Both of these Members have a member formula associated with them. "Pct.YAG.EQU" member refers to "BW.YAG.EQU" within it's member formula. Also, notice "Pct.YAG.EQU" comes after "BW.YAG.EQU"Any other thoughts.Really appreciate all your help in this matter.Thanks

  • Facing problem while calculating the difference between the two dates?

    Hi
    I am using this code to calculate the difference between the two dates :
    import java.util.Calendar;
    import java.util.*;
    public class DateDifferentExample
    public static void main(String[] args)
    // Creates two calendars instances
    Calendar cal1 = Calendar.getInstance();
    Calendar cal2 = Calendar.getInstance();
    // Set the date for both of the calendar instance
    cal1.set(2006, 12, 30);
    cal2.set(2007, 05, 03);
    // Get the represented date in milliseconds
    long milis1 = cal1.getTimeInMillis(); // getting error here
    long milis2 = cal2.getTimeInMillis(); // getting error here
    // Calculate difference in milliseconds
    long diff = milis2 - milis1;
    // Calculate difference in seconds
    long diffSeconds = diff / 1000;
    // Calculate difference in minutes
    long diffMinutes = diff / (60 * 1000);
    // Calculate difference in hours
    long diffHours = diff / (60 * 60 * 1000);
    // Calculate difference in days
    long diffDays = diff / (24 * 60 * 60 * 1000);
    System.out.println("In milliseconds: " + diff + " milliseconds.");
    System.out.println("In seconds: " + diffSeconds + " seconds.");
    System.out.println("In minutes: " + diffMinutes + " minutes.");
    System.out.println("In hours: " + diffHours + " hours.");
    System.out.println("In days: " + diffDays + " days.");
    but i am getting this error :
    The method getTimeInMillis() from the type calendar is not visible
    Please suggest!!

    // Get the represented date in milliseconds
    long milis1 = cal1.getTime().getTime(); // getting error here
    long milis2 = cal2.getTime().getTime(); // getting error here Hope this works for you!!

  • HT201263 hello guyz i m having problem while restoring my iphone 4.It is showing me the 1600 error before that it showed 3194 error i fixed that after that it showed me the error 1601 also i fixed it but now with 1600 plz plz help me guyz

    hello guyz i m having problem while restoring my iphone 4.It is showing me the 1600 error before that it showed 3194 error i fixed that after that it showed me the error 1601 also i fixed it but now with 1600 more then 20 times tried but no advantage plz guyz help me?

    iTunes: Specific update-and-restore error messages and advanced troubleshooting - http://support.apple.com/kb/TS3694 - relating to iPad, iPhone, iPod touch, iTunes

  • Plannned Delivery time not considered while calculating delivery date

    Hi PP Gurus,
    We have a situation is that after MRP run system is not taking into account planned delivery time while calculating delivery dates in schedule lines
    It is taking into account GR processing time.We have GR processing time of 3 days.requirment date is 13.10.2011 & delivery date created by the system is 10.10.2011.
    We have maintained correct master data i.e.Materail Master , Info record & Scheduling agreement.
    Please advice why it is happening & what is the significance of planned delivery time in externaly procured materail with scheduling agrement schedule lines?
    Thanks & Regards,
    Sandesh

    Hi Sandesh,
    Is this happening for particular materials or for all materials
    Couple of checks -
    1) Check with material master changes, might be after MRP run PDT is updated in material master etc ..
    2) Check in OPPQ, for option external procurement , whether scheduling info records/agree is marked or not
    Best Regards
    K.Madhu Kumar

  • Hello Guys. I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD? Please Help. Thank You

    Hello Guys.
    I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD?
    Please Help.
    Thank You
    Julio Skov

    Hey
    Thank you very much for replay.
    Would you explain to me how can I do?
    I don't really understand these processes.
    Thak you very much
    Julio

  • Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).

    You can try http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Ok so I just updated my I Phone4S with the new OS7 software.. A problem is now occuring: when someone calls me their phone rings 3 to 4 times before my phone rings. Does anyone know why ? Or how to fix this.. This is New..

    Like my header says.. I have a I Phone 4S.. with recently installed OS 7 software.. One problem has occured.. when someone calls me thier phone rings
    3 to 4 times before my phone rings.. I have tested this with several family and friends calling me..
    > I have a business this is unacceptable.. does anyone have a solution thanks...

    If this were happening to me I would try resetting the System Management Controller.  Next step would be to take it to an authorized service place.

  • Time out problem while uploading large bpel processes into oracle soa suite

    Hi everyone,
    I'm using oracle soa suite 10.1.3.4.0 and I'm encountering time out problem while trying to upload a 5MB bpel process into my bpel process server located in the LAN network. The error is coming from apache common file upload.
    Is there a way to increate the connection time out for oc4j to avoid this problem?
    Thanks for any help.
    Regards
    Esfand

    Hi Marc.
    Thanks for your reply. I increased the transaction manager time-out but still I have the same problem. I believe this is something related to oc4j settings and related to upload bpel process. here is my stack trace output:
    79: A problem occured while connecting to server "192.168.0.12" using port "8888": bpel_JazbModaresJadidBPEL_1.0.jar failed to deploy. Exception message is: javax.transaction.RollbackException: Timed out
    at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:94)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:324)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
    at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
    javax.transaction.RollbackException: Timed out
    at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:152)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:57)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
    ... 25 more
    Caused by: javax.transaction.RollbackException: Timed out
    at com.evermind.server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServerTransaction.java:664)
    at com.evermind.server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:273)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:162)
    at com.evermind.server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:472)
    at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:137)
    ... 33 more
    Total time: 4 minutes 30 seconds
    The bpel jar file is about 2MB and is uploaded from my machine located in the same LAN.
    Any hints?
    Thanks
    Esfand

  • Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print?

    Anyone else have a problem printing from an iMac OS-X 10.9.3 to a wireless Epson 835 Artisan printer? Sometimes it prints but must often I get "The printer is not connected" and I have to retry printing 8, 10 or 12 times before it will print? I have followed all the instructions from Epson about upgrading, etc. but it is very frustrating when I have to repeatedly try to print. Epson says talk to Apple???

    Try checking thru these, maybe some help.
    Mac OS X: How to reset the printing system
    http://www.macworld.com/article/2029528/mac-troubleshooting-what-to-do-when-you- cant-print.html
    Also try deleting the printer from your printer Q system preferences, then reinstalling it (highlight the printer click the minus symbol, then click the plus symbol and add it again. Reboot, and try.

  • Problem while using Before insert Trigger

    Hello everybody,
    I am using 9.2.0.4.0 XMLDB..
    The problem occurs while using the before insert trigger shown below to convert a CLOB(:new.file_clob) to XMLTYPE(:new.file_xml). The trigger is on a table with file_clob and file_xml as columns. file_xml column is based on a registered schema.
    The trigger is:
    Create or replace trigger po_2_demo_xml_tab_trg
    before insert on po_2_demo_xml_tab
    FOR EACH ROW
    -- Step 1:to convert CLOB to XMLtype and store it
    --in :new.file_xml .
    :new.file_xml := xmltype(:new.file_clob);
    -- Step 2:to verify if :new.file_xml has been created
    dbms_output.put_line(:new.file_xml.extract('/PurchaseOrder/PONum/text()').getStringVal());
    end;
    If u insert a valid xml file, u can see the PONum value on dbms output(Step 2 of the trigger works). u also get the "1 row inserted" message.
    Surpisingly, if u query on the table it shows that the file_xml column is null! For some reason, the value of :new.file_xml in the before insert trigger is not being retained in the table.
    Has anybody encountered this before? Do I have to apply any patch?
    Appreciate any help in this regard.
    Thanks,
    Partha.

    sorry! I just noticed.. the trace file does show an error, but the error is while creating the table itself.
    Please see the segment from trace file below:
    The following statements encountered a error during parse:
    create table po_2_demo_clob_xml_tab
    file_clob CLOB,
    file_xml xmltype
    )xmltype column file_xml
    XMLSCHEMA "http://Friday/PO_2.xsd"
    ELEMENT "PurchaseOrder";
    XCTEND rlbk=0,
    Error encountered: ORA-00911
    But, inspite of this I am able to insert a xml file into file_xml using a sql statement. But the before insert trigger does not retain :new values.
    Appreciate any comments.
    Thanks,
    Partha.

Maybe you are looking for