Oracle/Java Time Discrepancy

I have an Oracle procedure that rebuilds the index and a java application that calls the procedure. I don’t pass any timestamp at all, I just tell it to start and how long (approx) to run and then post the results in the GUI. When I run the procedure in the Oracle SQL Developer the start time is correct, however, when I run the same procedure though my Java Swing app the time stamp is 4 hours ahead of the current time. This confuses the users and is driving me nuts! The DB and the application are on one machine so there shouldnt be a time discrepancy. Any advice on how get Oracle to have the right time?
For a test I ran the following code:
public void retrieveTimeZone()
String query = "select to_char(current_timestamp, 'dd Mon yyyy hh24:mi:ss') from dual";
CallableStatement cs = null;
ResultSet rs = null ;
logMonitorList = new ArrayList();//reset list
TimeZone tZone = TimeZone.getDefault();
System.out.println("Java Date=" +new Date().toString());
System.out.println("tZone=" +tZone.toString());
try
logger.logEvent(className, "retrieveTimeZone", "Query=" +query);
cs = getDBConnection().prepareCall(query);
rs = cs.executeQuery();
while(rs.next())
System.out.println("Oracle through Swing app time="+rs.getString(1));
catch (SQLException e)
logger.logEvent(className, "retrieveLogMonitor", e.toString());
finally
//close connections etc…
The output is:
Java Date=Thu Jun 12 17:18:57 EDT 2008
tZone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
Oracle through Swing app time=12 Jun 2008[b] 21:18:57

Hi,
I guess this is the same query with solution posted on: http://forum.java.sun.com/thread.jspa?threadID=5304867&tstart=60
-Priyanka

