Wrong time when using java Calender

Hi All,
I have a Solaris 9 system. The Timezone for which is set to "TZ=Asia/Colombo". I have written a small java code to get the time using Calender class.
The problem is I get wrong time and wrong ZONE offset information
Output of the java code
bash$ java TimeFile
Tue Dec 18 12:53:28 LKT 2007
utcTimeZone ===sun.util.calendar.ZoneInfo[id="UTC",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
ZONE offset ===21600000 //Should be 19800000 Since the system is in UTC+5:30
DST offset ====0
System time details
bash$ date
Tue Dec 18 12:23:42 LKT 2007
bash$ date -u
Tue Dec 18 06:53:47 GMT 2007
The java version I am using is
bash$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
bash$
Below I have pasted the code
public class TimeFile
public static void main(String[] args)
Calendar currentDateNTime = Calendar.getInstance();
Date date = currentDateNTime.getTime();
System.out.println(date);
int offset = currentDateNTime.get(Calendar.ZONE_OFFSET);
int dstoffset = currentDateNTime.get(Calendar.DST_OFFSET);
TimeZone utcTimeZone = TimeZone.getTimeZone("UTC");
System.out.println("utcTimeZone ===" +utcTimeZone);
System.out.println();
System.out.println("ZONE offset ==="+offset);
System.out.println("DST offset ====" + dstoffset);
}

Perhaps you should update to a newer version of Java. If you have to stick with 1.4.2, then you should at least use 1.4.2_15.
See also http://java.sun.com/javase/timezones/tzdata_versions.html on information about how to update time zone information in Java. In 2006 there was an update to the timezone info also covering Sri Lanka.

