Log File on Desktop From Java HotSpot

A colleague's PC has a log file on the desktop, created 28th October. Its title: 'hs_err_pid3268.log'
Initially we were both concerned since Kaspersky had detected some viruses on his machine on it's nightly scan, however, looking at the log file I'm not sure whether to be worried or not! - It looks legitimate, if a bit odd...
If somebody more knowledgeable could tell me firstly if it's anything sinister and secondly (if not) what may have cause it and whether it's an issue I should investigate on this machine.
Thanks in advance, below is the contents of the text file. (As you can see I'm brand new to these forums, apologies if this is not the correct section for these kind of questions).
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d5ecb6d, pid=3268, tid=2164
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode windows-x86)
# Problematic frame:
# C 0x6d5ecb6d
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x0e2fc400): JavaThread "Headspace mixer frame proc thread" daemon [_thread_in_native, id=2164, stack(0x0e250000,0x0e2a0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x6d5ecb6d
Registers:
EAX=0x0e19aa10, EBX=0x0e18b8a2, ECX=0x00000080, EDX=0x6d5ecb6d
ESP=0x0e29f740, EBP=0x0e29f788, ESI=0x00000080, EDI=0x0e18dda8
EIP=0x6d5ecb6d, EFLAGS=0x00010202
Top of Stack: (sp=0x0e29f740)
0x0e29f740: 6d52ac78 0e2fc514 0e18dda8 00000000
0x0e29f750: 0e2f0000 00000000 00000080 00000000
0x0e29f760: 0e18dda8 00000000 0001af00 0001af00
0x0e29f770: 002c6fe0 00000000 0e2f0000 0e100000
0x0e29f780: 00000000 000021f8 0e2fc514 6d52b745
0x0e29f790: 0e2fc514 80002d5a 0e2fc514 00000200
0x0e29f7a0: 002c6fe0 0e29f7c0 00000000 00000010
0x0e29f7b0: 6d52e6c0 0e2fc514 002c6fe0 00000000
Instructions: (pc=0x6d5ecb6d)
0x6d5ecb5d:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]
Stack: [0x0e250000,0x0e2a0000], sp=0x0e29f740, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x6d5ecb6d
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.media.sound.MixerThread.runNative(J)V+0
j com.sun.media.sound.MixerThread.run()V+5
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x0e2fc400 JavaThread "Headspace mixer frame proc thread" daemon [_thread_in_native, id=2164, stack(0x0e250000,0x0e2a0000)]
0x0e2fc000 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=1604, stack(0x0e0b0000,0x0e100000)]
0x0e2fb800 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=3748, stack(0x0dea0000,0x0def0000)]
0x0c625c00 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=4796, stack(0x0dda0000,0x0ddf0000)]
0x0c628400 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=5976, stack(0x0dd00000,0x0dd50000)]
0x0c628000 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=3688, stack(0x0dcb0000,0x0dd00000)]
0x0c627800 JavaThread "Thread-12" [_thread_blocked, id=5696, stack(0x0dbc0000,0x0dc10000)]
0x0c627400 JavaThread "Thread-10" [_thread_blocked, id=3600, stack(0x0db70000,0x0dbc0000)]
0x0c627000 JavaThread "thread applet-vmain.class-4" [_thread_blocked, id=3184, stack(0x0db20000,0x0db70000)]
0x0c626800 JavaThread "Thread-11" [_thread_blocked, id=3308, stack(0x0dad0000,0x0db20000)]
0x0c626400 JavaThread "Thread-9" [_thread_blocked, id=888, stack(0x0da80000,0x0dad0000)]
0x0c625800 JavaThread "thread applet-vmain.class-2" [_thread_blocked, id=3848, stack(0x0df30000,0x0df80000)]
0x0c624c00 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=3588, stack(0x0d9e0000,0x0da30000)]
0x0c624400 JavaThread "AWT-EventQueue-5" [_thread_blocked, id=3932, stack(0x0d990000,0x0d9e0000)]
0x0c624000 JavaThread "Applet 4 LiveConnect Worker Thread" [_thread_blocked, id=5964, stack(0x0d940000,0x0d990000)]
0x0c623000 JavaThread "AWT-EventQueue-4" [_thread_blocked, id=824, stack(0x0d8f0000,0x0d940000)]
0x0c623c00 JavaThread "Applet 3 LiveConnect Worker Thread" [_thread_blocked, id=4600, stack(0x0d850000,0x0d8a0000)]
0x0c623400 JavaThread "AWT-EventQueue-3" [_thread_blocked, id=3516, stack(0x0d8a0000,0x0d8f0000)]
0x0c621c00 JavaThread "Applet 2 LiveConnect Worker Thread" [_thread_blocked, id=4528, stack(0x0d7b0000,0x0d800000)]
0x0c622800 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=5296, stack(0x0d800000,0x0d850000)]
0x0c622400 JavaThread "Applet 1 LiveConnect Worker Thread" [_thread_blocked, id=3788, stack(0x0d0e0000,0x0d130000)]
0x0c621800 JavaThread "Browser Side Object Cleanup Thread" [_thread_blocked, id=1152, stack(0x0d760000,0x0d7b0000)]
0x0c621000 JavaThread "Windows Tray Icon Thread" [_thread_in_native, id=5244, stack(0x0d470000,0x0d4c0000)]
0x0c620c00 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=5136, stack(0x0d420000,0x0d470000)]
0x0c618000 JavaThread "CacheMemoryCleanUpThread" daemon [_thread_blocked, id=3540, stack(0x0d3d0000,0x0d420000)]
0x0c617000 JavaThread "Java Plug-In Heartbeat Thread" [_thread_blocked, id=3532, stack(0x0d380000,0x0d3d0000)]
0x0c616c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2044, stack(0x0d130000,0x0d180000)]
0x0c609800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4612, stack(0x0d090000,0x0d0e0000)]
0x0c606000 JavaThread "AWT-Shutdown" [_thread_blocked, id=5280, stack(0x0cbc0000,0x0cc10000)]
0x0c605800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5408, stack(0x0ca00000,0x0ca50000)]
0x022ff800 JavaThread "Java Plug-In Pipe Worker Thread (Client-Side)" [_thread_in_native, id=2340, stack(0x0c9b0000,0x0ca00000)]
0x022bc000 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3872, stack(0x0c8d0000,0x0c920000)]
0x0c5c0400 JavaThread "Timer-0" [_thread_blocked, id=6076, stack(0x0c880000,0x0c8d0000)]
0x022b4000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2036, stack(0x0c4e0000,0x0c530000)]
0x022adc00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3908, stack(0x0c490000,0x0c4e0000)]
0x022ab800 JavaThread "Attach Listener" daemon [_thread_blocked, id=1768, stack(0x0c440000,0x0c490000)]
0x022a0c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5708, stack(0x0c3f0000,0x0c440000)]
0x02291000 JavaThread "Finalizer" daemon [_thread_blocked, id=4484, stack(0x0c3a0000,0x0c3f0000)]
0x0228c800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4220, stack(0x02300000,0x02350000)]
0x02399800 JavaThread "main" [_thread_blocked, id=3472, stack(0x008c0000,0x00910000)]
Other Threads:
0x02287400 VMThread [stack: 0x01a30000,0x01a80000] [id=5028]
0x022b5400 WatcherThread [stack: 0x0c530000,0x0c580000] [id=5604]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 251K [0x043a0000, 0x044a0000, 0x04880000)
eden space 896K, 20% used [0x043a0000, 0x043cec30, 0x04480000)
from space 64K, 100% used [0x04480000, 0x04490000, 0x04490000)
to space 64K, 0% used [0x04490000, 0x04490000, 0x044a0000)
tenured generation total 4096K, used 1436K [0x04880000, 0x04c80000, 0x083a0000)
the space 4096K, 35% used [0x04880000, 0x049e7130, 0x049e7200, 0x04c80000)
compacting perm gen total 12288K, used 10102K [0x083a0000, 0x08fa0000, 0x0c3a0000)
the space 12288K, 82% used [0x083a0000, 0x08d7da68, 0x08d7dc00, 0x08fa0000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x00424000      C:\Program Files\Java\jre6\bin\java.exe
0x77190000 - 0x772b7000      C:\Windows\system32\ntdll.dll
0x75950000 - 0x75a2c000      C:\Windows\system32\kernel32.dll
0x770c0000 - 0x77186000      C:\Windows\system32\ADVAPI32.dll
0x761e0000 - 0x762a3000      C:\Windows\system32\RPCRT4.dll
0x724d0000 - 0x724ee000      C:\Windows\system32\ShimEng.dll
0x75670000 - 0x7569c000      C:\Windows\system32\apphelp.dll
0x6acf0000 - 0x6ad78000      C:\Windows\AppPatch\AcLayers.DLL
0x77350000 - 0x773ed000      C:\Windows\system32\USER32.dll
0x75d60000 - 0x75dab000      C:\Windows\system32\GDI32.dll
0x76460000 - 0x76f70000      C:\Windows\system32\SHELL32.dll
0x762c0000 - 0x7636a000      C:\Windows\system32\msvcrt.dll
0x758f0000 - 0x75949000      C:\Windows\system32\SHLWAPI.dll
0x76f70000 - 0x770b5000      C:\Windows\system32\ole32.dll
0x75ac0000 - 0x75b4d000      C:\Windows\system32\OLEAUT32.dll
0x756f0000 - 0x7570e000      C:\Windows\system32\USERENV.dll
0x756d0000 - 0x756e4000      C:\Windows\system32\Secur32.dll
0x72b00000 - 0x72b42000      C:\Windows\system32\WINSPOOL.DRV
0x750e0000 - 0x750f4000      C:\Windows\system32\MPR.dll
0x758d0000 - 0x758ee000      C:\Windows\system32\IMM32.DLL
0x75db0000 - 0x75e78000      C:\Windows\system32\MSCTF.dll
0x762b0000 - 0x762b9000      C:\Windows\system32\LPK.DLL
0x75a30000 - 0x75aad000      C:\Windows\system32\USP10.dll
0x10000000 - 0x10011000      C:\PROGRA~1\KASPER~1\KASPER~1.0FO\r3hook.dll
0x75830000 - 0x75837000      C:\Windows\system32\PSAPI.DLL
0x752d0000 - 0x7546e000      C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll
0x7c340000 - 0x7c396000      C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da56000      C:\Program Files\Java\jre6\bin\client\jvm.dll
0x74200000 - 0x74232000      C:\Windows\system32\WINMM.dll
0x741c0000 - 0x741f9000      C:\Windows\system32\OLEACC.dll
0x6d280000 - 0x6d288000      C:\Program Files\Java\jre6\bin\hpi.dll
0x6d7b0000 - 0x6d7bc000      C:\Program Files\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000      C:\Program Files\Java\jre6\bin\java.dll
0x6d7f0000 - 0x6d7ff000      C:\Program Files\Java\jre6\bin\zip.dll
0x6d430000 - 0x6d436000      C:\Program Files\Java\jre6\bin\jp2native.dll
0x6d1c0000 - 0x6d1d3000      C:\Program Files\Java\jre6\bin\deploy.dll
0x74fe0000 - 0x750d2000      C:\Windows\system32\CRYPT32.dll
0x75140000 - 0x75152000      C:\Windows\system32\MSASN1.dll
0x76370000 - 0x76456000      C:\Windows\system32\WININET.dll
0x00950000 - 0x00953000      C:\Windows\system32\Normaliz.dll
0x75e80000 - 0x75fb3000      C:\Windows\system32\urlmon.dll
0x75fc0000 - 0x761a8000      C:\Windows\system32\iertutil.dll
0x6d6b0000 - 0x6d6f2000      C:\Program Files\Java\jre6\bin\regutils.dll
0x749a0000 - 0x749a8000      C:\Windows\system32\VERSION.dll
0x6ee30000 - 0x6f057000      C:\Windows\system32\msi.dll
0x6d610000 - 0x6d623000      C:\Program Files\Java\jre6\bin\net.dll
0x77320000 - 0x7734d000      C:\Windows\system32\WS2_32.dll
0x75ab0000 - 0x75ab6000      C:\Windows\system32\NSI.dll
0x74cc0000 - 0x74cfb000      C:\Windows\system32\mswsock.dll
0x74d30000 - 0x74d35000      C:\Windows\System32\wship6.dll
0x6d630000 - 0x6d639000      C:\Program Files\Java\jre6\bin\nio.dll
0x6d000000 - 0x6d138000      C:\Program Files\Java\jre6\bin\awt.dll
0x746a0000 - 0x746ac000      C:\Windows\system32\DWMAPI.DLL
0x746e0000 - 0x7471f000      C:\Windows\system32\uxtheme.dll
0x6d220000 - 0x6d274000      C:\Program Files\Java\jre6\bin\fontmanager.dll
0x74980000 - 0x74985000      C:\Windows\System32\wshtcpip.dll
0x74620000 - 0x7462f000      C:\Windows\system32\NLAapi.dll
0x74f40000 - 0x74f59000      C:\Windows\system32\IPHLPAPI.DLL
0x74f00000 - 0x74f35000      C:\Windows\system32\dhcpcsvc.DLL
0x75220000 - 0x7524c000      C:\Windows\system32\DNSAPI.dll
0x74ee0000 - 0x74ee7000      C:\Windows\system32\WINNSI.DLL
0x74eb0000 - 0x74ed2000      C:\Windows\system32\dhcpcsvc6.DLL
0x736e0000 - 0x736ef000      C:\Windows\system32\napinsp.dll
0x73150000 - 0x73162000      C:\Windows\system32\pnrpnsp.dll
0x736d0000 - 0x736d8000      C:\Windows\System32\winrnr.dll
0x772d0000 - 0x77319000      C:\Windows\system32\WLDAP32.dll
0x73d20000 - 0x73d26000      C:\Windows\system32\rasadhlp.dll
0x74a70000 - 0x74aab000      C:\Windows\system32\rsaenh.dll
0x6d520000 - 0x6d544000      C:\Program Files\Java\jre6\bin\jsound.dll
0x6d550000 - 0x6d558000      C:\Program Files\Java\jre6\bin\jsoundds.dll
0x74110000 - 0x74180000      C:\Windows\system32\DSOUND.dll
0x74a00000 - 0x74a1a000      C:\Windows\system32\POWRPROF.dll
0x716d0000 - 0x716ff000      C:\Windows\system32\wdmaud.drv
0x70620000 - 0x70624000      C:\Windows\system32\ksuser.dll
0x74190000 - 0x741b8000      C:\Windows\system32\MMDevAPI.DLL
0x74630000 - 0x74637000      C:\Windows\system32\AVRT.dll
0x75bd0000 - 0x75d5a000      C:\Windows\system32\SETUPAPI.dll
0x747e0000 - 0x7480d000      C:\Windows\system32\WINTRUST.dll
0x761b0000 - 0x761d9000      C:\Windows\system32\imagehlp.dll
0x705f0000 - 0x70611000      C:\Windows\system32\AUDIOSES.DLL
0x70410000 - 0x70476000      C:\Windows\system32\audioeng.dll
0x716c0000 - 0x716c9000      C:\Windows\system32\msacm32.drv
0x71360000 - 0x71374000      C:\Windows\system32\MSACM32.dll
0x71460000 - 0x71467000      C:\Windows\system32\midimap.dll
0x75840000 - 0x758c4000      C:\Windows\system32\CLBCatQ.DLL
VM Arguments:
jvm_args: -D__jvm_launched=614157692976 -Xbootclasspath/a:C:\\PROGRA~1\\Java\\jre6\\lib\\deploy.jar;C:\\PROGRA~1\\Java\\jre6\\lib\\javaws.jar;C:\\PROGRA~1\\Java\\jre6\\lib\\plugin.jar -Dsun.plugin2.jvm.args=-D__jvm_launched=614157692976 "-Xbootclasspath/a:C:\\\\PROGRA~1\\\\Java\\\\jre6\\\\lib\\\\deploy.jar;C:\\\\PROGRA~1\\\\Java\\\\jre6\\\\lib\\\\javaws.jar;C:\\\\PROGRA~1\\\\Java\\\\jre6\\\\lib\\\\plugin.jar" "-Djava.class.path=C:\\\\PROGRA~1\\\\Java\\\\jre6\\\\classes" --
java_command: sun.plugin2.main.client.PluginMain write_pipe_name=jpi2_pid568_pipe9,read_pipe_name=jpi2_pid568_pipe8
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files\Internet Explorer;;C:\Program Files\Microsoft Office\Office12\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Windows\System32\WindowsPowerShell\v1.0\
USERNAME=xxxxxx
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6002 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2097151k(1436212k free), swap 4194303k(4194303k free)
vm_info: Java HotSpot(TM) Client VM (11.0-b16) for windows-x86 JRE (1.6.0_11-b03), built on Nov 10 2008 02:15:12 by "java_re" with MS VC++ 7.1
time: Thu Oct 28 12:01:14 2010
elapsed time: 1 seconds

Rob~R wrote:
A colleague's PC has a log file on the desktop, created 28th October. Its title: 'hs_err_pid3268.log'
Initially we were both concerned since Kaspersky had detected some viruses on his machine on it's nightly scan, however, looking at the log file I'm not sure whether to be worried or not! - It looks legitimate, if a bit odd...
If somebody more knowledgeable could tell me firstly if it's anything sinister and secondly (if not) what may have cause it and whether it's an issue I should investigate on this machine.
Thanks in advance, below is the contents of the text file. (As you can see I'm brand new to these forums, apologies if this is not the correct section for these kind of questions). It is a crash file from the Sun/Oracle VM.
It either got on the desktop because a user manually moved it there or because something is probably misconfigured (at least to me) in the environment.
If you are creating java applications (programming in the java language) then you would need to figure out why the app crashed.
If you are using java applications then you need to tell the vendor that it crashed. And you would not do that here.

Similar Messages

  • Save log file on Desktop

    Hi,
    I have created a script (see below) which alert unused character and paragraph style in active document.
    My Script
    myUnusedParagraphStyleName();
    myUnusedCharacterStyleName();
    function myUnusedParagraphStyleName()
    var myDoc = app.activeDocument;
    var myParStyles = myDoc.allParagraphStyles;
    var foundPStyles = [];
    for (i = myParStyles.length-1; i >= 2; i-- ){
    foundPStyles.push(myParStyles.[i].name);
    alert(foundPStyles.join("\r       "));
    function myUnusedCharacterStyleName()
    var myDoc = app.activeDocument;
    var myCharStyles = myDoc.allCharacterStyles;
    var foundCStyles = [];
    for (i = myCharStyles.length-1; i >= 1; i-- ){
    foundCStyles.push(myCharStyles.[i].name);
    alert(foundCStyles.join("\r       "));
    But I want to save my alert message as a log file on my Desktop. I have search and found an example (see below) but I couldn't merge this code with my script.
    Can anybody please merge this code within my JS. So that my script save a log file in desktop. I really appreciate all your support.
    Example taken from Adobe Forum
    var myDoc = app.activeDocument;
    var myDocPath = myDoc.filePath;
    var myDocName = myDoc.name;
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\b(\\w.+\\s000\\s000\\s00)";
    var mySearch = myDoc.findGrep();
    var myFound = new Array()
    for (var j = 0; j < mySearch.length; j++)
    myFound.push (mySearch[j].contents);
    alert(myFound);
    var inc=0;
    var myLogFile = new File(myDocPath.fsName + "/Report_" + myDocName.split(".")[0] +".txt");
    if(myLogFile.open("w", undefined, undefined))
    myLogFile.writeln("Tool name : Report Generator for CS5");
    myLogFile.writeln("************************************");
    if(myFound.length != 0)
            myLogFile.writeln("");
            for (var k = 0; k<myFound.length; k++)
       serialno = k + 1;
       myLogFile.writeln("  "+serialno+".  "+myFound[k]);
    myLogFile.execute();
      else
       myLogFile.writeln("No terms found");
    Thanks in advance.
    Mon

    Here is it.
    var foundPStyles = [];var foundCStyles = [];var myDoc = app.activeDocument;var myDocPath = myDoc.filePath;var myDocName = myDoc.name;  myUnusedParagraphStyleName();myUnusedCharacterStyleName();myWrite2Log();  function myUnusedParagraphStyleName(){          var myParStyles = myDoc.allParagraphStyles;          for (i = myParStyles.length-1; i >= 2; i-- )          {                    foundPStyles.push(myParStyles[i].name);          }          // alert(foundPStyles.join("\r       "));}function myUnusedCharacterStyleName(){          var myCharStyles = myDoc.allCharacterStyles;          for (i = myCharStyles.length-1; i >= 1; i-- ){                    foundCStyles.push(myCharStyles[i].name);          }          // alert(foundCStyles.join("\r       "));}function myWrite2Log(){          var inc=0;          var myLogFile = new File(Folder.desktop+"/Report.txt");          if(myLogFile.open("w", undefined, undefined))          {            myLogFile.writeln("Unused ParaGraph Styles\n=======================\n\r");            if(foundPStyles.length != 0)            {                      myLogFile.writeln("");                      for (var k = 0; k<foundPStyles.length; k++)                      {                                serialno = k + 1;                                myLogFile.writeln("\t"+serialno+".\t"+foundPStyles[k]);                      }            }            else            {                      myLogFile.writeln("\nNo Unused ParaGraph Styles Found\n\n");            }              myLogFile.writeln("\n\nUnused Character Styles\n=======================\n\r");            if(foundCStyles.length != 0)            {                      myLogFile.writeln("");                      for (var k = 0; k<foundCStyles.length; k++)                      {                                serialno = k + 1;                                myLogFile.writeln("\t"+serialno+".\t"+foundCStyles[k]);                      }            }            else            {                      myLogFile.writeln("\nNo Unused Character Styles Found");            }          }     myLogFile.close();}
    Hope this Helps to you

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Applet cause to browser crash with hs_err_pid log file on desktop

    Hi there,
    We have a web based application which is initiating an other applet application inside, and communicating with the applet over live-connect javascript calls.
    Sometimes when initating the applet, it causes to crash of the browser and leaves a file on the desktop named like hs_err_pid.log.
    If it occurs once a time for a user , it will allways happen until logoff and login back to windows.
    We think that, it may be about some registry settings for the Java plug-in, because re-login may solve the problem.
    And we seen that it mostly happens when another Java application running at the same time or just before, on PC.
    Our environment is, Windows XP Pro. SP2, IE6 SP2 and Java 1.4.2_17.
    I appreciate if someone can help us to understand what is the problem ( I have post a log file sample below), and the solution ?
    Regards,
    -erkbi
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_17-b06 mixed mode)
    # Problematic frame:
    # C [kernel32.dll+0x12a6b]
    --------------- T H R E A D ---------------
    Current thread (0x03beb940): JavaThread "main" [_thread_in_native, id=3232]
    siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x035de2cc 0x6d33ea78
    Registers:
    EAX=0x035de22c, EBX=0x189e1540, ECX=0x00000000, EDX=0x035de270
    ESP=0x035de228, EBP=0x035de27c, ESI=0x035de2bc, EDI=0x035de2bc
    EIP=0x7c812a6b, EFLAGS=0x00000206
    Top of Stack: (sp=0x035de228)
    0x035de228: 77c114bc e06d7363 00000001 00000000
    0x035de238: 7c812a6b 00000003 19930520 035de2cc
    0x035de248: 6d33ea78 00000001 035de2a0 7751a275
    0x035de258: 00000001 035de268 035de280 035de29c
    0x035de268: 00000000 80004002 df0b3d60 101b548f
    0x035de278: 0008658e 035de2bc 77c2272c e06d7363
    0x035de288: 00000001 00000003 035de2b0 00000000
    0x035de298: 00179d44 e06d7363 00000001 00000000
    Instructions: (pc=0x7c812a6b)
    0x7c812a5b: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 08 15 80 7c
    0x7c812a6b: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
    Stack: [0x034e0000,0x035e0000), sp=0x035de228, free space=1016k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [kernel32.dll+0x12a6b]
    C [msvcrt.dll+0x1272c]
    C [jpiexp32.dll+0xada3]
    C [jpiexp32.dll+0xad7b]
    C [jpiexp32.dll+0x15c3]
    C [jpiexp32.dll+0x1233]
    C [jpiexp32.dll+0x9726]
    j sun.plugin.services.WIExplorerBrowserService.installBrowserEventListener()Z+0
    j sun.plugin.viewer.LifeCycleManager.installBrowserEventListener()V+22
    j sun.plugin.viewer.LifeCycleManager.checkLifeCycle(Lsun/plugin/AppletViewer;)V+7
    j sun.plugin.viewer.IExplorerPluginObject.initPlugin()V+43
    j sun.plugin.viewer.IExplorerPluginObject.mayInit()V+29
    j sun.plugin.viewer.IExplorerPluginObject.frameReady()V+6
    j sun.plugin.viewer.frame.IExplorerEmbeddedFrame.setFrameSize(II)V+83
    v ~StubRoutines::call_stub
    V [jvm.dll+0x75335]
    V [jvm.dll+0xaf708]
    V [jvm.dll+0x75242]
    V [jvm.dll+0x78b22]
    V [jvm.dll+0x7a00d]
    C [jpiexp32.dll+0x41da]
    C [jpiexp32.dll+0x5388]
    C [jpiexp32.dll+0x23c1]
    C [jpiexp32.dll+0x37df]
    C [jpiexp32.dll+0x2611]
    C [mshtml.dll+0x2742c1]
    C [mshtml.dll+0x275d0c]
    C [mshtml.dll+0x275ed1]
    C [mshtml.dll+0xf9105]
    C [mshtml.dll+0x141fa2]
    C [mshtml.dll+0x6cb9f]
    C [mshtml.dll+0x689b7]
    C [USER32.dll+0x8734]
    C [USER32.dll+0x8816]
    C [USER32.dll+0x89cd]
    C [USER32.dll+0x8a10]
    C [BROWSEUI.dll+0x1d7bd]
    C [BROWSEUI.dll+0x25212]
    C [BROWSEUI.dll+0x25385]
    C [BROWSEUI.dll+0x2564d]
    C [kernel32.dll+0xb699]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.plugin.services.WIExplorerBrowserService.installBrowserEventListener()Z+0
    j sun.plugin.viewer.LifeCycleManager.installBrowserEventListener()V+22
    j sun.plugin.viewer.LifeCycleManager.checkLifeCycle(Lsun/plugin/AppletViewer;)V+7
    j sun.plugin.viewer.IExplorerPluginObject.initPlugin()V+43
    j sun.plugin.viewer.IExplorerPluginObject.mayInit()V+29
    j sun.plugin.viewer.IExplorerPluginObject.frameReady()V+6
    j sun.plugin.viewer.frame.IExplorerEmbeddedFrame.setFrameSize(II)V+83
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x04f2b008 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3784]
    0x04f1d330 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3256]
    0x03d96688 JavaThread "AWT-Shutdown" [_thread_blocked, id=2580]
    0x04f1e130 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=3008]
    0x03d9e760 JavaThread "Cache Cleanup Thread" [_thread_blocked, id=3164]
    0x03d986f0 JavaThread "Main Console Writer" [_thread_blocked, id=792]
    0x03d96960 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3516]
    0x029d7230 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3560]
    0x03cbc698 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3672]
    0x03c2a598 JavaThread "Finalizer" daemon [_thread_blocked, id=976]
    0x03c2a430 JavaThread "Reference Handler" daemon [_thread_blocked, id=2608]
    =>0x03beb940 JavaThread "main" [_thread_in_native, id=3232]
    Other Threads:
    0x02a17bf8 VMThread [id=4016]
    0x029d8a10 WatcherThread [id=1736]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 516K [0x14760000, 0x14800000, 0x14c40000)
    eden space 512K, 88% used [0x14760000, 0x147d1218, 0x147e0000)
    from space 64K, 99% used [0x147f0000, 0x147ffff8, 0x14800000)
    to space 64K, 0% used [0x147e0000, 0x147e0000, 0x147f0000)
    tenured generation total 1408K, used 511K [0x14c40000, 0x14da0000, 0x18760000)
    the space 1408K, 36% used [0x14c40000, 0x14cbff38, 0x14cc0000, 0x14da0000)
    compacting perm gen total 4096K, used 3822K [0x18760000, 0x18b60000, 0x1c760000)
    the space 4096K, 93% used [0x18760000, 0x18b1b9c0, 0x18b1ba00, 0x18b60000)
    VM Arguments:
    jvm_args: -Xbootclasspath/a:W:\Java\J2RE14~2.2_1\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.4.2_17 -Djavaplugin.nodotversion=142_17 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=W:\Java\J2RE14~2.2_1 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=W:\Java\J2RE14~2.2_1\classes -Xbootclasspath/a:W:\Java\J2RE14~2.2_1\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.4.2_17 -Djavaplugin.nodotversion=142_17 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=W:\Java\J2RE14~2.2_1 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol vfprintf
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    CLASSPATH=W:\TEBORA\TEBIS2.ZIP;C:\TEBORA\TEBIS2.ZIP
    PATH=W:\Java\J2RE14~2.2_1\bin;C:\Program Files\Internet Explorer;;C:\PROGRA~1\ESWM\CLIENT~1\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;W:\Tebora\OpenCV\bin;K:\PVCS_I~3\VM\win32\bin;w:\ORANT\BIN;.
    USERNAME=dsenli
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 2085612k(1499244k free), swap 2689268k(2158732k free)
    vm_info: Java HotSpot(TM) Client VM (1.4.2_17-b06) for windows-x86, built on Feb 8 2008 18:36:31 by "java_re" with MS VC++ 6.0

    1.4.2 is old version of JRE which is only supported though Java For Business.
    Please consider upgrading to latest JRE6 or signing up for Java For Business program.

  • Log file on desktop

    Something seems to be creating a log file on my desktop. The file is empty and only seems to appear after going to espn.com. But it does not get created each and everytime i go there. Its totally random.
    Its seems very spyware like. Safari is not crashing so its not a crash log. I have no idea where it is coming from.
    Any help would be appreciated.
    Thanks
    macbook    

    Hi,
    A bit of a mystery indeed! I've tried browsing around the espn.com site a little to see if I could get the file to appear but no luck so far. Are there any sections you tend to visit more than the others - NFL, NBA, NHL, etc?
    It doesn't sound like anything spyware related to me. It's probably just a mis-configured part of the website which can sometimes result in pages downloading by accident - is there an entry for the download in Safari's download manager?
    You mentioned you are running Adium too. Is that the regular Adium or a development beta version which might have additional logging enabled?

  • How to access database file on CDROM from Java Programe??

    Hello friends,
    I am making online exam application.
    I want my question database to be reside on CDROM.
    but i am not getting any idea how to make DSN or static path that resolute the path that i have mentioned for CDROM.
    basically i want to know how to access CDROM from Java Programe????
    Thanks in advance
    Navik Pathak

    Once you mounted the CDROM (something maybe as /media/cdrom) as a file system (or assigned a drive letter to it like D: or F: or whatever), the files are accessible normally.

  • Double-click any file on desktop, calling JAVA PROGRAM

    hi guys,
    i'm breakin my head on doin this prog....when we double click a file icon of any file extension, my another
    java program should be called.
    how to do this???
    pls send a sample code........asap!!!!!!!!!
    regards,
    Sam...

    If you are using windows you could probably make a file association (for all extension types) to a batch file that in turn fires off 'java YourClass params_here'
    - but if you (can) do this, won't you screw up your desktop - ie doubleclicking on an .xls or .doc will never fire up Excel or Word, unless you change the file extension associations back to what they were before? This would make your pc kind of strange to use...??!!
    hi guys,
    i'm breakin my head on doin this
    doin this prog....when we double click a file icon of
    any file extension, my another
    java program should be called.
    how to do this???
    pls send a sample code........asap!!!!!!!!!
    regards,
    Sam...

  • Write a file on client from java procedure

    Hello to all, my problem is that i want to write a file from a java procedure using the normal java class. But when i try to write
    File file=new File("C:\\DiscoD\\myFile.txt");
    FileWriter fw=new FileWriter(file);
    fw.write("ciao");
    nothing happens and no file is created. How can i write a file on my pc client from java procedure?
    Thanks to anyone that want helps me.

    I want to write a java procedure loading java class on oracle with utility loadjava and this work for example for classical Hello World. Now i want to write data on a text file on my hard disk using class java calling the procedure for example in this mode:
    begin
    procedure('ciao'); //this procedure have to write on a file located on my pc the word ciao
    end;
    But nothing happens. Why? There is a special reason related to how oracle works(privileges, permission etc)?
    Thanks

  • Log file on desktop is always there.

    This log file is always on my desktop and I can't seem to get rid of it:
    ScriptingListenerJS.log
    Any suggestions?

    Hi,
    A bit of a mystery indeed! I've tried browsing around the espn.com site a little to see if I could get the file to appear but no luck so far. Are there any sections you tend to visit more than the others - NFL, NBA, NHL, etc?
    It doesn't sound like anything spyware related to me. It's probably just a mis-configured part of the website which can sometimes result in pages downloading by accident - is there an entry for the download in Safari's download manager?
    You mentioned you are running Adium too. Is that the regular Adium or a development beta version which might have additional logging enabled?

  • Downloading unix archive file (.Z extension) from java program

    Hi,
    I am trying to download unix archive files with .Z extension from java program. When I use
    BufferedReader zReader = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
    and then read line by line and write it to file, downloaded file can't be decompressed. I tried to open it with winZip which supports .Z files but I get the message : Cannot open file, it does not appear to be a valid archive.
    How can I download file correctly?
    Any help would be appreciated.

    Hi,
    I am trying to download unix archive files with .Z
    extension from java program. When I use
    BufferedReader zReader = new BufferedReader(new
    InputStreamReader(urlConn.getInputStream()));
    and then read line by line and write it to file,How are you writing the file? Since it is binary data you need to be careful about using Reader/Writers, which are meant for character data. Look at using classes from the InputStream/OutputStream hierarchy.
    - N

  • How To Change Resource Bundle file's data from Java Class

    Hi
    i have used below code for accessing Resource Bndle from Java Class but here i also want to make change in a particular key and its value.
    please let me know the code i should use to make changes in Resource Bundle file's key and value and saving the same in the file.
    package test;  import java.util.Enumeration;
    import java.util.ResourceBundle;
    public class ResourceBundleTest {
    public static void main(String[] args) {
    ResourceBundle rb = ResourceBundle.getBundle("test.bundletest.mybundle");
    Enumeration <String> keys = rb.getKeys();
    while (keys.hasMoreElements()) {
    String key = keys.nextElement();
    String value = rb.getString(key);
    System.out.println(key + ": " + value);
    Thanks

    With further debugging, I noticed the following line only works in integrated WLS but not in standalone WLS
    resourceBundle = ResourceBundle.getBundle("com.myapp.MyMappings");
    I confirmed the corresponding properties file was included properly in the EAR file but the standalone WLS failed to find the properties file at runtime.
    Why did the standalone WLS class loader (must be the same as the integrated WLS) failed to find the properties file deployed under the WEB-INF/classes path in the EAR file?
    The above line was in a POJO class which has the same classpath as the properties file ie. com.myapp.MappingManager.class.
    It was strange that the class loader could load the POJO class but unable to find the com.myapp.MyMappings.properties in the same classpath!!!
    Is this a bug in standalone WLS?
    Edited by: Pricilla on May 26, 2010 8:52 AM
    Edited by: Pricilla on May 26, 2010 9:01 AM

  • How do copy a file to desktop in java

    I am creating some overlays for a program to import. It creates some simple text files. We would like the default location for these files to be the user desktop (something like %DESKTOP%)...Does anyone know how to direct a file to desktop using system variables etc. I am not sure if System object contains a reference to the user desktop...
    Right

    Hello, hope that you are fine ...
    What you have to do is the following :
    File desktopDIR=new File("C:\\Documents and Settings\\All Users\\Desktop");
    File theFileToCopy=new File(desktopDIR,"fileName.extension");
    // then
    theFileToCopy.createNewFile();
    // now copy the data to the file using the needed writers ...Regards ...

  • Db restore non archive mode lost redo log file..restore from controlfile tr

    i have a db 11g I had taken non archive backup but failed to take redo log files backup...
    so while i restored the db ... after formatting the machine ..the oracle instance wont start.
    I create a controlfile trace but when i run it i get errors.
    since i dont have the older log files.. how do i get around with this issue
    Thanks
    Following is the sample of control file trace ..Note i cannot create the redo log file
    since db wont be mounted at most it shall be in nonmount mode
    and below is my created controlfile ....
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
    SIZE 50M BLOCKSIZE 512,
    GROUP 2
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
    SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF',
    'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF'
    CHARACTER SET AL32UTF8
    I dont have these 2 files ..what do i do to get around this situation
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_80L7C259_.LOG'
    SIZE 50M BLOCKSIZE 512,
    GROUP 2
    'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_80L7C375_.LOG'
    SIZE 50M BLOCKSIZE 512
    -- STANDBY LOGFILE
    DATAFILE
    Edited by: zycoz100 on Feb 27, 2013 10:57 PM

    If you have a cold backup (database shutdown properly) without the redo logs, change this :
    CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOGto
    CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOGYou have to change the NORESETLOGS to RESETLOGS for Oracle to recreate the online redo logs.
    Hemant K Chitale

  • Open word file in desktop from SAP

    Halo ,
    I have a requirement in which I have got a word file in my desktop . I have the location path . Is there any FM in which I can give this Path so that it opens up the word file by itself.
    Moreover is there any way to execute the file in the application server.
    Regards
    Arshad

    Hello,
    You can use GUI_RUN for desktop. provide the file path in command parameter and execute it to invoke the file on desktop.
    Also, you can use WS_EXECUTE to open file on application server.
    " For desktop:
    CALL FUNCTION 'GUI_RUN'
      EXPORTING
        COMMAND          =
    *   PARAMETER        =
    *   CD               =
    * IMPORTING
    *   RETURNCODE       =
    *For application server:
    CALL FUNCTION 'WS_EXECUTE'
    * EXPORTING
    *   DOCUMENT                 = ' '
    *   CD                       = ' '
    *   COMMANDLINE              = ' '
    *   INFORM                   = ' '
    *   PROGRAM                  = ' '
    *   STAT                     = ' '
    *   WINID                    = ' '
    *   OSMAC_SCRIPT             = ' '
    *   OSMAC_CREATOR            = ' '
    *   WIN16_EXT                = ' '
    *   EXEC_RC                  = ' '
    * IMPORTING
    *   RBUFF                    =
    * EXCEPTIONS
    *   FRONTEND_ERROR           = 1
    *   NO_BATCH                 = 2
    *   PROG_NOT_FOUND           = 3
    *   ILLEGAL_OPTION           = 4
    *   GUI_REFUSE_EXECUTE       = 5
    *   OTHERS                   = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Both the function modules are obsolute!
    Also, check for there alternatives.
    Thanks,
    Augustin.

  • Unable to connect the server, while open the rpt file in server from java.

    Hi,
    I have written one java class, that class deployed in solaris server. The BO server is avilable in another solaris server. i want to convert the rpt file to pdf format. for that i try to give the file path to the server for opening the rpt file, that time i got the follwoing error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Unable to connect to the server: uinbrdcsap02. --- Connection refused
    (errno:239)---- Error code:-2147217387 Error code name:connectServer
            at
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwR
    eportSDKServerException(Unknown Source)
            at
    com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.connect
    (Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
            at
    com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Un
    known Source)
            at
    com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initia
    lize(Unknown Source)
    *My java code is the following ..*
    package com.ramco.report;
    //Crystal Java Reporting Component (JRC) imports.     
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.ByteArrayInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ByteArrayOutputStream;
    import java.sql.Connection;
    import java.sql.CallableStatement;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.text.SimpleDateFormat;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions;
    import java.util.Calendar;
    import java.util.Properties;
    import org.apache.log4j.Logger;
    import org.apache.log4j.SimpleLayout;
    import org.apache.log4j.FileAppender;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    // Class file starting.
    public class StandardReconReport
         private Connection objConnection = null;
         private DBConnection dbconnection = null;
         private ByteArrayInputStream byteArrayInputStream =null;
         private FileOutputStream fileOutputStream = null;     
         private ByteArrayOutputStream byteArrayOutputStream = null;
         private CallableStatement callablestatement = null;
         private CallableStatement callablestatement1 = null;     
         private ResultSet resultset1 = null;
         private ResultSet resultset = null;
         private String Deal_No = null;
         private String Job_Date = null;     
         private String Reportservername = null;
         private SimpleLayout layout   = null;
         private FileAppender appender = null;
         private Logger logger            = null;
         private String     DateTimeFormat = null;
         private String Report_File_path =null;
         private String Pdf_File_Name = null;     
         private Properties properties = null;
         private String LogFilePath = null;
         private String FileName = null;
         private String FullLogFilePath = null;
         private Statement statement = null;
         private String Report_upload_path = null;
         private String StanReconDir = null;
         private String winandsol = null;
         private com.crystaldecisions.sdk.occa.report.application.ReportClientDocument  reportClientDoc = null;
         private int count_tmp=0;
         private String DATE_FORMAT = null;
         private String dateformat = null;
         private Calendar cal = null;
        private SimpleDateFormat sdf = null;
        private String reconfilename = null;    
         // Method for Generating Report.....
         private void stanReportGeneration()
              try
                   properties = new Properties();
                   properties.clear();
                 properties.load(new FileInputStream("GeneralInfo.properties"));
                 Reportservername = properties.getProperty("reportservername");
                 reconfilename = properties.getProperty("reconfilename");
                 layout = new SimpleLayout();
                   LogFilePath = properties.getProperty("logfilepath");               
                   dateformat = dateTime1(properties.getProperty("dateformat1"));
                   StanReconDir = properties.getProperty("stanrecondir");
                  winandsol = properties.getProperty("windowsandsolaris");        
                  if (new File(LogFilePath).exists())
                       LogFilePath = LogFilePathdateformatwinandsol;
                       if (new File(LogFilePath).exists())
                       else
                            new File(LogFilePath).mkdirs();
                  FileName = "STANRECONLOGFILE-";             
                  FileName = FileNamedateformat".txt";             
                  FullLogFilePath = LogFilePath+FileName;
                  appender = new FileAppender(layout,FullLogFilePath,false);
                 logger = Logger.getLogger("MyLogger");
                 logger.addAppender(appender);
                 DateTimeFormat = properties.getProperty("datetimeformat");       
                 logger.info("The Start Recon Report Start Time: " +dateTime(DateTimeFormat));             
                 logger.info("");            
                 try
                      InetAddress address[] = InetAddress.getAllByName(Reportservername);                 
                     for (int i=0; i<address.length;i++)
                          logger.info("Report Server Name: " + address<i>.getHostName());
                          logger.info("Report Server Address: " + address<i>.getHostAddress());
                          logger.info("Report Server Canonical: " + address<i>.getCanonicalHostName());
                 catch (UnknownHostException e)
                      logger.error("The host "Reportservername"is not avilable");
                 Report_File_path = properties.getProperty("StandardReconReportpath");          
                  logger.info("The Report File Name is : "+Report_File_path " - "dateTime(DateTimeFormat));
                  //Report_File_path="rassdk://"+Report_File_path;
                  try
                       //Getting the Database connection....
                       dbconnection = new DBConnection();
                      objConnection = dbconnection.getConnections();
                      statement = objConnection.createStatement();
                      String sqlQuery = "SELECT TRIM(PARAM_VALUE) FROM SYS_USER_PARAM WHERE COMPONENT = 'REPORT' AND LINE_NO = 1 AND PARAM_NAME = 'REPORT_DOWNLOADPATH' AND STATUS = 'A'";
                      resultset = statement.executeQuery(sqlQuery);
                      while(resultset.next())
                           Report_upload_path = resultset.getString(1);
                           logger.info("Report_upload_path from the DB: "+Report_upload_path);
                  catch (SQLException ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  catch(Exception ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  finally
                       if(statement!=null)
                            statement.close();
                       if(resultset!=null)
                            resultset.close();
                  if (new File(Report_upload_path).exists())
                       Report_upload_path = Report_upload_path+StanReconDir;
                       if (new File(Report_upload_path).exists())
                            System.out.println("Directory is avilable"+Report_upload_path);
                       else
                            new File(Report_upload_path).mkdirs();
                  Report_upload_path = Report_upload_pathwinandsoldateformat+winandsol;              
                  if (new File(Report_upload_path).exists())
                  else
                       new File(Report_upload_path).mkdirs();
                  logger.info("Report_upload_path : "Report_upload_path" : "+dateTime(DateTimeFormat));
                  try
                       logger.info("Calling the REPORT_STAN_RECON_CON SP : "+dateTime(DateTimeFormat));
                      callablestatement = objConnection.prepareCall("{call REPORT_STAN_RECON_CON(?)}");
                      callablestatement.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR);
                        callablestatement.execute();
                        resultset=(ResultSet)callablestatement.getObject(1);
                        if(resultset!=null)
                             while(resultset.next())
                                  count_tmp = count_tmp+1;
                                  logger.info("");                              
                                 Deal_No   = resultset.getString(1);
                                  Job_Date = resultset.getString(2);
                                  DATE_FORMAT = resultset.getString(3);
                                  Job_Date = Job_Date.substring(0,10);
                                  logger.info("*********** PDF Convertion Starting for a Deal No: " +Deal_No " :: "dateTime(DateTimeFormat));
                                  Pdf_File_Name = Report_upload_pathreconfilenameDeal_No"-"DATE_FORMAT+".pdf";                              
                                  Job_Date = Job_Date.replace('-', '/');
                                  logger.info("The Deal_No is : "+Deal_No " - "dateTime(DateTimeFormat));
                                  logger.info("The Job_Date is : "+Job_Date " - "dateTime(DateTimeFormat));
                                  try
                                     reportClientDoc = new com.crystaldecisions.sdk.occa.report.application.ReportClientDocument();
                                       reportClientDoc.setReportAppServer(Reportservername);                                   
                                       logger.info("Report App server Name := "+ reportClientDoc.getReportAppServer());
                                       logger.info("Report_File_path  := "+ Report_File_path);                             
                                       reportClientDoc.preCreateServerAgent(true);                            
                                       reportClientDoc.open(Report_File_path,0);                         
                                       logger.info("After opening the RTF file for : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
                                                 callablestatement1 = objConnection.prepareCall("{call REPORT_STANDARD_RECON(?,?,?,?)}");
                                       callablestatement1.setString(1, Job_Date);
                                       callablestatement1.setString(2, Deal_No);
                                       callablestatement1.setString(3,"");
                                       callablestatement1.registerOutParameter(4, oracle.jdbc.driver.OracleTypes.CURSOR);
                                       callablestatement1.execute();
                                       resultset1=(ResultSet)callablestatement1.getObject(4);
                                       String tableAlias = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
                                       reportClientDoc.refreshReportDocument();
                                       reportClientDoc.getDatabaseController().setDataSource(resultset1, tableAlias , "Result Set");
                                       reportClientDoc.refreshReportDocument();                         
                                       ExportOptions oExportOptions = new ExportOptions();
                                       oExportOptions.setExportFormatType(ReportExportFormat.RTF);
                                       byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                                       logger.info("After exporting the report file to PDF file for the : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
                                       //Use the Java I/O libraries to write the exported content to the file system.
                                       byte byteArray[] = new byte[byteArrayInputStream.available()];     
                                       //Create a new file that will contain the exported result.
                                       logger.info("Successfully exported report to " + Report_File_path" - "dateTime(DateTimeFormat));
                                       logger.info("*********** PDF Convertion Ending for a Deal : "Deal_No" "+dateTime(DateTimeFormat));
                                       logger.info("");
                                       Deal_No   = null;
                                       Job_Date  = null;
                                  catch (SQLException ex)
                                      ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  catch (IOException ex)
                                      ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  catch (Exception ex)
                                       ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  finally
                                       if(byteArrayInputStream!=null)
                                            byteArrayInputStream.close();
                                       if(byteArrayOutputStream!=null)
                                            byteArrayOutputStream.close();
                                       if(fileOutputStream!=null)
                                            fileOutputStream.close();
                                       if(callablestatement1!=null)
                                            callablestatement1.close();
                                       if(resultset1!=null)
                                            resultset1.close();
                                       if(reportClientDoc!=null)
                                            reportClientDoc.close();
                        if(count_tmp==0)
                             logger.info("");
                             logger.info(" $$$$$$$$ There is NO DATA for generating the Report $$$$$$$: " +dateTime(DateTimeFormat));
                  catch (SQLException ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  catch (Exception ex)
                        ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  finally
                       if(callablestatement!=null)
                            callablestatement.close();
                       if(resultset!=null)
                            resultset.close();
                       if(objConnection!=null)
                            objConnection.close();
                       if(callablestatement1!=null)
                            callablestatement1.close();
                       if(resultset1!=null)
                            resultset1.close();
              catch (IOException ex)
                  ex.printStackTrace();
                  System.out.println(ex);
                  logger.error(ex);
              catch (Exception ex)
                   ex.printStackTrace();
                  System.out.println(ex);
                  logger.error(ex);
              finally
                  properties.clear();              
              logger.info("");
              logger.info("*******Standard Recon Report End Time*******: "+dateTime(DateTimeFormat));
         // Getting the current date and time..
         public String dateTime(String dateFormat)
              cal = Calendar.getInstance();
             sdf = new SimpleDateFormat(dateFormat);
             return sdf.format(cal.getTime());
         //Getting the Yesterday Date and time...
         public String dateTime1(String dateFormat)
              cal = Calendar.getInstance();
              cal.add(Calendar.DATE, -1);            
             sdf = new SimpleDateFormat(dateFormat);
             return sdf.format(cal.getTime());
         public static void main(String[] args) {
              StandardReconReport  SR = new StandardReconReport();
              SR.stanReportGeneration();
    For the above code  i given the report parameter from  the property file.
    reportservername=servername
    datagenreportpath=rassdk\://C\:
    MyEclipseWorkPlace
    IDSREPORTGENERATION
    REPORTFILES
    STANDARD_RECON_REPORT.rpt
    The code is working fin, while i try to connect the BO which is avilble in Windows server, but this is not working if the BO is avilble in solaris server.
    Any bodies please help
    Edited by: velmurugan.spn on Sep 12, 2009 6:38 AM

    Hi,
    Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
    We have applied 8.1.1.3 patch on 8.1.1.0
    below are the steps followed
    Reports are not generated after 8.1.1.3 patch installtion.
    we have also followed to below steps mentioned for this issue in oracle support.
    "In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
    change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
    1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
    2) Import the 4 SIF files in the following order:
    S_XMLP_REP_TMPL_02112010.sif
    SBL_XMLP_REPORT_SELECTION_FLG.sif
    Report Template BC.sif
    Report Template Registration Applet.sif
    3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
    Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
    we still not able to generated able to generate reports even after following above steps.
    Thanks
    Sean

Maybe you are looking for