Similar Messages

  • Oracle/JDBC Time Discrepancy

    I have an Oracle procedure that rebuilds the index and a java application that calls the procedure. I don�t pass any timestamp at all, I just tell it to start and how long (approx) to run and then post the results in the GUI. When I run the procedure in the Oracle SQL Developer the start time is correct, however, when I run the same procedure though my Java Swing app the time stamp is 4 hours ahead of the current time. This confuses the users and is driving me nuts! The DB and the application are on one machine so there shouldnt be a time discrepancy. Any advice on how get Oracle to give Java the right time?
    For a test I ran the following code:
        public void retrieveTimeZone()
             String query = "select to_char(current_timestamp, 'dd Mon yyyy hh24:mi:ss') from dual";
            CallableStatement cs = null;
            ResultSet rs = null ;
            logMonitorList = new ArrayList();//reset list
             TimeZone tZone = TimeZone.getDefault();
            System.out.println("Java Date=" +new Date().toString());
            System.out.println("tZone=" +tZone.toString());
          try
                 logger.logEvent(className, "retrieveTimeZone", "Query=" +query);
                  cs = getDBConnection().prepareCall(query);
                  rs = cs.executeQuery();
                  while(rs.next())
                       System.out.println("Oracle through Swing app time="+rs.getString(1));
            catch (SQLException e)
                 logger.logEvent(className, "retrieveLogMonitor", e.toString());
            finally
                 //close connections etc�
        }The output is:
    Java Date=Thu Jun 12 *17:18:57* EDT 2008
    tZone=sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
    Oracle through Swing app time=12 Jun 2008 *21:18:57*
    Thanks!

    Thanks for your help, it got me going in the right direction. It appears that since I'm using an older version of the JDBC driver (the app I�m working on is about 6 years old), there is a discrepancy in time zones. This issue was fixed in version 11 of the JDBC driver. Here�s the code that fixed it:
    TimeZone tZone = TimeZone.getDefault();
    OracleConnection oConn = null;
    try
    oConn = getOracleDBConnection();
                   oConn.setSessionTimeZone(tZone.getID());
                   stmt = oConn.createStatement();
                                                   rs = stmt.executeQuery(query);
              catch( SQLException e )
                   throw new SQLException( "Error running XYZ procedure : " + e.toString());                          }
              catch ( DAOException e )
                   throw new DAOException( "Error running XYZ procedure : " + e.toString());               }         
              finally
                   if ( rs != null ){rs.close();}
                   if ( cs != null ){cs.close();}
                   if ( stmt != null ) {stmt.close();}
                   if(dao != null){dao.close();}
       

  • Are my kernel panics due to the Java Updater (com.oracle.java.Java-Updater) ?

    In the past few months I've been getting more kernel panics than usual. This is on my late 2012 2.3 GHz Intel Core i7 Mac Mini, running OS X Yosemite (OS X 10.2.2) with 16 GB of RAM.
    Looking at the console logs following the last panic, I can see that immediately before the crash, com.oracle.java.Java-Updater had been spamming my log. Here's a sample:
    3/20/15 11:58:45.317 PM com.apple.xpc.launchd[1]: (com.oracle.java.Java-Updater[77795]) Could not find and/or execute program specified by service: 2: No such file or directory: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app/Contents/MacOS/Java Updater
    3/20/15 11:58:45.317 PM com.apple.xpc.launchd[1]: (com.oracle.java.Java-Updater[77795]) Service setup event to handle failure and will not launch until it fires.
    3/20/15 11:58:45.321 PM com.apple.xpc.launchd[1]: (com.oracle.java.Java-Updater[77796]) Could not find and/or execute program specified by service: 2: No such file or directory: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app/Contents/MacOS/Java Updater
    3/20/15 11:58:45.321 PM com.apple.xpc.launchd[1]: (com.oracle.java.Java-Updater[77796]) Service setup event to handle failure and will not launch until it fires.
    # PANIC HAPPENS HERE!
    3/20/15 11:58:46.037 PM sample[77799]: assertion failed: 14C109: libxpc.dylib + 75491 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x8d
    3/20/15 11:58:46.037 PM sample[77799]: assertion failed: 14C109: libxpc.dylib + 34510 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x8d
    3/20/15 11:58:46.065 PM sample[77799]: assertion failed: 14C109: libxpc.dylib + 34510 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x8d
    3/20/15 11:58:47.076 PM sample[77799]: assertion failed: 14C109: libxpc.dylib + 34510 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x8d
    3/20/15 11:59:17.000 PM bootlog[0]: BOOT_TIME 1426910357 0
    3/21/15 12:00:33.000 AM syslogd[17]: Configuration Notice: ASL Module "com.apple.AccountPolicyHelper" claims selected messages. Those messages may not appear in standard system log files or in the ASL database.
    From what it looks like, com.oracle.java.Java-Updater had sent around 77,000 message like this before crapping out.
    I'm out of ideas — both regarding whether Java is actually responsible, and if so what to do. I need Java for a few programs I run, so deleting it isn't an option, unfortunately.
    EtreCheck version: 2.1.8 (121)
    Report generated March 23, 2015 at 2:55:40 PM GMT-4
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        Mac mini (Late 2012) (Technical Specifications)
        Mac mini - model: Macmini6,2
        1 2.3 GHz Intel Core i7 CPU: 4-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 4000
            SME2320 spdisplays_1080p
            DELL ST2320L spdisplays_1080p
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 2 days 14:53:27
    Disk Information: ℹ️
        APPLE HDD HTS541010A9E662 disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 999.35 GB (223.27 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Western Digital My Passport 07A8 1 TB
            EFI (disk1s1) <not mounted> : 210 MB
            Jackie Treehorn (disk1s2) /Volumes/Jackie Treehorn : 999.83 GB (128.88 GB free)
        Apple, Inc. Keyboard Hub
            Apple, Inc Apple Keyboard
        Logitech USB Receiver
        Logitech Logitech Wireless Headset
        Brother HL-5450DN series
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/hosts - Count: 1
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Private Eye.app
        [loaded]    com.radiosilenceapp.nke.PrivateEye (1 - SDK 10.7) [Click for support]
            /Applications/Tunnelblick.app
        [not loaded]    net.tunnelblick.tap (1.0) [Click for support]
        [not loaded]    net.tunnelblick.tun (1.0) [Click for support]
    Startup Items: ℹ️
        ChmodBPF: Path: /Library/StartupItems/ChmodBPF
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [loaded]    com.cisco.anyconnect.gui.plist [Click for support]
        [loaded]    com.citrix.AuthManager_Mac.plist [Click for support]
        [running]    com.citrix.ReceiverHelper.plist [Click for support]
        [running]    com.citrix.ServiceRecords.plist [Click for support]
        [loaded]    com.examsoft.softest.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [unknown]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.barebones.authd.plist [Click for support]
        [running]    com.cisco.anyconnect.vpnagentd.plist [Click for support]
        [running]    com.crashplan.engine.plist [Click for support]
        [loaded]    com.DesignScience.DSMTTool.plist [Click for support]
        [running]    com.edb.launchd.postgresql-9.4.plist [Click for support]
        [running]    com.examsoft.softest.service.plist [Click for support]
        [loaded]    com.github.GitHub.GHInstallCLI.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [unknown]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.radiosilenceapp.nke.PrivateEye.plist [Click for support]
        [failed]    noip2.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
    User Launch Agents: ℹ️
        [failed]    com.adobe.ARM.[...].plist [Click for support] [Click for details]
        [running]    com.ecamm.printopia.plist [Click for support]
        [failed]    com.google.Chrome.framework.plist [Click for support] [Click for details]
        [running]    com.microsoft.LaunchAgent.SyncServicesAgent.plist [Click for support]
        [loaded]    com.valvesoftware.steamclean.plist [Click for support]
        [running]    com.victorpimentel.TVShowsHelper.plist [Click for support]
        [loaded]    net.tunnelblick.tunnelblick.LaunchAtLogin.plist [Click for support]
    User Login Items: ℹ️
        AirPort Base Station Agent    Application  (/System/Library/CoreServices/AirPort Base Station Agent.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        Fantastical    Application  (/Applications/Fantastical.app)
        Google Chrome    Application Hidden (/Applications/Google Chrome.app)
        BetterSnapTool    Application  (/Applications/BetterSnapTool.app)
        CrashPlan menu bar    Application  (/Applications/CrashPlan.app/Contents/Helpers/CrashPlan menu bar.app)
        Music Manager    Application Hidden (/Users/[redacted]/Library/PreferencePanes/MusicManager.prefPane/Contents/Helpe rs/MusicManagerHelper.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        JavaAppletPlugin (1.7.13.20): Version: Java 7 Update 15 [Click for support]
        nplastpass: Version: 2.5.5 [Click for support]
        Unity Web Player: Version: UnityPlayer version 4.3.5f1 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Silverlight: Version: 5.1.20913.0 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        QuickTime Plugin: Version: 7.7.3
        CitrixICAClientPlugIn: Version: 11.8.2 - SDK 10.7 [Click for support]
        SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 [Click for support]
        GarminGpsControl: Version: 4.0.4.0 Release - SDK 10.6 [Click for support]
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        JavaAppletPlugin: Version: Unknown Check version
    Safari Extensions: ℹ️
        LastPass
        Evernote Web Clipper
        Zotero Connector
        Reddit Enhancement Suite
        Page One - Banish Multipage Articles
        Optimize Legibility
        AdBlock
        Footnotify
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        MusicManager  [Click for support]
        Perian  [Click for support]
        Printopia  [Click for support]
        TeXDistPrefPane  [Click for support]
        TVShows  [Click for support]
    Time Machine: ℹ️
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 999.35 GB Disk used: 776.07 GB
        Destinations:
            Jackie Treehorn [Local]
            Total size: 999.83 GB
            Total number of backups: 58
            Oldest backup: 2015-01-13 07:51:57 +0000
            Last backup: 2015-03-21 03:26:26 +0000
            Size of backup disk: Too small
                Backup size 999.83 GB < (Disk used 776.07 GB X 3)
    Top Processes by CPU: ℹ️
            19%    Google Chrome
             6%    WindowServer
             2%    backupd
             1%    Safari
             0%    AppleSpell
    Top Processes by Memory: ℹ️
        1.25 GB    CrashPlanService
        481 MB    softwareupdated
        412 MB    mds_stores
        395 MB    Safari
        223 MB    Google Chrome
    Virtual Memory Information: ℹ️
        6.06 GB    Free RAM
        6.63 GB    Active RAM
        2.92 GB    Inactive RAM
        1.56 GB    Wired RAM
        21.47 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 11:59:31 PM    Self test - passed
        Mar 21, 2015, 12:00:32 AM    /Library/Logs/DiagnosticReports/Kernel_2015-03-21-000032_[redacted].panic [Click for details]
        Mar 21, 2015, 03:36:02 AM    /Library/Logs/DiagnosticReports/CrashPlanService_2015-03-21-033602_[redacted].c pu_resource.diag [Click for details]
        Feb 27, 2015, 11:56:48 PM    /Library/Logs/DiagnosticReports/Kernel_2015-02-27-235648_[redacted].panic [Click for details]

    Here's the kernel panic report:
    Sat Mar 21 00:00:32 2015
    *** Panic Report ***
    panic(cpu 0 caller 0xffffff80255c1694): "launchd died\nState at Last Exception:\n\n"@/SourceCache/xnu/xnu-2782.10.72/bsd/kern/kern_exit.c:361
    Backtrace (CPU 0), Frame : Return Address
    0xffffff820e36be50 : 0xffffff802512fe41
    0xffffff820e36bed0 : 0xffffff80255c1694
    0xffffff820e36bf40 : 0xffffff80255c135c
    0xffffff820e36bf50 : 0xffffff802564b386
    0xffffff820e36bfb0 : 0xffffff8025236e86
    BSD process name corresponding to current thread: launchd
    Mac OS version:
    14C109
    Kernel version:
    Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64
    Kernel UUID: DCF5C2D5-16AE-37F5-B2BE-ED127048DFF5
    Kernel slide:    0x0000000024e00000
    Kernel text base: 0xffffff8025000000
    __HIB  text base: 0xffffff8024f00000
    System model name: Macmini6,2 (Mac-F65AE981FFA204ED)
    System uptime in nanoseconds: 1811035465800191
    last loaded kext at 1717666037079230: com.apple.driver.AppleUSBCDC 4.2.2b5 (addr 0xffffff7fa7956000, size 20480)
    last unloaded kext at 1717726076238694: com.apple.driver.AppleUSBCDC 4.2.2b5 (addr 0xffffff7fa7956000, size 16384)
    loaded kexts:
    com.radiosilenceapp.nke.PrivateEye 1
    com.apple.driver.AppleBluetoothMultitouch 85.3
    com.apple.filesystems.afpfs 11.0
    com.apple.nke.asp-tcp 8.0.0
    com.apple.driver.AGPM 100.15.5
    com.apple.driver.ApplePlatformEnabler 2.1.7d1
    com.apple.driver.X86PlatformShim 1.0.0
    com.apple.filesystems.autofs 3.0
    com.apple.iokit.IOBluetoothSerialManager 4.3.2f6
    com.apple.driver.AppleOSXWatchdog 1
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 269.25
    com.apple.driver.AppleUpstreamUserClient 3.6.1
    com.apple.driver.AppleMCCSControl 1.2.11
    com.apple.driver.AppleMikeyDriver 269.25
    com.apple.iokit.IOUserEthernet 1.0.1
    com.apple.driver.AppleIntelHD4000Graphics 10.0.2
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.3.2f6
    com.apple.driver.AppleSMCPDRC 1.0.0
    com.apple.driver.AudioAUUC 1.70
    com.apple.driver.AppleHV 1
    com.apple.driver.AppleLPC 1.7.3
    com.apple.driver.AppleIntelFramebufferCapri 10.0.2
    com.apple.driver.AppleThunderboltIP 2.0.2
    com.apple.iokit.SCSITaskUserClient 3.7.3
    com.apple.driver.AppleIRController 327.5
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.7.0
    com.apple.driver.AppleSDXC 1.6.5
    com.apple.iokit.AppleBCM5701Ethernet 10.1.3
    com.apple.driver.AppleUSBHub 705.4.2
    com.apple.driver.AirPort.Brcm4360 910.26.12
    com.apple.driver.AppleFWOHCI 5.5.2
    com.apple.driver.AppleAHCIPort 3.1.0
    com.apple.driver.AppleUSBEHCI 705.4.14
    com.apple.driver.AppleUSBXHCI 710.4.11
    com.apple.driver.AppleACPIButtons 3.1
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleSMBIOS 2.1
    com.apple.driver.AppleACPIEC 3.1
    com.apple.driver.AppleAPIC 1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient 218.0.0
    com.apple.nke.applicationfirewall 161
    com.apple.security.quarantine 3
    com.apple.security.TMSafetyNet 8
    com.apple.driver.AppleIntelCPUPowerManagement 218.0.0
    com.apple.driver.IOBluetoothHIDDriver 4.3.2f6
    com.apple.driver.AppleMultitouchDriver 262.33.1
    com.apple.security.SecureRemotePassword 1.0
    com.apple.kext.triggers 1.0
    com.apple.iokit.IOSerialFamily 11
    com.apple.driver.DspFuncLib 269.25
    com.apple.kext.OSvKernDSPLib 1.15
    com.apple.iokit.IOSurface 97
    com.apple.driver.AppleSMBusController 1.0.13d1
    com.apple.iokit.IOFireWireIP 2.2.6
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.3.2f6
    com.apple.iokit.IOBluetoothFamily 4.3.2f6
    com.apple.driver.AppleHDAController 269.25
    com.apple.iokit.IOHDAFamily 269.25
    com.apple.iokit.IOUSBUserClient 705.4.0
    com.apple.driver.AppleSMBusPCI 1.0.12d1
    com.apple.driver.X86PlatformPlugin 1.0.0
    com.apple.driver.AppleSMC 3.1.9
    com.apple.driver.IOPlatformPluginFamily 5.8.1d38
    com.apple.iokit.IONDRVSupport 2.4.1
    com.apple.iokit.IOAcceleratorFamily2 156.6
    com.apple.AppleGraphicsDeviceControl 3.8.6
    com.apple.iokit.IOGraphicsFamily 2.4.1
    com.apple.driver.AppleUSBHIDKeyboard 176.2
    com.apple.driver.AppleHIDKeyboard 176.2
    com.apple.driver.AppleUSBAudio 295.23
    com.apple.iokit.IOAudioFamily 203.3
    com.apple.vecLib.kext 1.2.0
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.7.3
    com.apple.iokit.IOUSBMassStorageClass 3.7.1
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.7.3
    com.apple.driver.AppleUSBMergeNub 705.4.0
    com.apple.iokit.IOUSBHIDDriver 705.4.0
    com.apple.driver.AppleUSBComposite 705.4.9
    com.apple.driver.AppleThunderboltDPInAdapter 4.0.6
    com.apple.driver.AppleThunderboltDPAdapterFamily 4.0.6
    com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
    com.apple.driver.AppleThunderboltNHI 3.1.7
    com.apple.iokit.IOThunderboltFamily 4.2.1
    com.apple.iokit.IOEthernetAVBController 1.0.3b3
    com.apple.iokit.IO80211Family 710.55
    com.apple.driver.mDNSOffloadUserClient 1.0.1b8
    com.apple.iokit.IONetworkingFamily 3.2
    com.apple.iokit.IOFireWireFamily 4.5.6
    com.apple.iokit.IOAHCIFamily 2.7.5
    com.apple.iokit.IOUSBFamily 710.4.14
    com.apple.driver.AppleEFINVRAM 2.0
    com.apple.driver.AppleEFIRuntime 2.0
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 300.0
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.AppleMobileFileIntegrity 1.0.5
    com.apple.driver.AppleCredentialManager 1.0
    com.apple.driver.DiskImages 396
    com.apple.iokit.IOStorageFamily 2.0
    com.apple.iokit.IOReportFamily 31
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleACPIPlatform 3.1
    com.apple.iokit.IOPCIFamily 2.9
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0
    com.apple.kec.Libm 1
    com.apple.kec.pthread 1
    System Profile:
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10E), Broadcom BCM43xx 1.0 (7.15.159.13.12)
    Bluetooth: Version 4.3.2f6 15235, 3 services, 27 devices, 1 incoming serial ports
    Thunderbolt Bus: Mac mini, Apple Inc., 23.4
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464544
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464544
    USB Device: My Passport 07A8
    USB Device: Hub
    USB Device: USB 2.0 Hub [MTT]
    USB Device: Keyboard Hub
    USB Device: Apple Keyboard
    USB Device: Miscellaneous Device
    USB Device: USB Receiver
    USB Device: Logitech Wireless Headset
    USB Device: Hub
    USB Device: HL-5450DN series
    USB Device: Hub
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: IR Receiver
    Serial ATA Device: APPLE HDD HTS541010A9E662, 1 TB
    Model: Macmini6,2, BootROM MM61.0106.B03, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 2.8f0
    Network Service: Wi-Fi, AirPort, en1
    Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In

  • Was asked to install Oracle Java 8 and now after LibreOffice asked for Apple Java 6

    Hello,
    a few weeks ago I was told by a webpage I need java, it was a movie site, so I was doubting it and so I went to the oracle page via google search and found Java 8 (jre 8u40-macosx-x64).
    Today I installed LibreOffice and after first opening ittold me, that I need Java 6 and asked, if I want to search for it. I let it search. There was not the usual browser window -like thing (which I guess is the App-store, where I am offered to upgrade to 10.10 for free and told that there are 4 incompatible updates for iLife products available). Instead it was just a small progress-bar window that had the title "apple software update" (or similar).
    I then quit it, because it was not making progress.
    Now I close LibreOffice and then thought "well lets install Java 6", but this time I was not asked to install it. Also "apple software update" doesn't offer it, when I launch the blue "A"-icon (i.e. Appstore?).
    What do I need? Should I delete Java 8? How do I get Java 6?
    I found this, but it doesn't help me: http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-preferences.html and Apple Java Vs Oracle Java? Do I need both?
    THANKS!!!
    Machine: Mac Mini 2012, 10.9.5

    Thank you! In the meantime I found that item labeled as "2014-001" on the apple.support page.
    It mentions that it will remove all Java web applet and that there was a certain button one has to push to install it. I don't find the button "missing plugin" (well maybe that will come once it is needed?)
    Can Apple J6 and Oracle J8 coexist?
    From the fact that apple's J misses the web applet, I guess they will complement each other right?
    Also, am I right, that, if I go to Safari/Firefox -> Security I can disable Java for web stuff (but it will be still intact for Java applications like LibreOffice) and once I will encounter a webpage that wants Java, I will be told and can activate it in Safari/Firefox -> Security ? (Since I guess it is better to disable Java on the web???)
    Will the web sites always tell me, if they need Java or will pages not work and I will wonder why?

  • So I can update my Oracle Java Applet Plug-in to Development Kit 7, Update 65, can you link me to the correct Oracle download page from your Plugin Update page?

    When I periodically accessed your Plugin Check and Updates web page in the past, I really appreciated you connecting me to the correct Plugin Updates vendor web page when I clicked on your red Update Now button. This time, however, your Java Applet Plug-in "Update Now" button linked me to the Oracle Java "7u65 Updates Release Notes" instead of the usual download page. It seems rather unexpected for me, or any other conscientious user for that matter, to search the appropriate "JDK 7U65" file download from the Oracle website.
    Thank you,

    This is getting way too complicated for normal peop.
    First: the "Update Plugin" does not work, it goes to a page with all sort of computer jargon but no "Update button" anywhere.
    Second: this forum jscher2000 gives a good solution, but I downloaded the incorrect java update, because my computer is 64 bit. how am I supposed to know my browser is what it refers to and that FF is 32 bit.....???$%^&*()??
    Third: some of those "critical update" software are not even on my computer....well at least I don't think it is, I search for "shockwave" and did not find it.
    I love Moz FF but the updating is starting to get out of control. why give us (computer idiot) an auto recommendation update not tailored to our computer? Perhaps in big letters at the top there should be an explanation "this is general suggestion these plugin needs updating, not to tailored with your computer, do your own research"
    and/or add info I need to know like the 32 bit thing, took me forever to download the 64bit update for JAVA and it was the wrong one.
    Now I am just afraid to update anything for FF because it is too darn confusing.

  • Oracle Java Compiler 11g - JVM ERROR

    Hi Jdev Team,
    I have an issue to report,
    Sometimes when run a project and navigate through the pages, i get the following error message:
    Oracle Java Compiler 11g
    Unable to create an instance of the Java Virtual Machine
    Located at path:
    H:\jdevstudio1111\jdk\jre\bin\client\jvm.dll
    The only way to solve this is delete the settings of the Jdev and the Jdev from the PC, and install again, with the associated waste of time as consecuence. Please you can give a light to resolve this issue? Thanks
    Well i correct what i just said.
    The problem doesn´t fix, with the erase of the jdev program folder or settings folder in windows user docs and settings. What else i can do!?, out of ideas in here.
    Regards,
    Leo
    Message was edited by:
    LCJ

    Solution (workaround):
    Re: ADF table and filtering
    Pedja

  • Problems with installing Oracle java or reinstalling Apple Java

    Hi all,
    I need Java for an online government course I'm taking. A 'technical test' available tells me that my java is out of date. I am directed by the course software to download Oracle Java for Mac, version 8u45.
    I'm running Mac OSX 10.7.5, but I suspect my computer originally ran Snow Leopard, prior to a laptop upgrade by a well-intentioned friend. The computer is from early 2009.
    When I downloaded Java 8u45, I could see the Java icon in the System Preferences pane, but when I clicked on it I got a window announcing a Java Control panel...that I could never open. Hence I could never adjust any security settings to allow the website in question to run.
    I see that Oracle Java needs 64-bit browsers, and mine are 32-bit - maybe this is linked to the problem?. Though when I uninstalled 8u45 and tried to download Apple Java (for OSX 2014-001) and went to my plugins in Firefox, I was promptly told they were unsecure and directed to an update of, you guessed it, Oracle Java 8u45.
    Any ideas? I don't feel great messing around with Java stuff with my limited knowledge.
    Cheers
    Emma

    Hi Elmar,
    have u found any errors , or warnings in the detailed log while installation?.
    i think from the detailed log , we will get what has happened during installation.
    some errors might have happened at the time of creation of this  table DAV_PROPERTY.
    just try to stop the installation and start new one.
    if its again stucked in the same step ..
    i think the Max DB installation has finished.
    u can start reinstallation by deleting this table  from data base ..try this..
    details about this are in the link
    Re: How can I delete workspacefolder from DTR
                                 regards
                                   Kishor Gopinathan

  • Java 8: Pb with new java.time api

    Hello,
    I'm trying to use the new java.time api that comes with Java 8 (I already know joda-time).
    I'm using the latest build B124.
    I've a String "01/08/2012_00:00:01", I know that the time ref. is UTC, and I want to convert it to an 'Instant';
    I tried:
    DateTimeFormatter FORMAT_DT = DateTimeFormatter.ofPattern("dd/MM/yyyy_HH:mm:ss").withZone(ZoneOffset.UTC);
    Instant instant = Instant.from(FORMAT_DT.parse("01/08/2012_00:00:01"));
    But it fails with following error:
    java.time.DateTimeException: Unable to obtain Instant from TemporalAccessor: {},ISO resolved to 2012-08-01T00:00:01 of type java.time.format.Parsed
         at java.time.Instant.from(Unknown Source)
    I don't understand what's wrong with my code, and I can't figure out how I should proceed to convert the String to an Instant ...
    Any suggestion welcome,
    Best regards,
    Bernard.

    Originally you stated this:
    I don't understand what's wrong with my code,
    So naturally we focused on how to "understand what's wrong' with your code.
    You will never learn to troubleshoot problems if you just throw your hands up in the air and ask for help just because a complex series of steps doesn't complete successfully. 
    Break the process into its individual steps and check the results of each step to identify which step is FIRST producing an error.
    When a complex or multi-step process has an error you start checking the individual steps of the process to see how far it gets successfully.
    I would expect that converting a String to an Instant should be a basic/simple need, so it should be possible to do it in two lines of code; for the time being, the only way I found is to use a LocalDateTime intermediate variable, which seems quite verbose, and I'm wondering if someone knows a better way to do it, and would be willing to share it here.
    Just a technical distinction: your latest example using a LocalDateTime intermediate variable CAN be done in one line of code by just using dot-notation to avoid creating an explicit intermediate variable. But that variable will still be created implicitly behind the scenes.
    Converting a String to an Instant might be considered a basic/simple need but the set of functionality related to dealing with times, dates, calendars, etc is extremely complex. It makes much more sense to develop the requisite functionality in modules.
    Especially when introducing new functionality such as the 'Instant' class are related package elements introduced in 1.8. That functionality builds on what came before and parsers already existing that know how to deal with all of the possible String variants and formatting options and so on.
    Since that work CAN BE done on-the-fly using dot notation and anonymous implicit intermediate classes there isn't much need to reinvent that functionality in the new classes. If certain uses become standard new methods can always be added (e.g. to the Instant class) that will 'appear' to do things in one step.
    And, being an early adopter release, you can always file a 'bug' or enhancement request from the 1.8 download page. That page has links for 'Report Bugs' and 'Feedback forum' that you can use.
    In this current forum no one can give you an 'official' answer as to why something was implemented a particular way and/or whether that implementation is a 'bug' or was designed to work that way. Only Oracle can do that.

  • Using java.time.LocalDate class

    Hello,
    I am using the latest JDK8 build b87 and JDeveloper 11.1.2.1. In the editor, the code insight does not show the java.time.LocalDate class. When I use the LocalDate class, it is highlighted in red. However, I can compile and run the application fine. Other classes in the java.time package, for example, the Clock class is fine. I can use classes from the java.time subpackages fine. How can I fix this issue?
    Thanks
    Kishori

    JDeveloper does not support JDK 8 as indicated by the certification matrix.
    http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html
    java.time.LocalDate being a new class, code insight does not support the class.

  • [ANN] Don't miss the next edition of the Oracle Java Newsletter

    Register now to get the next edition of the monthly Oracle Java Newsletter with technical articles and a summary of Java related news.
    Sign up now at:
    http://www.oracle.com/go/?&Src=1952635&Act=34

    Maran Viswarayar wrote:
    Stuck with work man.....Pretty busy nowadays after long time.. :)Come on! Its in September :-) . Put a leave application right now and am surely it would be approved by then ;-) . I am also totally occupied in travels, sessions , not sure what would happen for me too!
    Aman....

  • IE11 Keep Redirecting to Oracle Java Download Site

    I am running a page that launches a Java Webstart app and a Java Applet. I don't have problem launching this page in Firefox, but I have to run it in IE11. The thing is IE11 keep redirecting me to oracle java download site. I have install Java RE like 3 times from IE already. What am I missing?

    I am running a page that launches a Java Webstart app and a Java Applet. I don't have problem launching this page in Firefox, but I have to run it in IE11. The thing is IE11 keep redirecting me to oracle java download site. I have install Java RE like 3 times from IE already. What am I missing?
    Have you set the version of Java that you want used?
    See this thread:
    http://stackoverflow.com/questions/71254/force-internet-explorer-to-use-a-specific-java-runtime-environment-install

  • Cannot open Photoshop: get error: To open "Adobe Photoshop CS5.app," you need a Java SE 6 runtime. Would you like to install one now?  However installing Java SE 6 runtime does not fix nor does installing Oracle Java SE 7. Adobe says Apple is problem.

    Searching the internet for solutions to this and some discussion with Adobe.
    Adobe say Photoshop does not use java so it should not be asking for a java runtime.
    The question is how can I stop Photoshop asking to install java since Photoshop does not need or use Java to run?
    Found various links that might be helpful:
    http://apple.stackexchange.com/questions/58203/mountain-lion-with-java -7-only/58841#58841,
    Work around for app that asks fo SE 6 when SE 7 is installed
    Running Java Apps on OS X with Only JRE 7
    How OS X determines an app needs Java,
    Installing & Deinstalling Java SE 6 & SE 7, http://helpx.adobe.com/x-productkb/global/install-java-jre-mac-os.html
    Adobe's Installing Java SE 6
    Java Mac Security and Background to SE 6 to SE 7 Changes
    Java 7 & OS X
    Known Issues with Adobe Software on OS X Lion
    Adobe's Installing Java SE 6

    However as I have Oracle Java SE 7 installed and SE 6  is deprecated and no longer supported for security reasons.
    Apple is actually responsible for Java 6's security. They take Oracle's code and do whatever is needed to make it compatible with Apple's OS. Java 6 is still getting security updates from Apple. Versions 6 and 7 can also exist on the same drive. They won't interfere with each other.
    Also I am assured in no uncertain terms by Chris Cox over at Adobe that Photoshop CS 5 does not use java at all and that the java error message  and so called dependency is just an error on the part of Apple.
    I did find a topic where Chris stated that for CS6, which I know is true. I've installed CS6 (and CC) on a newly formatted drive in Mountain Lion, and neither made any mention of requiring Java. Could have sworn CS5.5 and earlier did you Java for a few functions. Though I likely only assumed that since that version and earlier always causes a prompt to install Java if it isn't already on the drive.
    So is there any way to run Photoshop with SE 7 only installed or even better with no java installed?
    It doesn't really matter much if Java is installed. Java 6 should put an app in the Utilities folder by the name of Java Preferences. Open that, and you can completely disable it by undoing the check boxes.
    Perhaps there is a way to make OS X stop thinking it needs java SE 6 to run Photoshop CS 5.
    Apple would have to make a change to the OS itself. It's a not a user accessible setting.

  • Application deployed on Oracle Java Cloud Service - SaaS Extension is not connecting with cloud database.

    Hello Experts,
    I have deployed an ADF application on Oracle Java Cloud Service - SaaS Extension and also deployed database objects from local environment to cloud using JDeveloper. I can see the cloud database has tables and data which I have deployed but when I access the application it seems it is not able to connect with cloud database.
    I have followed below document and same sample application (HRSystem). 
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/JDeveloperPart1/jdeveloperPart1.html
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/JDeveloperPart2/jdeveloperPart2.html
    Please guide me what can be the issue.
    Regards
    Gulam Dyer

    Hi,
    Can you give us more details about your issue? Any error messages?
    Thanks,
    Bogdan

  • Oracle Java 7 in 32bit chroot

    Is anyone able to launch java applets using Oracle Java 7 and Firefox in a 32bit chroot environment?
    Whenever I browse to any site which opens a Java applet I instantly get the following exception:
    java.lang.NullPointerException
        at java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:119)
        at java.lang.ProcessEnvironment.access$400(ProcessEnvironment.java:61)
        at java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:202)
        at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:241)
        at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:220)
        at sun.plugin2.jvm.JVMLauncher.start(Unknown Source)
        at sun.plugin2.main.server.JVMInstance.startImpl(Unknown Source)
        at sun.plugin2.main.server.JVMInstance.start(Unknown Source)
        at sun.plugin2.main.server.JVMManager.getOrCreateBestJVMInstance(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startAppletImpl(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
        at sun.plugin2.main.server.MozillaPlugin.maybeStartApplet(Unknown Source)
        at sun.plugin2.main.server.MozillaPlugin.setWindow(Unknown Source)
    Exception in thread "main" java.lang.NullPointerException
        at java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:119)
        at java.lang.ProcessEnvironment.access$400(ProcessEnvironment.java:61)
        at java.lang.ProcessEnvironment$Value.valueOf(ProcessEnvironment.java:202)
        at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:241)
        at java.lang.ProcessEnvironment$StringEnvironment.put(ProcessEnvironment.java:220)
        at sun.plugin2.jvm.JVMLauncher.start(Unknown Source)
        at sun.plugin2.main.server.JVMInstance.startImpl(Unknown Source)
        at sun.plugin2.main.server.JVMInstance.start(Unknown Source)
        at sun.plugin2.main.server.JVMManager.getOrCreateBestJVMInstance(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startAppletImpl(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
        at sun.plugin2.main.server.JVMManager.startApplet(Unknown Source)
        at sun.plugin2.main.server.MozillaPlugin.maybeStartApplet(Unknown Source)
        at sun.plugin2.main.server.MozillaPlugin.setWindow(Unknown Source)
    I have installed jdk from AUR. I have my 32bit chroot environment set up exactly at described on the wiki.
    This error only happens when I set LD_LIBRARY_PATH=/opt/java/jre/lib/i386 before launching Firefox. But without this, the libraries aren't found. For example, in the Java console I see errors like:
    libjawt.so. No such file or directory
    I've spent ages searching but I can't find a solution.

    Download the tar.gz installer and untar it to a location like /opt.
    Once you untar the archive, add the bin directory to your PATH variable and your should be all set to use it from the terminal.
    OR use sudo update-alternatives to set the java command to pick up your installed version.

  • Oracle java XML API - extract

    I am using XML oracle Java API, I need to extract tge DOC value, its not working for me
    XMLTYPE xml ="
    <PurchaseOrder>
    <Reference>ADAMS-20011127121040988PST</Reference>
    <DOC>SCOTT</DOC>
    <Date>2002-03-31</Date>
    </PurchaseOrder>";
    System.out.println("Testing extract() ...");
    try {
    System.out.println(" length of text in DOC tag " + (xml.extract("/PurchaseOrder/Reference/DOC/text()",null).getStringVal()));
    catch (SQLException e) {
    System.out.println("Thin driver Expected exception: " + e);
    Throwing java.sql.SQLException
    any help please? is there anyother way to extract the value?

    I guess this might help you..
    Use XPATH if you are reading for a single value in xml .
    It will be more cleaner...
    String doc= "//PurchaseOrder/Reference/DOC/text()";
    Call this in your class using some value
    Suppose
    setting_to_some_variable.setWhateverDoc(getNodeValueFromDocUsingXPath(doc));
              address
    private String getNodeValueFromDocUsingXPath(String xpathString) {
              try {
                   XPath xpath = xPathFactory.newXPath();
                   XPathExpression expr = xpath.compile(xpathString);
                   Node aNode = (Node) expr.evaluate(doc, XPathConstants.NODE);
                   if (aNode != null) {
                        return aNode.getNodeValue();
              } catch (XPathExpressionException xpe) {
                   xpe.printStackTrace(System.out);
              return null;
         }

Maybe you are looking for

  • Error while extracting the data

    Hi All, i am facing a problem while loading the data from the flat file to the DSO. i am working on BI 7. data is loaded to psa but all columns com under the one column. like this    10, jjj, a10, m10, s10, n. i know that i had made a mistake pls hel

  • How can you tell what users have which reports open in Infoview

    Hi! In Crystal Server XI, is there any way that you can see what reports are currently being viewed in Infoview and by what user?  Or a history of how many times a report has been viewed so that I can tell which reports are not used that often and ma

  • Foreign language Voices - Mandarin Chinese

    Hi, Was wondering if anyone has a Mandarin Chinese voice compatible with Voice-Over and other programs on the Mac.... I have a sight-impared friend who gets email in Chinese - it would be fantastic if he could hear them being read!! regards Gareth

  • How to copy outline for ASO...

    Hi... i have a sample(BSO) application which is contains very large members in outline..Now i want the same outline for another application which is New sampleASO(ASO) application.So that,i have tried to copy/save as the outline....but i am not able

  • Adobe Premiere 13- internal software error during disc burn

    Hello, I have a MacBookPro, 10.9.3 2.66 GHz 8gb I am using Adobe Premiere 13 to burn a Elementary School Memory DVD. I finished the creative portion of my dvd project, rendered the project and then burned a dvd successfully. Upon playing it, realized