Similar Messages

  • App crash when using JAVA callbacks from native threads in solaris

    Hi all,
    Sorry for putting the thread here. I did use the native methods forum, I wasnt lucky. I Hope more people would look into this forum, which brings me here.
    I have a solaris application which crashes when I try to callback the JAVA methods and variables from the native code. The description of the problem is below
    Written a native library, the library is multithreaded (i.e) I create a thread using pthread_create() in the native code which performs the operation of calling a JAVA method from the native code. The routine of calling the JAVA method works perfectly elsewhere outside the new thread.
    There are two scenarios I've tested it in
    1. I created a thread (say X) from the main thread (say Y) and made the y to wait until the X is complete using the pthread_join(). The JAVA callbacks works fine when called from Y but the app crashes if done from X.
    2. Did not make the Y to wait until the X is complete, hoping that both will run paralelly and even the the App crashes.
    And to be precise the Y is the thread where the native method is called from JAVA.
    I have tested for any memory leaks or stack corruption by removing the JAVA callbacks and bulding a executable and using purify, the report doesnot hint any such occurances.
    The linker options used for building the shared library is as follows
    ${GPP} ${INC} -G ${LIB} -mt -g -lCstd -lCrun -lpthread ${OBJS} -o <lib-name>
    I wonder if we can create threads in the native code when using JAVA callbacks and even if we can whether it would be appropiate to use the callbacks with in the threads
    Looking forward for any help.
    Regards,
    Vamsi

    Guys... can't any one help me with this problem :(

  • Several of us have a iPhone 6s and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Several of us have a iPhone 6plus and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Not having the problem, don't personally know anyone who is.

  • I can't seem to use the 'Check seats' link on Delta when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine.

    I can't seem to use the 'Check seats' link on the Delta Airlines site when I use Firefox but Safari works fine. I get the message 'not available at this time' when using Firefox but when I go to Safari it works fine. I love Firefox but this sucks!

    That issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • Photobooth crashes every single time when using Motu Hybrid MK3 audio interface?

    Photobooth crashes every single time when using Motu Hybrid MK3 audio interface.
    It is happening on my late 2013 IMAC, and also on my old 2011 Macbook pro.

    Same thing here with Mavericks and M-Audio Fast Track Ultra.  Very easy to reproduce, Apple. Set your audio interface for the external device, try to record Photo Booth video. It will crash. Every. Single. Time. Always.

  • Why is the response time when using clickwheel...

    I've bought a new 60gb video and, in comparison to my 20gb 3rd generation, the response time when using the clickwheel (next track/pause/play/bak track) is annoyingly long on start-up. And the display takes seconds to catch up with what's playing sometimes freezing with half of the one 'page' showing and half of another. Should I expect this because of the larger capacity/more complex iPod?
    Also, in an earlier post I noted that when the iPod first fires up, tracks seem to stop and start - just for a second or so, 3 or 4 times within the first 15 seconds. It's not the track on iTunes as it never happens on my 3g.
    Dell   Windows XP  

    Definately sounds like a faulty harddrive.
    You could always try restoring it with the most recent updater, and reloading everything - kind of like a fragmented harddrive, I am noticing better performance since I last wiped it clean and relaoded it (due to another error - actually)....

  • Fragmented sound when using Java Synthetizator

    Hi,
    What is the reason for sound fragmentation when using
    Java synthetizator in playing midi files:
    ByteArrayInputStream mididata = new ByteArrayInputStream(data);
    AudioStream as = new AudioStream(mididata); //pre fragment? Priority problem?
    mididata.close();
    p.start(as);
    as.close();}
    catch (IOException f){System.out.println("error - " + f.toString());}
    And why there is a "blob" in loadspeakers a few seconds before
    the music starts?
    See the whole source:
    http://users.skynet.be/belgia/musitives/Synestesia.html
    Regards,
    LG
    Metacomposer GR�HN http://users.skynet.be/belgia/midi/gallery.html
    SYNESTESIA Open Source Java code generates music from any pictures

    Not sure about the fragmentation, but I guess the Blob is because you have crap in your buffer before you start to play. I don't remember what the fix is for it, but I think there is some way of clearing out the buffer.

  • BadPaddingException: pad block corrupted when using Java 1.4

    I'm getting a javax.crypto.BadPaddingException: pad block corrupted Exception while working on converting our existing java jdk 1.2 to java 1.4. Any suggestions would be great. Here are the specifics:
    We have a web application that been running for 3+ years under java jdk 1.2 & jce_1_2.jar. Within the application we are exchanging data (XML) with a customer using the following encryption scheme:
    1) We create a one time DESede key through the KeyGenerator class passing in ("DESede", "BC")
    2) We encrypt the data with this one time key using ("DESede/ECB/PKCS5Padding", "BC")
    3) This one time key is then encrypted using ("RSA/ECB/PKCS1Padding", "BC") and customer's public key
    4) We create a signature with our private key, which they have the public key for.
    This is process/api that we required to use for their API's and its worked fine under 1.2, with "ABA" as the provider. Now moving to 1.4, I'm using BouncyCastle as the provider.
    Other differences, the keystore was created under 1.2 and in 1.2 it was defined as "JCEKS" provider "SunJCE" under 1.4 I changed them to "JKS" and "SUN" . I would get bad header exceptions when reading from the keystore until I changed it. I don't think its the BouncyCastle since I was able to download the 1.2 version of BC and get the existing app to work and I also got the 1.4 version of BC to work under the existing 1.2 application.
    So something seems to be different with the algorithms/padding, but I can't seem to find it. I tried the following: "RSA" "RSA/ECB" "RSA//PKCS1Padding" "NoPadding" also changed the DESede algorithm with no luck. All I know is that its failing on the decryption of the one time key, since its failing on the customer side, I don't have much other insight into it, other then the exception that they sent me.
    More info: getting error on Java: build 1.4.2_02-b03 on Solaris 5.8
    Existing application running: Java JDK_1.2.2_10 on Solaris 5.8
    BouncyCastle: bcprov-jdk14-124.jar
    Here is the stackTrace that I was sent:
    20040804;10:29:37: javax.crypto.BadPaddingException: pad block corrupted
    20040804;10:29:37: at org.bouncycastle.jce.provider.JCEBlockCipher.engineDo
    Final(JCEBlockCipher.java:460)
    20040804;10:29:37: at javax.crypto.Cipher.doFinal(Cipher.java:1129)
    20040804;10:29:37: at com.customer.crypto.SymmetricCryptor.decrypt(SymmetricCryptor.java:105)
    20040804;10:29:37: at com.customer.crypto.SymmetricCryptor.decryptToStr
    ing(SymmetricCryptor.java:95)
    20040804;10:29:37: at com.customer.api.Data.DataServlet doPost(DataServlet.java:88)
    Thanks

    Well from what I read about this issue, seems the biggest issue is using the wrong keys. Well since this data exchange has been in production for 3+ years, I pretty certain its not the keys. To verify this i did:
    1) From a server running JDK 1.2 and ran this process successfully, so I copied the keystore from this server to the server I was running 1.4 and reran the same data through. I still got the exception.
    2) From another post I read about the difference in keys between older versions of Java and 1.4, so modifying the code listed and then exported my private key while running under 1.2 and created a new 1.4 keystore and imported this key & certificate. I'm still getting the exception.
    Any ideas would be great.
    Thanks

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • ORA-04030: out of process memory when using Java Stored Procedures

    Hello,
    I have a problem using Java Stored Procedures in Oracle 10g.
    My Java application performs http posts to a webservice and the response is parsed in order to populate some DB tables.
    There is a scheduled job which calls the Java Stored Procedure every x minutes.
    No matter of the 'x minutes' values - after about 160 - 200 calls I get this error:
    ORA-04030: out of process memory when trying to allocate 1048620 bytes (joxp heap,f:OldSpace)
    ORA-04030: out of process memory when trying to allocate 2097196 bytes (joxp heap,f:OldSpace)
    The job stops just while is posting the http request. The weird thing is that almost each time the first http post request I get this error:
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
         at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    and the second try works fine.
    So, The out of process memory occured each time just before getting such an error, and I suspect to be a connection between these errors.
    Tech details:
    1. OS: WinXP
    2. Oracle 10.1.0.2.0
    3. To perform http post I use HttpClient 3.1 from Apache.
    4. I checked the http connection to be closed each time, and this is done.
    5. I checked the oracle statement and connection to be closed each time and this is done
    6. The JVM error (logged in .trc files of Oracle) is:
    java.lang.OutOfMemoryError
         at java.lang.Thread.start(Native Method)
         at sun.security.provider.SeedGenerator$ThreadedSeedGenerator.run(SeedGenerator.java:297)
    DB Settings details:
    Starting up ORACLE RDBMS Version: 10.1.0.2.0.
    System parameters with non-default values:
    processes = 200
    sessions = 225
    shared_pool_size = 159383552
    large_pool_size = 8388608
    java_pool_size = 104857600
    nls_language = AMERICAN
    control_files = C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL03.CTL
    db_block_size = 8192
    db_cache_size = 29360128
    compatible = 10.1.0
    fal_client = XXXXXX
    fal_server = XXXXXXs
    log_buffer = 524288
    log_checkpoint_interval = 100000
    db_files = 70
    db_file_multiblock_read_count= 32
    db_recovery_file_dest = C:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    standby_file_management = AUTO
    undo_management = AUTO
    undo_tablespace = undotbs_01
    undo_retention = 14400
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=XXXXXXXDB)
    remote_dependencies_mode = SIGNATURE
    job_queue_processes = 4
    parallel_max_servers = 5
    background_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\BDUMP
    user_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\UDUMP
    max_dump_file_size = 10240
    core_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\CDUMP
    sort_area_size = 1048576
    sort_area_retained_size = 1048576
    db_name = XXXXXX
    open_cursors = 500
    optimizer_mode = FIRST_ROWS
    pga_aggregate_target = 25165824
    Any help would be appreciated. Thanks.
    Can be a problem with JVM threading under Oracle ?

    The server prcess failed to allocate more memory for large objects ( in Oldspace).
    If you Google ORA-04030, you will see several recommendations to work around this.
    The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
    Kuassi http://db360.blogspot.com

  • Update file date/time stamp using java

    Let me explain you what I am going through:-
    I have created a java based installer using Jexpress tool and after I do the installation of my files, the files takes the current date rather then taking the date when it was created or modified.
    Everything goes into JAR and I heard that Jar file do not retain the date/time stamp of the file.
    I would like to know if we can change the date and time stamp of the files using Java.
    Is there any method to do that or can we do this by writing the java class?
    Thank You
    Mehul

    Did you check it?
    I did.
    $ jar cvf ~/ui *.m3u
    added manifest
    adding: Amollhgv.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand1.m3u(in = 56) (out= 27)(deflated 51%)
    adding: Brand2.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand3.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand4.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand5.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Brand6.m3u(in = 42) (out= 24)(deflated 42%)
    adding: Edurhgv.m3u(in = 42) (out= 24)(deflated 42%)
    $ unzip -l ~/ui
    Archive:  /home/ijbalazs/ui
      Length     Date   Time    Name
            0  12-04-03 17:53   META-INF/
           71  12-04-03 17:53   META-INF/MANIFEST.MF
           42  08-26-02 01:03   Amollhgv.m3u
           56  11-22-98 01:15   Brand1.m3u
           42  08-26-02 01:04   Brand2.m3u
           42  08-26-02 01:04   Brand3.m3u
           42  08-26-02 01:04   Brand4.m3u
           42  08-26-02 01:04   Brand5.m3u
           42  08-26-02 01:04   Brand6.m3u
           42  08-26-02 01:04   Edurhgv.m3u
          421                   10 files

  • Error: SCAC-50012 when using Java Embedding activity

    Hi,
    I am just trying to create a file Object as follows:
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <![CDATA[try{  
            addAuditTrailEntry("Hello");   
            File f = new File("file.txt");  
    catch(Exception){
    e.printTrackTrace();
    }]]>
    </bpelx:exec>
    and getting the Error, am I doing something wrong:
    Mar 18, 2013 3:45:18 PM oracle.security.jps.util.JpsUtil disableAudit
    INFO: JpsUtil: isAuditDisabled set to true
    Mar 18, 2013 3:45:18 PM oracle.security.jps.util.JpsUtil disableAudit
    INFO: JpsUtil: isAuditDisabled set to false
    Mar 18, 2013 3:45:20 PM oracle.mds
    NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
    Mar 18, 2013 3:45:23 PM oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported
    INFO: XMLSchema incremental build enabled.
    Mar 18, 2013 3:45:24 PM com.collaxa.cube.CubeLogger info
    INFO: validating "SyncEbizServiceRequestRequestorABCSImpl.bpel" ...
    Mar 18, 2013 3:45:24 PM oracle.integration.platform.blocks.FabricConfigManager <clinit>
    WARNING: JRF is unable to determine the current application server platform.
    Mar 18, 2013 3:45:24 PM oracle.integration.platform.blocks.WLSPlatformConfigurationProvider <clinit>
    WARNING: JRF is unable to determine the current application server platform.
    node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELSequenceBlock
    node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELScopeBlock
    node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELCatchAllBlock
    node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELCompensationHandlerBlock
    node class name com.collaxa.cube.engine.ext.bpel.v1.blocks.BPELSwitchBlock
    Mar 18, 2013 3:45:24 PM com.collaxa.cube.CubeLogger info
    INFO: Composed "SyncEbizServiceRequestRequestorABCSImpl" in 75.8 milliseconds [nodes 25=0+25, 330.0 nodes/sec]
    Mar 18, 2013 3:45:25 PM CubeProcessGenerator compile
    WARNING: classpath is: C:\Oracle1\Middleware1\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.adf.model_11.1.1\adfbcsvc-share.jar;C:\Oracle1\Middleware1\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle1\Middleware1\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.web-common_11.1.1.jar;C:\Oracle1\Middleware1\jdeveloper\lib\aia.jar;;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\classes;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\classes;C:\Saikrishna\Development\AIA_Worksapce\HolxSyncEbizServiceRequestRequestorABCSImpl\SCA-INF\gen-classes;C:\Oracle1\Middleware1\oracle_common\modules\commonj.sdo_2.1.0.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle1\Middleware1\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel1-1-xbeans.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel_coherence_config.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpm-analytics.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\wsif-binding.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\monitor-rt-xbean.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\oracle.soa.bpmn.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\user-patch.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.thirdparty.jar;C:\Oracle1\Middleware1\jdeveloper\uddi\lib\oracle.soa.uddi.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-scheduler.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\xmlunit-1.1.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-xpath-exts.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.wls.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-was.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-wls.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;C:\Oracle1\Middleware1\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes
    SCAC-50012
    ORABPEL-01005
    Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "SyncEbizServiceRequestRequestorABCSImpl" of composite "default/HolxSyncEbizServiceRequestRequestorABCSImpl!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Thanks
    S

    Hi,
    Your problem is in the catch block:
    catch(Exception){
    e.printTrackTrace(); Should be:
    catch(Exception e){
    e.print*Stack*Trace();
    Arik

  • Some events appear at wrong time when publishing to web

    When I publish my calendar and then view it on the web, events I have created myself in iCal are shown at the correct time, but any events I have recieved from Evolution (the email/calendar application my colleagues use) as an .ics file are shown exactly 8 hours later than they should be. Perhaps it's a coincidence that this is the exact time difference between the UK (where I live and work) and West Coast USA?
    Just to make it clear: all events appear correctly in iCal and, if I send a subscribe email to myself and then subscribe to the published calendar, they also appear correctly in iCal. The only place where they appear at the wrong times is in the http://ical.mac.com/<username>/<calendarname> address, and it's only events that I have recieved via email.
    Is there a workaround for this that doesn't involve asking my colleagues to change settings on their Ubuntu workstations? Perhaps it's a problem with Apple's ical website that they need to fix? Either way, it makes the business of publishing my calendars largely useless.

    Bernard Harte wrote:
    It's likely that the problem is due to an incompatibility between the way that the two systems define time zones.
    This is what I thought, but iCal itself seems to cope with this, whereas the .Mac iCal web server doesn't, which is a shame.
    I suspect that you don't have time zone support switched on in the Advanced tab of Preferences. If you don't, try switching it on and then looking at one of your events and one of the rogue ones in the edit window. You'll probably see a difference in time zones - i.e. that the rogue ones are in US Pacific zone.
    I switched on time zone support, but it didn't change any of the events in iCal at all; i.e., the "rogue" events still show at the correct time (and the incorrect time on the iCal web server).
    If this guess is correct, you will need to get your colleagues to change their time zone since iCal and ical.mac.com are behaving as they should.
    They are all on the same timezone as me - Europe/London (which is currently on DST).
    If the guess isn't correct, report back and we'll work on a solution
    Then I look forward to hearing from you!

  • JSP page display wrong time when compared to the server time

    Hi,
    This problem seems to weird but it is happening
    I have web application running where time is displayed in the page. In this application time is very critical. Currently, time is an hour behind the orginal time.
    I checked the server it is displaying proper time.
    As a matter of troubleshooting, I wrote a java program and run the program in the same server, where the application is running. The java program returns me proper time , but JSP is still displaying time an hour behind. To trouble shoot further, I created a test jsp page to just display the time and accessed the time and the jsp displayed wrong time as well, an hour behind.
    I am running[ tomcat 4.0.3 and j2sdk1.4.3 in suse linux enterprise server 9.0
    My Java program
    import java.util.*;
    import java.text.*;
    public class TestDate
    public static void main(String s[])
         try{
              DateFormat DF = new SimpleDateFormat( "dd/MM/yyyy");
    DateFormat DT = new SimpleDateFormat("hh:mm aa");
              SimpleDateFormat fmt=new SimpleDateFormat("HH.mm");
              Calendar cal= Calendar.getInstance();
              java.util.Date dt=cal.getTime();
              String curdt=DT.format(dt);
              System.out.println("Server Time" + curdt + "\n");
              int hh = cal.get(Calendar.HOUR);
              int mm = cal.get(Calendar.MINUTE);
              int aa = cal.get(Calendar.AM_PM);
              System.out.println("Time" + hh +":"+mm+":"+aa+"\n");
         }catch(Exception e) {
         e.printStackTrace();
    This display Time3:30:1
    My JSP Page
    <%@ page import="java.util.*,java.text.*"%>
    <%
    Calendar calen;
    calen = Calendar.getInstance();
    int hh=calen.get(Calendar.HOUR);
         int mm=calen.get(Calendar.MINUTE);
         int aa=calen.get(Calendar.AM_PM);
    %>
    <%=hh%> <%=mm%> <%=aa%>
    This display 2 30 1
    When I run Date in linux server it gives 3:30 PM EST 2004
    I am really confused, why this is happening, If you have any solutions or idea please post the solution.

    My guess is that the weirdness is caused by Daylight savings time.
    I will presume that you and the server are in the same timezone :-)
    Alternatively it could be caused by getting a different Locale.
    Try the following
    Print out "date.getTime()" value (ie long representing number of millis)
    They should be the same (or close) in both the app and in JSP
    Try simple date format in your JSP as well - what does that result in?
    Print the calendar object, and look for the difference.
    It might be in Locale, Timezone, or whether DST is set or not.
    Hope this helps,
    evnafets

  • Window shutdown when using java

    Greetings, since a short time i've having probs when using the java.
    For a time all goes well, but then the IE window just shuts down.
    No warning or whatever....
    Anyone any ideas?
    Tnx in advance

    Possible a bug, probably and more likely something is corrupted. Not much you can do short of trying to reinstall if there are really no errors or dumps present. You should look in your System -> application log file first to see if there are in fact errors you are not seeing.

Maybe you are looking for