Javahost .in and .out files in temp directory?
Hi Folks,
Has anyone ever seen temp files being created by the javahost process, which are stored in the temp directory for the user that runs the javahost service (obviously running windows) ?
The temp files have this kind of naming:
Charts_xxxxx_xxxxxxxxxx.javahost.in
or
Charts_xxxxx_xxxxxxxxxx.javahost.out
In our case we have clustered OBIPS servers and javahosts. both javahosts services run under the same user account, but we only see the temp files being accumulated on one of the servers (in <AccountName>\Local Settings\Temp directory)
Is there a way to turn this on/off? are these safe to delete?
Thanks in advance for any help with this.
ok, got this one resolved... i found out that these temp files are a side effect of increasing the javahost logging using the "logconfig.txt" file found in OracleBI\web\javahost\config directory.
here is the default setup (top of this file)...
# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= WARNING
#.level= INFO
#.level= ALL
#.level= OFF
we can see the .level= WARNING is set
on our server, someone had set the level to ALL like this:
# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
#.level= WARNING
#.level= INFO
.level= ALL
#.level= OFF
this results in temp files left in the temp directory of whatever user runs the javahost service.
Similar Messages
-
Win 2008 WL 10.3.3 stdout appearing in .log and .out files
Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
Is this something needing to be corrected at the application level? (log4j)opie wrote:
Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
Is this something needing to be corrected at the application level? (log4j)Depends on what you are actually seeing in those files. Are you outputting log4j messages to a log file AND the console?
Here is a snippet of the log4j configuration file that denotes writing to the console:
<appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss} %-5p [%t] - %C{1}.%M -> %m%n" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="ConsoleAppender" />
</root>Edited by: ForumKid2 on Dec 29, 2010 11:36 AM -
Ziping and unziping files in a directory Please help
I have a program to zip files in a directory and create a .zip file.
But am not able to unzip the file back to the orginal files. This file can be unziped using any unzip tool. But i want to unzip it using java itself
thanks
the code is as follows ......
import java.util.zip.*;
import java.io.*;
public class Zipper
private String dirname;
public void compress_file(String input_dirname,String outfilename)
//getting all the file names
this.dirname=input_dirname;
File f1=new File(dirname);
String s[]=f1.list();
try
byte[] buf = new byte[4096]; //read buffer
int retval; //return value
FileOutputStream os = new FileOutputStream(outfilename);
ZipOutputStream zos = new ZipOutputStream(os);
FileInputStream is= new FileInputStream("File1");
for(int i =0;i<s.length;i++)
System.out.println(s);
is = new FileInputStream("./conf/"+s[i]);
zos.putNextEntry(new ZipEntry("./conf/"+s[i]));
do
//read file in from input stream
retval = is.read(buf, 0, 4096);
//-1 indicates end of file
if (retval != -1)
//write buffer to output stream
zos.write(buf, 0, retval);
}while (retval != -1);
//close this ZipEntry
zos.closeEntry();
//close input stream
is.close();
//close output stream
zos.close();
catch(Exception e)
System.out.println("Exception occurred: " + e);
public static void main(String[] argv)
Zipper zp= new Zipper();
zp.compress_file("./conf/","sample.zip");I'm kinda unclear about what problem you are having, but try this link
http://developer.java.sun.com/developer/technicalArticles/Programming/PerfTuning/#Compression -
Can i prevend the generation of files in temp directory
I noticed, that a labview (7.0) application generates different files in the temp directory when executed and deleting them when stoped.
(Except of the *cur.txt and *log.txt files which only exists once per application)
Is there a way to prevend LabView to write this files (lvtl*.rsc; lvtr*.rsc; *.tmp)
I've got an application, which i have to kill (there's no other way at this moment).
If i do so, the files still exist. I kill this application about once a minute.
Because i don't end the application the regular way, the mentioned files still exist.
As a result the temp directory runs full.
Suggestions are appreciated.
Best regards,
Rainer
P.S.: The Suggestion to regular stop the application does not help me of course ;-)Rainer,
Nice question!
There are different ways for doing this. Unfortunately no any "100% guaranteed" way (because its not documented by NI - which temporary files are created by LV app):
So, first suggestion with deletion of all temporary files seems to be safety, because normally Temp directory must be empty. In case if some files currently used by other applications, they locked and you cannot delete them.
Second way - change path to temp directory especially for your application. Just add tmpdir key into assotiated ini file:
[app]
tmpdir=C:\MyApp\Temp
After that lvtl*.rsc; lvtr*.rsc will be created into this directory. You can safety delete these files after kill.
(Note, that "*" is pid of your application)
Third way - looking for all handles, which currently opened by your application. You can do this with some utilities, for example with Handle.exe from SysInternals.
For example for my simple application following output was generated (some not important lines are skipped):
Handle v2.2
App.exe pid: 656
cc: File C:\Temp\App_7.0_Administrator_cur.txt
144: File C:\Programme\National Instruments\Shared\LabVIEW Run-Time\7.0\lvapp.rsc
148: File C:\MyApp\App.exe
1f0: File C:\Temp\nix2E5.tmp
210: File C:\MyApp\Temp\lvtr656.rsc
214: File C:\MyApp\Temp\lvtl656.rsc
760: File C:\MyApp
Now you can parse output and looking for all currently opened temporary files, then kill your your application and then safety delete tmp and rsc files. Note, that files lvtl*.rsc and lvtr*.rsc are located in "local" temporary directory as described in ini file, but nix*.tmp still in "default" directory.
Hope it help a little bit...
Andre. -
Create folder and move files to specific directory in AL11
My requirement is to create a new folder in one of the existing directories in AL11 and move some files into it.
I searched the forum and found this solution but it creates folder only in DIR_HOME directory.
data: unixcom like rlgrap-filename.
data: begin of tabl occurs 500,
line(400),
end of tabl.
unixcom = 'mkdir mydir'. "command to create dir
"to execute the unix command
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
I want the folder to be created in some other directory DIR_INTERFACES .
Any suggestions are welcome ..Get complete path (physical path) using FM FILE_GET_NAME_USING_PATH.
Default directory is DIR_HOME, hence it creates file in that directory...If you specify complete folder name, it will be created under that path..
Concatenate mkdir
space
<physical path>
mydir
into unixcom. -
.heu and .swz files in root directory
since a few days i'm finding some .heu and some .swz files in my root directory.
C3306B26751D6A80EB1FCB651912469AE18819AB.swz
etc.
7421C71F94DB4F028E7528B2D278F3FE4DC21273.heu
etc.
the .heu files are all 151 bytes, the .swz files a few to a few hundrets of kb in size.
what are they, where do they come from, and can i delete them without harming OS X?
they belong to my userid, group "admin", and have "-rw-r--r--" permissions.
all i found with google is they could be adobe flash support/cache files.Humbug. For the OP, move the files to the Trash, restart, and see if anything changes. If not, empty the trash. IIRC, those are generated by Adobe apps, specifically Flash Playrer, and have no business being written to the root-level. Peruse the hits from a google search for *swz file type* and *heu file type*.
-
Difference between SAP Software Kernel and the files in Kernel Directory
27. What is the difference between SAP Software Kernel and the files in Kernel Directory
well... the OS kernel is for the... "OS" and the SAP Kernel is for.... "SAP"
A kernel is the core of any application, basically is a set of programs and parameters that tell the system how to behave.
Regards
Juan -
Calling a report with web.show_document and put pdf in temp directory
Hi,
I need to call a report 10g with web.show_document in order to generate a .pfd file (not viewed by the user) as soon as the user press a button in a form.
I have two problems. Firstly, after generate .pdf, it's opened a undesirable windows "process succefully" (I don't want that window). Secondly, in url parameter, I put:
(...)DESTYPE=File&DESFORMAT=pdf&DESNAME=' || client_win_api.get_temp_directory
the target directory to .pdf file might be the user temporary directory, and not c:\temp, because in Windows XP the user haven't some writing privileges.
How there is spaces in temporary directory, like:
C:\Documents and Settings\<user>\Local Configurations\Temp
I supose that Get_temp_directory returns something that:
C:\Documen~1\<user>\Local~1\Temp
And web.show_document don't understand.
Can anyone help me?
Thanks a lot,
medina.Hi Maahjoor,
i have install windows xp on vmware having loop back adapter configure with ip 192.168.10.1.i am using oracle developer 10g suite and oracle 10g r2 database.
i want to call a report using the following code on a button.i have attached the report to the form.
i have started the report server by issuing rwserver server=repsrv.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
repid := FIND_REPORT_OBJECT('ALL_EXPENSES');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := RUN_REPORT_OBJECT(v_rep);
WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := REPORT_OBJECT_STATUS(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
ELSE
Message('Error when running report');
END IF;
end;now when i run the command, i get this error
frm-41214: unable to run the report
frm-41219: cannot find the report.invalid id.
argument 1 to builtin run_report_object acnnot be null.
i thin the problem is with this line. WEB.SHOW_DOCUMENT('http://192.168.10.1:8889/reports/rwservlet'||substr(v_rep,'_',-1)+1||'?'||'server=repsrv','_blank');
can anyone help? or a better piece of code?>
I think you are mixing up the web.show_document usage for URL and with RUN_REPORT_OBJECT.
I hope you have studied this document http://www.oracle.com/technetwork/products/migration/frm10gsrw10g-132606.pdf . It has the required examples and code.
Cheers, -
Lightroom v1.0 Install Leaves Read-Only Files in Temp Directory
I just installed v1.0 (fresh install, no previous betas, WinXP). There seem to be quite a few (20 to be exact) read-only files left in the folder:
C:\Documents and Settings\**User**\Local Settings\Temp\
These all appear to be related to Sonic Solutions (CD/DVD burning in LR?)
i.e.
pxhelp20.sys
pxwave.dll
pxmas.dll
px.dll
etc.
Do these files serve any function after Lightroom is installed? Can they be safely deleted?you naming convention is confussing. you should follows Java naming convention..you have a getXXX but decalred the return type as "void"...get usully means to return something...
your code is doing too much..and hard to follows..
1. get the selected files
for each selected file
process the file and return the result
write out the result.
/** close the precious resource */
public void closeResource(Reader in){
if (in != null){
try{ in.close(); }
catch (Exception e){}
/** get the total number of line in a file */
public int getLineCount(File file) throws IOException{
BufferedReader in = null;
int lineCount = 0;
try{
in = new BufferedReader(new FileReader(file));
while ((in.readLine() != null)
lineCount++;
return lineCount;
finally{ closeResource (in); }
/** read the file */
public void processFile(File inFile, File outFile) throws IOException{
BufferedReader in = null;
StringBuffer result = new StringBuffer();
try{
in = new BufferedReader(new FileReader(inFile));
String line = null;
while ((in.readLine() != null){
.. do something with the line
result.append(....);
writeToFile(outFile, result.toString());
finally{ closeResource (in); }
public void writeToFile(File outFile, String result) throws IOException{
PrintWriter out = null;
try{
out = new PrintWriter(new FileWriter(outFile, true)); // true for appending to the end of the file
out.println(result);
finally{ if (out != null){ try{ out.close(); } catch (Exception e){} } }
} -
Moving a functional jsp and jar file to new directory breaks import?
Simply put - how can I "move" or "copy" a functional JSP directory from the root of my site to a subdirectory
of the same site and have it continue to work?
here are the details:
I have a site where the functional JSP content resides like so ...
c:\site\itworkshere\thetestfile.jsp
c:\site\itworkshere\WEB-INF\web.xml
c:\site\itworkshere\lib\thejarfile.jar
c:\site\itworkshere\classes\props.properties
but when I copy the"itworkshere" directory to c:\site\newdirectory\itworkshere
and try to load thetestfile.jsp page in my browser, I get ...
thetestfile$jsp.java:6: Package com.corporatename.module.io not found in import.
I know that the module.io classes are in thejarfile.jar, but for some reason, now that I've put the files
in a new directory, the import is failing (simple import directive in thetestfile.jsp) And - yes - the .jar
file is there in the new subdirectory.
I am a newbie with jsp and just need to copy the files to new location and have them continue to work.
Do I have to recompile the .jar with some sort of adjustments? I poked around and I don't see any assumptions about the directory structure in the build. The behavior leads me to believe that the build is assuming something
about its location in the directory tree.
Hope this question is clear and I appreciate any direction you can provide to steer me where to look/modify
the necessary changes so I can move the .jsp's and .jar and not break them.Thanks for the suggestions and insights. I have made some progress.
a context path of "/newdirectory/itworkshere" and a docBase of "./newdirectory/itworkshere" has resolved
the .jsp include problem.
However this seems a bit counter-intuitive to me considering that the default root context which is "" stands
at the appBase which in my case is C:\Site. Since the default does not explicitly refer to the "itworkshere" directory,
I'd expect that the newly added Context element would not have to either ---- BUT --- it does require that I include "itworkshere" in the context path and docBase (where I would expect ./newdirectory would have been sufficient since the default works that way) ... am I missing something?
Now I havethe next odd behavior - the Servlet which resides in "itworkshere\WEB-INF\lib" is not loading when I put the appropriate URL in --> /newdirectory/itworkshere/DataCrunchingServlet
I checked the web.xml file and it has the appropriate servlet-name and url-pattern (relative references)
Furthermore I did a test where I simply rename the original working instance directory and again --- the URL is failing to find the servlet!!! (and yes I stopped/started Tomcat) It is as if the servlet can only be found in the originally installed scenario.
I am extremely puzzled that the behaviors seem to indicate an assumption about the path structure, but the web.xml file is set up correctly.
Help help!!! and Thank you.l -
Java code to upload file and place file on server directory
Hi,
Am a relatively new Java programmer. I need to add a functionality to a struts web application to allow users UPLOAD a file (using browse button). I need to read the file name,, do some other checks and eventually, upload the file to a server directory.
When do I start? Any good website for source code examples?
ThanksSee this http://jakarta.apache.org/commons/fileupload/
-
How to analyze/view *.run and *.out files?
Hi guys,
I used tttracer_Win7 tool to trace an exception of my addin when it was integrated to Outlook 2013. And the output file of the tool had 2 files: *.out and *.run, but I dont know how to view the files. Tried Google Search, and did not help me. The
tool also could not read that files.
Could you give me some comment, or suggest about some tool that can do that?
Here is the UI of the tool, I hope you guys used to use it.Hello Phuc,
I'd suggest creating a log file instead. Thus, you will be able to find the cause of the issue easily. For example, you can use log4net library. -
Could not find file in Temp directory
Hey all!
I received the follwoing error when exporting a report into a pdf file using the ExportToStream method:
Could not find file "C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_e269c3d0-e775-4351-b2ea-09507859a79a.tmp".
I am using VS 2003 and CR 9.1.5, and I didn't have any problems with this report until I enlarged the header field for a column. After this error occurred, I reverted back to the original report, but it still threw the error. I then restarted IIS, rebuilt the application, and then ran the report again. Still no luck.
Any ideas on what is causing this problem? Is this a version issue?
(I have four other reports that are still working fine, it just seems to be this one report)Here is the full dump of the error message:
Exception=System.IO.FileNotFoundException
Message=Could not find file "C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_d03e5522-a635-47c0-b649-a238063b0223.tmp".
FileName=C:\DOCUME1\CHL0337\ASPNET\LOCALS1\Temp\export_d03e5522-a635-47c0-b649-a238063b0223.tmp
TargetSite=Void WinIOError(Int32, System.String)
StackTrace= at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
at FixedAssets.FAPageBase.InvokeCrystalReport(String ReportName) in c:\dev\source\comptrollers\fixedassets\dev\web\fapagebase.aspx.cs:line 588
at FixedAssets.Reports.CreateAssetDisposalsReport.btnRunReport_Click(Object sender, EventArgs e) in C:\dev\source\comptrollers\FixedAssets\Dev\web\Reports\AssetDisposalsReport.aspx.cs:line 70
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
Source=mscorlib -
How cot create and read files in ALLUSERSPROFILE directory
Hi,
I have a program that is to be used both with Windows XP, Vista, 7 and 8. It should create and read a file in ALLUSERSPROFILE, which I have learned to be different directories in XP and the other Windows versions. But after looking all over internet, I can't
find any clear answer how to do this. I thought the following should work, but it doesn't:
testfile = fopen("%ALLUSERSPROFILE%/testfile.dat", "r");
Although the file exist, testfile gets the value of zero. I've also tried other strings instead of "ALLUSERSPROFILE," but no luck. Could anyone tell me how to do this?
Thanks in advance.I tried the following:
SHGetKnownFolderPath( &FOLDERID_ProgramData, 0, 0, &userpath);
Then the program compiled. But it did not work:
fopen("%userpath%\\Testfolder\\Testfile.ini", "r");
did not open the file, although it is there.
Then I read that this function can't be used with Windows XP, so I
switched to the deprecated SHGetFolderPath
TCHAR userpath[MAX_PATH];
SHGetFolderPath(0, CSIDL_COMMON_APPDATA, 0, SHGFP_TYPE_CURRENT, userpath);
According to the MSDN pages, one then could use the
PathAppend (userpath, TEXT("Testfolder/Testfile.ini"));
I then added Shlwapi.h and compiled and got the following error message
main.obj : error LNK2001: unresolved external symbol __imp__PathAppendW@8
fatal error LNK1120: 1 unresolved externals
Then I again tried
fopen("%userpath%\\Testfolder\\Testfile.ini", "r");
but neither did this work. So now I don’t know what to do. -
Checking in and out files (source control) in form 6i
Hai,
how we can make use of source control options in form 6i.
thnaks and regards
vivekHi there
From what you have posted it would appear that you are using RoboHelp for Word. I don't believe RoboHelp for Word has ever been configured to integrate with RoboSource Control.
If you were using RoboHelp HTML, it is actually configured to work with RoboSource Control and is totally integrated where as you work on topics they are checked out automatically.
You may wish to review the article linked below.
Click here to view
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks
Maybe you are looking for
-
How to retrive table data in form
Hi all, I want to retrive whole table data in forms , just by passing table name.either through a prcedure or function. is it possible to do this? Thanks in advance
-
Hi, I generate a report through Smartform everytime I confirm an order. Now I d like to embed external files (pdf) to my original report (in these files I store important information about the items I m gonna send). How can I do??? Mauro
-
Is it possible to change the font size of the PO terms only in the email?
Hi all, Is it possible to change the font size of the PO terms only? We are emailing PO and terms to the Suppliers. Is it possible to reduce the font size on terms only so that the file size is smaller and easy to print on the supplier end? TIA
-
What would be the fastest os for my ipod touch 2G?
What would be the fastest os for my ipod touch 2G?
-
Can you be more productive with increased visibility into your data?
P3SI has developed a new data lineage application that gives OBIEE developers and architects instant access to their data lineage--both obi and informatica layers. We've seen amazing productivity gains in development, troubleshooting, implementations