Running a start file
In SQL Plus, I used to be able to execute a start file stored on C: by entering:
@c:\gnt.sql;
When I do this in SQL Developer 2.1, I get a dialog box asking me to "Enter Binds"
Does it think 'gnt' is a bind variable?
How can I get it to run the script?
Thanks.
Hi Prohan,
I have reproduced it - the bug happens when I use execute statement (f9) (for graphical grid) rather than execute script(f5) (which produces text based output).
Bug Logged:
bug 9437875 OTN-2.1.1/2.1 @C:\RUNME.SQL FAILS UNDER RUN STATEMENT(F9) - THINKS IT IS A BIND
-Turloch
Edited by: Turloch O'Tierney on Mar 5, 2010 6:58 AM
Added bug number
Similar Messages
-
I want to run my .exe file in same time when Labview started to run
Somebody know, how do it?
Slonbob wrote:
Yes, but I want run LabVIEW, then run my exe backgroung
Right, so run a batch file instead of LabVIEW.
Or if you must run "LabVIEW.exe" rename "LabVIEW.exe" to "LabVIEW Backup.exe" then make an EXE that just runs "LabVIEW Backup.exe" then your program and name it LabVIEW.exe. -
I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?
Hi Arika,
The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
All these drivers are available for downloading on ni.com. To get the drivers, go to ht
tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
I hope this information helps.
Best Regards,
Wilbur Shen
National Instruments -
Getting error while running the XML file using XML Publisher Desktop
Hi all,
We have successfully loaded the XML file using XML Publisher Desktop. But when we preview the same using PDF format we are getting the following error.
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
FOProcessor setLocale: en-us
java.lang.NullPointerException
at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Thanks in Advance.
Sudeep.This is BI related. You will get a quicker answer from the BI Publisher forum
BI Publisher -
Error while running the XML file using XML Publisher Desktop
Hi All,
We have successfully loaded the XML file using XML Publisher Desktop.But when we try to preview it using the PDF format we are getting the following error.
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
FOProcessor setLocale: en-us
java.lang.NullPointerException
at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Any pointers will be of great help.
Thanks in Advance
Sudeep.2¢
I had a similar error which when I searched, came up with this thread.
My issue was resolved after I discovered that my RTF template was not really RTF. It was sill in MS Word DOC format. This was discovered by reviewing two templates in NOTEPAD. The MS-DOC files have a lot of "special" characters in them. My RTF was not really RTF.
After doing a SAVE AS - RTF format, then the preview worked as expected.
Just Sharing...
--Tim -
Trying to run a bat file from oracle
I have followed these steps, see bottom for results, everything is valid but the bat file does not run???? PLease need your help. Doug
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "getbatx" AS
class getbatx //class pdfopen
public static void execmd(String c) //main function
try
System.out.println("Executing:" + c);
Runtime.getRuntime().exec("C:\\WINDOWS\\system32
cmd.exe /c "+c);
System.out.println("Executing:" + c + " ...done");
} catch (Exception e) //catch any exceptions here
System.out.println("Error" + e ); //print the error
CREATE OR REPLACE PROCEDURE host_command2 (p_command IN VARCHAR2)
AS LANGUAGE JAVA
NAME 'getbatx.execmd (java.lang.String)';
/Then as sysdba I put in in the following.
exec dbms_java.grant_permission( 'CAPRS', 'SYS:java.io.FilePermission', '<<ALL FILES>>', 'execute' );
EXEC Dbms_Java.Grant_Permission('CAPRS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
EXEC Dbms_Java.Grant_Permission('CAPRS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');Then I make the call.
SET SERVEROUTPUT ON SIZE 1000000
CALL DBMS_JAVA.SET_OUTPUT(1000000);
BEGIN
host_command2 (p_command => 'c:\mybook.bat');
END;
/***** I run this, it completes but does not run the bat file and there is no error message
SQL> BEGIN
2 host_command2 (p_command => 'mybook.bat');
3 END;
4 /
Executing:mybook.bat
Executing:mybook.bat ...done
PL/SQL procedure successfully completed.Yes it should open a dos box, but you forgot to add the .bat file witch you like to run: String[] command = {"cmd", "/c", "start", "c:/Batch files/Cardiobackup/cardiobackup_v1.4"}
-
Errror while Running the ant file(build.xml) when applying B2B-BPEL patch
Hello all,
I am trying to apply the B2B WSIL Browser patch and while running the ant file i got the following warning while backing out d3l.jar file
echo Backing out dl3l.jar to avoid conflicts with B2B...
move *Warning: Could not find file C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib\d3l.jar to copy.*
and the following error when it was not able to find admin_client.jar file
*java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
java Java Result: 1
echo Binding B2B WSIL Browser...
*java Unable to access jarfile C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\j2ee\home\admin_client.jar*
and the BUILD FAILED
*so i created the necessary folders in the newly generated folder manually in ${env.ORACLE_HOME} i.e xqs\lib & j2ee\home and pasted the d3l.jar and admin_client.jar in these folders respectively,and again ran the ant file,this time the error is first problem is cleared i.e it is not showing the warning that it could not find* d3l.jar_+ file and it is also converting this file as d3l.jar.hide_+ *, but this time in the place of second error a new error is generated i.e* +
Problem_
C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL>ant
Buildfile: build.xml
apply-b2b-bpel-10.1.3:
echo Prompting for B2B repository connection parameters...
input Please enter B2B repository hostname [http://127.0.0.1:] [http://127.0.0.1]
172.17.4.14
input Please enter B2B repository port 1521: 1521
1521
input Please enter B2B repository sid ORCL: ORCL
orcl
input Please enter B2B password b2b: b2b
b2b
input Please enter oc4j instance name home: home
home
input Please enter oc4j admin password welcome1: welcome1
welcome1
input Please enter opmn request port 6003: 6003
6003
echo Copying b2b.jar and tip.properties to appropriate locations...
copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\lib
copy Copying 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.OB_HOME}\system\classes
echo Backing out dl3l.jar to avoid conflicts with B2B...
move Moving 1 file to C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\${env.ORACLE_HOME}\xqs\lib
echo Deploying B2B WSIL Browser ...
echo OPMN Port is : 6003
echo Container is : home
echo Host is : ${env.HOSTNAME}
echo iasadminpassword is : welcome1
java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
java Exception in thread "main"
java Java Result: 1
echo Binding B2B WSIL Browser...
java java.lang.NoClassDefFoundError: oracle/oc4j/admin/deploy/cmdline/Oc4jAdminCmdline
java Exception in thread "main"
BUILD FAILED
C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:88: The following error occurred while executing this line:
C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL\build.xml:49: Java returned: 1
Total time: 31 seconds
C:\product\1013~1.1\ORACLE~1\bpel\samples\tmp\B2B-BPEL>
i have set the classpath for the jdk and jre files correctly and also checked it with a sample program and the file is compiling and running with correct output.then why is it showing up java.lang.NoClassDefFoundError exception.Did anyone face the same problem or have a solution for this problem if they have then plzzz help me
thnx
Sunny
Edited by: sunny kay on Jan 27, 2009 4:14 AMHello sri,
Thanks for your response as you have told i have set the ORACLE_HOME = C:\product\10.1.3.1\OracleAS_1
and added C:\product\10.1.3.1\OracleAS_1\bin to my sys path
and i have also set the JAVA_HOME=C:\product\10.1.3.1\OracleAS_1\jdk
and added C:\product\10.1.3.1\OracleAS_1\jdk\bin to my sys path
and ran the patch,now its coming up with a different problem after entering the B2B repository connection parameters...
and it is
Problem_
echo Deploying B2B WSIL Browser ...
echo OPMN Port is : 6003
echo Container is : home
echo Host is : ${env.HOSTNAME}
echo iasadminpassword is : welcome1
java
java
java Failed at "Could not get DeploymentManager".
java
java This is typically the result of an invalid deployer URI format being
supplied, the target server not being in a started state or incorrect authentic
ation details being supplied.
java
java More information is available by enabling logging -- please see the
Oracle Containers for J2EE Configuration and Administration Guide for details.
java
java
java Java Result: 1
echo Binding B2B WSIL Browser...
java
java
java Failed at "Could not get DeploymentManager".
java
java This is typically the result of an invalid deployer URI format being
supplied, the target server not being in a started state or incorrect authentic
ation details being supplied.
java
java More information is available by enabling logging -- please see the
Oracle Containers for J2EE Configuration and Administration Guide for details.
java
java
BUILD FAILED
The Application Server is in the started state and these are the details that i have entered when B2B Repository Connection Parameters is prompeted
echo Prompting for B2B repository connection parameters...
input Please enter B2B repository hostname [http://127.0.0.1]: [http://127.0.0.1]
172.17.4.14
input Please enter B2B repository port [1521|http://forums.oracle.com/forums/]: [1521|http://forums.oracle.com/forums/]
1521
input Please enter B2B repository sid ORCL: ORCL
orcl
input Please enter B2B password [b2b|http://forums.oracle.com/forums/]: [b2b|http://forums.oracle.com/forums/]
b2b
input Please enter oc4j instance name home: home
home
input Please enter oc4j admin password [welcome1|http://forums.oracle.com/forums/]: [welcome1|http://forums.oracle.com/forums/]
welcome1
input Please enter opmn request port [6003|http://forums.oracle.com/forums/]: [6003|http://forums.oracle.com/forums/]
6003
is anything wrong in this i have tried by giving the default host name instead of mine but result is still the same.what is the problem can you figure it out and provide me a solution.
thnx
Sunny -
Running a jar file from java code
Hi!
Im trying to run a jar file from my code.
I've tried Classloader, but that doesnt work because it doesnt find the images (also embedded in the 2nd jar file).
WHat I would like to do is actually RUN the 2nd jar file from the first jar file. There must be a way to do this right?
any ideas?ok, I found some wonderful code (see below) that will try to start the jar. But it doesn't. What it does is produce the following error when my application runs...
So it's not finding the images in the jar file that I am trying to run? Strange. I checked the URL that sending, but it seems ok....
I think I will check the url again to make sure......
any ideas?
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection(Unknown Source)
at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
the code....
/* From http://java.sun.com/docs/books/tutorial/index.html */
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.JarURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.jar.Attributes;
* Runs a jar application from any url. Usage is 'java JarRunner url [args..]'
* where url is the url of the jar file and args is optional arguments to be
* passed to the application's main method.
public class JarRunner {
public static void main(String[] args) {
URL url = null;
try {
url = new URL(args[0]);//"VideoTagger.jar");
} catch (MalformedURLException e) {
System.out.println("Invalid URL: ");
// Create the class loader for the application jar file
JarClassLoader cl = new JarClassLoader(url);
// Get the application's main class name
String name = null;
try {
name = cl.getMainClassName();
} catch (IOException e) {
System.err.println("I/O error while loading JAR file:");
e.printStackTrace();
System.exit(1);
if (name == null) {
fatal("Specified jar file does not contain a 'Main-Class'"
+ " manifest attribute");
// Get arguments for the application
String[] newArgs = new String[args.length - 1];
System.arraycopy(args, 1, newArgs, 0, newArgs.length);
// Invoke application's main class
try {
cl.invokeClass(name, newArgs);
} catch (ClassNotFoundException e) {
fatal("Class not found: " + name);
} catch (NoSuchMethodException e) {
fatal("Class does not define a 'main' method: " + name);
} catch (InvocationTargetException e) {
e.getTargetException().printStackTrace();
System.exit(1);
private static void fatal(String s) {
System.err.println(s);
System.exit(1);
* A class loader for loading jar files, both local and remote.
class JarClassLoader extends URLClassLoader {
private URL url;
* Creates a new JarClassLoader for the specified url.
* @param url
* the url of the jar file
public JarClassLoader(URL url) {
super(new URL[] { url });
this.url = url;
* Returns the name of the jar file main class, or null if no "Main-Class"
* manifest attributes was defined.
public String getMainClassName() throws IOException {
URL u = new URL("jar", "", url + "!/");
JarURLConnection uc = (JarURLConnection) u.openConnection();
Attributes attr = uc.getMainAttributes();
return attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;
* Invokes the application in this jar file given the name of the main class
* and an array of arguments. The class must define a static method "main"
* which takes an array of String arguemtns and is of return type "void".
* @param name
* the name of the main class
* @param args
* the arguments for the application
* @exception ClassNotFoundException
* if the specified class could not be found
* @exception NoSuchMethodException
* if the specified class does not contain a "main" method
* @exception InvocationTargetException
* if the application raised an exception
public void invokeClass(String name, String[] args)
throws ClassNotFoundException, NoSuchMethodException,
InvocationTargetException {
Class c = loadClass(name);
Method m = c.getMethod("main", new Class[] { args.getClass() });
m.setAccessible(true);
int mods = m.getModifiers();
if (m.getReturnType() != void.class || !Modifier.isStatic(mods)
|| !Modifier.isPublic(mods)) {
throw new NoSuchMethodException("main");
try {
m.invoke(null, new Object[] { args });
} catch (IllegalAccessException e) {
// This should not happen, as we have disabled access checks
} -
I read in this thread that when Safari ceases to function on Windows Vista, deleting Safari's preferences will allow it to start functioning again
Deleting the necessary files actually fixes the problem, and I've created a batch file for deleting the files when necessary:
rmdir /S /Q "C:\users\<windows-user-name>\AppData\Roaming\Apple Computer\Safari"
del /Q "C:\Users\<windows-user-name>\AppData\Roaming\Apple Computer\Preferences\com.apple.Safari.plist"
rmdir /S /Q "C:\Users\<windows-user-name>\AppData\Local\Apple Computer\Safari"
this is somewhat of a nucence, and I was wondering if anyone knew if this is a bug that was being looked at, or if there was some other action I could take to prevent from having to run the batch file.
Thank you,
Andrew J. LeerThank you for responding. As I stated in my original post the reason I went through this process was because of an extremely slow internet connection from both the WLAN and LAN connections on my G53SW. At that time I had all of the correct drivers on the
machine. Whilst I would agree that with the machine only having a video and WLAN driver it may well not be working 'optimally', the rationale for doing this was to get the machine working with the minimum of processes to show that it was not anti-virsu software,
Steam or the like causing interference.
I have changed out both of the HDDs this evening (a primary SSD and a secondary 1Tb HDD) for a clean hybrid 1Tb Seagate drive. Once I have installed all of the Asus drivers (and nothing else) I will try the speed test again and report back.
I can now report that with a fresh install of Windows 7 Ultimate SP1 and ONLY Asus drivers as supplied the issue remains. On a connection where I should see around 75mbps I am actually getting around 18mbps, sometimes considerably slower. This only affects
my Asus machine.
<script id="ncoEventScript" type="text/javascript">function DOMContentLoaded(browserID, tabId, isTop, url) { var object = document.getElementById("cosymantecnisbfw"); if(null != object) { object.DOMContentLoaded(browserID,
tabId, isTop, url);} }; function Nav(BrowserID, TabID, isTop, isBool, url) { var object = document.getElementById("cosymantecnisbfw"); if(null != object) object.Nav(BrowserID, TabID, isTop, isBool, url); }; function NavigateComplete(BrowserID, TabID,
isTop, url) { var object = document.getElementById("cosymantecnisbfw"); if(null != object) object.NavigateComplete(BrowserID, TabID, isTop, url); } function Submit(browserID, tabID, target, url) { var object = document.getElementById("cosymantecnisbfw");
if(null != object) object.Submit(browserID, tabID, target, url); }; </script> -
String path = "";
path = "cmd /c start FCall.bat";
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(path);
//proc.destroy() ; The code works fine, however, I need some help in exiting the command window. After executing the batch file the window should close. I have tried "destroy" didnt work it kills the entire process. Is there a function I am missing to accomplish this ?warnerja,
I am compiling my program through command prompt. One of my method that contains the above mentioned code, runs the batch file. In doing so, it opens cmd.exe window. I want that window to be closed once the batch file ends running.
The path associated with the cmd.exe is the same as the path where I am compiling my java code.
Any suggestion ? -
Running a Batch File on another Server with an Oracle Job
hi, i have the following code
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'test_job_bat',
job_type => 'EXECUTABLE',
job_action => '\\10.1.1.63\test\test.bat',
enabled => true,
comments => 'test bat'
END;
So i want to run a batch file, which lies on another pc in the network
The code runs, without a failure.
The bat file just contains "MD D:\bla" .
When i run the code, no bla directory is created, so it seems that the batch file never ran.
i approved read/write on the test folder. (Windows 7 machine)
any ideas?
Edited by: user1067632 on 31.05.2010 05:03
in dba_scheduler_job_run_details the job is listed as FAILED:
ORA-27370: Job-Unterprozess konnte einen Job vom Typ EXECUTABLE nicht starten
ORA-27300: BS-abhängiger Vorgang accessing execution agent mit Status: 2 nicht erfolgreich
ORA-27301: BS-Fehlermeldung: Das System kann die angegebene Datei nicht finden.
ORA-27302: Fehler aufgetreten bei: sjsec 6a
ORA-27303: Zusätzliche Informationen: Das System kann die angegebene Datei nicht finden.
Edited by: user1067632 on 31.05.2010 05:16ok sorry, i made my testjob run, the OracleJobScheduler was not started.
But now i ran into an another Problem.
Now i want to java bla.jar in my batch, and got that new error
ORA-27369: Job vom Typ EXECUTABLE nicht erfolgreich mit Exit-Code: Unzulässige Funktion.
STANDARD_ERROR="Unable to access jarfile start.jar"
anything to consider when accessing .jar files in my batch?
edit:
there was a classpath problem.
Edited by: ginkgo on 01.06.2010 04:29 -
Running a batch file inside a jar
HI all
I created a jar file , in which i need to run a batch file , so i wrote a main class to execute the run the batch file , but when iam running the jar it is searching for the given batch file out side the jar.
my code is some thing like below
public static void main(String args[])
try
Runtime rt=Runtime.getRuntime();
Process process=rt.exec("%DIRNAME%/start.bat");
InputStreamReader reader =
new InputStreamReader ( process.getInputStream () );
BufferedReader buf_reader =
new BufferedReader ( reader );
String line;
while ((line = buf_reader.readLine ()) != null)
System.out.println (line);
catch (IOException e) {
System.out.println (e);
}so please help me.. is it the problem in specifing the path...?
are does it have any other method to read the stream functions ..
thanks in advance
samI don't think this will work. You could not go to a command line and enter, "%DIRNAME%/start.bat" if start.bat was inside a jar - the CLI doesn't know how to read a batch file inside a jar.
I think it would work to programmatically read the lines of start.bat (when it is inside the jar) into an array of Strings and use Runtime.exec with the array as the argument.
It would also work to extract the start.bat file, then execute it using Runtime.exec. -
How to RUN a XML file directly in JDeveloper
Can any one please suggest me for running a XML file directly in Jdeveloper?
I need the step how to do itactually I am calling xsl inside my xml....
the XMl code
=================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="SfATranslation.xsl"?>
<SfAForm>
<SfAFormHeader>
<Name>ACM Maintain Code Table</Name>
<Notes></Notes>
<HeaderText>ACM Maintain Transaction Code Table</HeaderText>
<ItemID></ItemID>
<LogoImage>cpfb.gif</LogoImage>
<SubmitTo>FormAction.asp</SubmitTo>
<Title>Account Management</Title>
<TranslationRule>SfATranslation</TranslationRule>
</SfAFormHeader>
<SfASection>
<VisibilityRule></VisibilityRule>
<SfASectionHeader>
<Name>ACM - Maintain Transaction Code Table</Name>
<Notes>ACM Maintain Transaction Code Table</Notes>
<ItemID>TX Code</ItemID>
</SfASectionHeader>
<SfAComponent>
<VisibilityRule></VisibilityRule>
<SfAComponentHeader>
<Name>Code Table Information</Name>
<ItemID>A1</ItemID>
</SfAComponentHeader>
<SfAItem>
<Name>Scheme Code</Name>
<Type>SfA_Select</Type>
<VisibilityRule></VisibilityRule>
<Information>Select Scheme</Information>
<ItemID></ItemID>
<Required>*</Required>
<Value></Value>
<SfA_SelectOptions>
<Name>Education</Name>
<ItemID>EDN</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
<SfA_SelectOptions>
<Name>Housing</Name>
<ItemID>HU</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
<SfA_SelectOptions>
<Name>Investment</Name>
<ItemID>INV</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_SelectOptions>
</SfAItem>
<SfAItem>
<Name>Transaction Code</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>Enter Transaction Code</Information>
<ItemID>TXCode</ItemID>
<Required>*</Required>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Reason Code</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>Enter Reason</Information>
<ItemID>Reason</ItemID>
<Required>*</Required>
<Value></Value>
<ItemError>
<Name>Error Test</Name>
<ItemID>ER001</ItemID>
<Message>Please enter valid data . . .</Message>
<SupportLink>http://www.google.co.nz/</SupportLink>
</ItemError>
</SfAItem>
<SfAItem>
<Name>Description</Name>
<Type>SfA_Textarea</Type>
<VisibilityRule></VisibilityRule>
<Cols>60</Cols>
<Information>Enter Description</Information>
<ItemID>Description</ItemID>
<Required>*</Required>
<Rows>5</Rows>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Interest Computation</Name>
<Type>SfA_Checkbox</Type>
<VisibilityRule></VisibilityRule>
<Information></Information>
<ItemID>Interest</ItemID>
<Required></Required>
<Value></Value>
<SfA_CheckboxOptions>
<Name>Interest</Name>
<ItemID>IDInterest</ItemID>
<Multiple>Y</Multiple>
<Selected></Selected>
</SfA_CheckboxOptions>
</SfAItem>
<SfAItem>
<Name>Interest Information</Name>
<Type>SfA_Information</Type>
<VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
<BeginText>For information</BeginText>
<EndText>or look up admin manual</EndText>
<ItemID></ItemID>
<Link>http://www.google.co.nz/</Link>
<LinkLabel>see sss</LinkLabel>
</SfAItem>
</SfAComponent>
<SfAComponent>
<VisibilityRule>IDInterest!='IDInterest'</VisibilityRule>
<SfAComponentHeader>
<Name>Interest Calculation Applicable Dates</Name>
<ItemID>A2</ItemID>
</SfAComponentHeader>
<SfAItem>
<Name>Effective Start Date</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>dd/mm/yyyy</Information>
<ItemID></ItemID>
<Required></Required>
<Value></Value>
</SfAItem>
<SfAItem>
<Name>Effective End Date</Name>
<Type>SfA_Text</Type>
<VisibilityRule></VisibilityRule>
<Information>dd/mm/yyyy</Information>
<ItemID></ItemID>
<Required></Required>
<Value></Value>
</SfAItem>
</SfAComponent>
</SfASection>
<SfAMenuHeader>
<MenuItem>
<Name>Account Management</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Asset Enhancement</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Common Biz Services</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Common Sys Services</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>Operations</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
<MenuItem>
<Name>System Messages</Name>
<Href>Form.xml</Href>
<Image></Image>
<ItemID></ItemID>
<Target>_self</Target>
</MenuItem>
</SfAMenuHeader>
<SfAButtonHeader>
<ButtonItem>
<Name>Save</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Update</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Deactivate</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Help</Name>
<ItemID></ItemID>
</ButtonItem>
<ButtonItem>
<Name>Cancel</Name>
<ItemID></ItemID>
</ButtonItem>
</SfAButtonHeader>
</SfAForm>
The Xsl code
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="SfAForm">
<html>
<head>
<title>HP Smart Forms Demo</title>
<link rel="stylesheet" href="../shared/css/useragentmanExample.css" type="text/css" media="all" />
<link rel="stylesheet" href="../shared/css/visibleIf.css" type="text/css" media="all" />
<link rel="stylesheet" href="../shared/css/style.css" type="text/css" media="all" />
<script type="text/javascript" src="../shared/js/EventHelpers.js"></script>
<script type="text/javascript" src="../shared/js/visibleIf.js"></script>
</head>
<body>
<xsl:apply-templates select="SfAFormHeader"/>
</body>
</html>
</xsl:template>
<xsl:template match="SfAFormHeader">
<xsl:variable name="tmpformID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpformName"><xsl:value-of select="Name"/></xsl:variable>
<xsl:variable name="tmpformAction"><xsl:value-of select="SubmitTo"/></xsl:variable>
<xsl:variable name="tmpformImage"><xsl:value-of select="LogoImage"/></xsl:variable>
<div id="stylized" class="myform">
<form id="{$tmpformID}" name="{$tmpformName}" method="post" action="{$tmpformAction}" class="visibleIf-disableIfInvisible">
<table>
<tr>
<td valign="top"><IMG src="{$tmpformImage}" ALT=""/></td>
<td valign="top" rowspan="1">
<h1> <xsl:value-of select="Title"/> </h1>
<p>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text" select="Notes"/>
</xsl:call-template>
</p>
<!-- <xsl:apply-templates select="//SfASection"/> -->
</td>
</tr>
<tr>
<td valign="top">
<xsl:apply-templates select="//SfAMenuHeader"/>
</td>
<td valign="top">
<xsl:apply-templates select="//SfASection"/>
</td>
</tr>
<tr>
<td></td> <!--Blank cell below the menu-->
<td>
<p></p>
<xsl:apply-templates select="//SfAButtonHeader"/>
</td>
</tr>
</table>
</form>
</div>
</xsl:template>
<xsl:template match="SfAMenuHeader">
<xsl:apply-templates select="MenuItem"/>
</xsl:template>
<xsl:template match="MenuItem">
<xsl:variable name="tmpappMenuHref"><xsl:value-of select="Href"/></xsl:variable>
<xsl:variable name="tmpappMenuTarget"><xsl:value-of select="Target"/></xsl:variable>
<xsl:variable name="tmpappMenuImage"><xsl:value-of select="Image"/></xsl:variable>
<a class="menulink" href="{$tmpappMenuHref}" target="{$tmpappMenuTarget}"> <xsl:value-of select="Name"/> </a>
<xsl:choose>
<xsl:when test="$tmpappMenuImage=''">
</xsl:when>
<xsl:otherwise>
<IMG src="{$tmpappMenuImage}" ALT=""/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfAButtonHeader">
<xsl:apply-templates select="ButtonItem"/>
</xsl:template>
<xsl:template match="ButtonItem">
<button type="submit"><xsl:value-of select="Name"/></button>
</xsl:template>
<xsl:template match="SfASection">
<xsl:variable name="tmpSectionVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpSectionVisibleRule=''">
<xsl:apply-templates select="SfASectionHeader"/>
<xsl:apply-templates select="SfAComponent"/>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpSectionVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:apply-templates select="SfASectionHeader"/>
<xsl:apply-templates select="SfAComponent"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfAComponent">
<xsl:variable name="tmpComponentVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpComponentVisibleRule=''">
<xsl:apply-templates select="SfAComponentHeader"/>
<xsl:apply-templates select="SfAItem"/>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpComponentVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:apply-templates select="SfAComponentHeader"/>
<xsl:apply-templates select="SfAItem"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfASectionHeader">
<h3 class="sectionID"> <xsl:value-of select="ItemID"/> </h3>
<h2 class ="sectionTitle"> <xsl:value-of select="Name"/> </h2>
<!-- <p> <xsl:value-of select="Notes"/></p> -->
<p>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text" select="Notes"/>
</xsl:call-template>
</p>
</xsl:template>
<xsl:template match="SfAComponentHeader">
<h3 class="questionCode"> <xsl:value-of select="ItemID"/> </h3>
<h3 class ="questionTitle"> <xsl:value-of select="Name"/> </h3>
</xsl:template>
<xsl:template match="SfAItem">
<xsl:variable name="tmpItemVisibleRule"><xsl:value-of select="VisibilityRule"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpItemVisibleRule=''">
<xsl:call-template name="processItem">
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<span class="visibleIf" data-visibleif-rule="{$tmpItemVisibleRule}"> <!--&&=AND ||==OR -->
<xsl:call-template name="processItem">
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="processItem">
<xsl:variable name="tmpID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemType"><xsl:value-of select="Type"/></xsl:variable>
<xsl:apply-templates select="ItemError"/>
<xsl:choose>
<xsl:when test="$tmpItemType='SfA_Select'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<select class="dropdown" name="{$tmpID}" value="{$tmpItemValue}">
<xsl:apply-templates select="SfA_SelectOptions"/>
</select>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Checkbox'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<div>
<xsl:apply-templates select="SfA_CheckboxOptions"/>
</div>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Radio'">
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<div>
<xsl:apply-templates select="SfA_RadioOptions"/>
</div>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Information'">
<xsl:variable name="tmpLink"><xsl:value-of select="Link"/></xsl:variable>
<span class="para">
<xsl:value-of select="BeginText"/>
<xsl:if test="$tmpLink!=''">
<xsl:text> </xsl:text>
<xsl:value-of select="LinkLabel"/>
</xsl:if>
<xsl:text> </xsl:text>
<xsl:value-of select="EndText"/>
</span>
</xsl:when>
<xsl:when test="$tmpItemType='SfA_Textarea'">
<xsl:variable name="tmpRows"><xsl:value-of select="Rows"/></xsl:variable>
<xsl:variable name="tmpCols"><xsl:value-of select="Cols"/></xsl:variable>
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<textarea class="text" rows="{$tmpRows}" cols="{$tmpCols}" name="{$tmpID}"><xsl:value-of select="Value"/></textarea>
</xsl:when>
<xsl:otherwise>
<label>
<xsl:value-of select="Name"/><b><font color="red"><xsl:value-of select="Required"/></font></b>
<span class="small"> <xsl:value-of select="Information"/> </span>
</label>
<input class="text" type="text" name="{$tmpID}" id="{$tmpID}" value="{$tmpItemValue}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="ItemError">
<xsl:variable name="tmpSupportLink"><xsl:value-of select="SupportLink"/></xsl:variable>
<!--Add error message if it exists. Add below the data entry -->
<!-- <label><xsl:text>Error: </xsl:text><xsl:value-of select="ItemID"/></label> -->
<label></label>
<xsl:choose>
<xsl:when test="$tmpSupportLink=''">
<span class="error"><xsl:value-of select="Message"/></span>
</xsl:when>
<xsl:otherwise>
<a class="error" href="{$tmpSupportLink}" target="_blank"><xsl:value-of select="Message"/></a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_CheckboxOptions">
<xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
<input type="checkbox" name="{$tmpItemOptionID}" value="{$tmpItemOptionID}">
<xsl:if test="$tmpItemOptionSelected='Y'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
<xsl:choose>
<xsl:when test="$tmpItemOptionMultiple='Y'">
<span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
</xsl:when>
<xsl:otherwise>
<span class="checklabelSingle"><xsl:value-of select="Name"/></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_RadioOptions">
<xsl:variable name="tmpItemOptionID"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="Value"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:variable name="tmpItemOptionMultiple"><xsl:value-of select="Multiple"/></xsl:variable>
<input type="radio" name="{$tmpItemOptionID}" value="{$tmpItemOptionValue}">
<xsl:if test="$tmpItemOptionSelected='Y'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
<xsl:choose>
<xsl:when test="$tmpItemOptionMultiple='Y'">
<span class="checklabelMultiple"><xsl:value-of select="Name"/></span>
</xsl:when>
<xsl:otherwise>
<span class="checklabelSingle"><xsl:value-of select="Name"/></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="SfA_SelectOptions">
<xsl:variable name="tmpItemOptionValue"><xsl:value-of select="ItemID"/></xsl:variable>
<xsl:variable name="tmpItemOptionSelected"><xsl:value-of select="Selected"/></xsl:variable>
<xsl:choose>
<xsl:when test="$tmpItemOptionSelected=''">
<option value="{$tmpItemOptionValue}"><xsl:value-of select="Name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$tmpItemOptionValue}" selected="{$tmpItemOptionSelected}"><xsl:value-of select="Name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="PreserveLineBreaks">
<xsl:param name="text"/>
<xsl:choose>
<xsl:when test="contains($text,'
')">
<xsl:value-of select="substring-before($text,'
')"/>
<xsl:call-template name="PreserveLineBreaks">
<xsl:with-param name="text">
<xsl:value-of select="substring-after($text,'
')"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet> -
Running a .jsf file in a browser
could anyone assist ,
i am new to jdeveloper and ADF.
when I run a .jsf file to preview on a browser it return only the html source code
http://localhost:5001/faces/Screening.jsf
regards11 Jul 2012 8:23:48 AM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
11 Jul 2012 8:23:49 AM oracle.security.jps.util.JpsUtil disableAudit
INFO: JpsUtil: isAuditDisabled set to true
11 Jul 2012 8:24:02 AM oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager notifyAfterPopulatingDataControls
INFO: Number of data controls:0
11 Jul 2012 8:24:02 AM oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager notifyAfterPopulatingDataControls
INFO: Number of data controls:1
11 Jul 2012 8:24:32 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.5 (FCS b02) for context ''
11 Jul 2012 8:24:35 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
11 Jul 2012 8:24:42 AM org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl _checkTimestamp
WARNING: Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
11 Jul 2012 8:24:47 AM org.apache.myfaces.trinidadinternal.renderkit.core.StyleContextImpl isDisableStyleCompression
WARNING: Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
11 Jul 2012 8:24:47 AM org.apache.myfaces.trinidadinternal.skin.SkinImpl _isDisableContentCompressionParameterTrue
WARNING: Your environment is configured as production and Apache Trinidad is running with uncompressed CSS. See the "org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION" parameter in /WEB-INF/web.xml
11 Jul 2012 8:24:48 AM oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneRenderer _getSelectedIndex
WARNING: Could not find selected item matching value "#oracle.dte.brace...skinFamily}" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=dte_60b493]
11 Jul 2012 8:24:49 AM org.apache.myfaces.trinidad.component.UIXEditableValue _isBeanValidationAvailable
WARNING: A Bean Validation provider is not present, therefore bean validation is disabled
Compiling...
[8:30:17 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
11 Jul 2012 8:33:56 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.5 (FCS b02) for context ''
11 Jul 2012 8:33:57 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
11 Jul 2012 8:33:58 AM org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl _checkTimestamp
WARNING: Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
11 Jul 2012 8:34:01 AM org.apache.myfaces.trinidad.component.UIXEditableValue _isBeanValidationAvailable
WARNING: A Bean Validation provider is not present, therefore bean validation is disabled
11 Jul 2012 8:34:11 AM oracle.bali.xml.gui.jdev.extension.util.HashStructureUtils logExtensionMessage
WARNING: ClassNotFoundException encountered during getEditorClass
Compiling...
[10:12:44 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:13:44 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:14:09 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:15:09 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:14 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:17 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:18 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:19 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:25 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:26 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.
Compiling...
[10:18:27 AM] Successful compilation: 0 errors, 0 warnings.
[Application CollegeInfoSystem is bound to Server Instance IntegratedWebLogicServer]
[Starting Server Instance IntegratedWebLogicServer]
#### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated. -
Running Out Of FIle Descriptors "Too many open files"
We have a 32 application(running on Solaris 8) that opens socket connections and also some files in read/write mode. The application works fine in normal(under low load) case.
But it is failing under stress environment. At some point under stress environment, when it tries opening a file, it(fopen) gives me error code 24 that means that "too many files opened".
From this it seems that the application is running out of file descriptors. I used the truss, pfiles and lsof utilities to see how many descriptors are currently opened by my application and the number it gives is around 900(and this is the expected figure to be opened by my application).
I also set the ulimit(both hard and soft) to a larger number but it also didn't work. Also when i set the soft limit to 70000, the truss output shows like:
25412/1: 5.3264 sysconfig(_CONFIG_OPEN_FILES) = 70000
23123/1: 7.2926 close(69999) Err#9 EBADF
23123/1: 7.2927 close(69998) Err#9 EBADF
23123/1: 7.2928 close(69997) Err#9 EBADF
23123/1: 7.2928 close(69996) Err#9 EBADF
23123/1: 7.2929 close(69995) Err#9 EBADF
23123/1: 7.2929 close(69994) Err#9 EBADF
23123/1: 7.2930 close(69993) Err#9 EBADF
This goes to close(3).. loops almost 70K times.
Don't know why such output is.
Note: under moderate stress environment where only 400 file descriptors are opened, the application works fine.
can you please help me in this? Is this the file descriptor problem or can be other potential source of problem.
Is this any other way to increase the file descriptor limit.
I aldo trying using LD_PRELOAD_32=/usr/lib/extendedFILE.so.1 but it gave me following error while starting application:
"ld.so.1: ls: fatal: /usr/lib/extendedFILE.so.1: open failed: No such file or direcroty"
Also i cant use purify(because of some reasons) to find file descriptors leakage(if any) and is not possible to upgrade the system to Solaris 10.
Thanks in advance.http://developers.sun.com/solaris/articles/stdio_256.html
Maybe you are looking for
-
Can anyone explain origination/destination on the billing summary?
can anyone explain origination/destination on the billing summary?
-
Open external links in new window
I can't seem to make firefox open external links, e.g. links opened from other applications, in a new window. This is particularly troublesome on multiple desktops since a new tab may be opened in a firefox window on a desktop other than the active o
-
Can't burn full Beyonce album to CD (DRM on 5 tracks)
I bought this album for my wife. I tried to burn it to CD but 5 tracks will not burn because they are DRM protected. She only has a CD player in her car with no aux input. How can I get these tracks burned to CD? There is no indication on the sit
-
Hi All, I recently left BT to go to another supplier for BB and phone line. Since the switch last week i have still been able to use my hub phone as a landline but the date and time have reset to 12am/year 2000. I have tried to login to the hub to t
-
I open it and there are errors that it cant load as if i didnt have internet but I do because my explorer works