HELP !...getting ERROR: java.io.IOException: CreateProcess: ... error=3
I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03 from
BEA site ). I use its xmlbean.jar and it works fine. I did not use its "scomp"
utility until today ( I used BEA's on-line compiler and it worked just great ).
When I tried to use the stand alone "scomp" , I've got into trouble. Here is the
trace of the error I receive for all schemas including the example schema ( I
have followed the instructions described in the attached README file for the environment
configuration) :
C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar C:\XMLBeanToolkit\xkit\schemas\easypo
Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
Time to build schema type system: 1.297 seconds
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
null
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:67)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
BUILD FAILED
Please, help me to find what is wrong here !!!
Thank you,
- Michael P.
[README.txt]
Sorry, folks, the answer was quite simple: the default scomp script has pointed
to "wrong" location for java.exe. In particular, the scrip has specified compilation
command like this:
java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
while it had to specify path to the java.exe based on JAVA_HOME env. variable
( I am saying "had" because README instructions state that the JAVA_HOME has to
be properly configured ). So, the solution looks like:
%JAVA_HOME%\bin\java -classpath %cp% com.bea.xbean.tool.SchemaCompiler %*
- Michael P.
"Michael P." <[email protected]> wrote:
>
>
>
I use stand alone "XMLBeans survival kit" ( which I downloaded on 11/1/03
from
BEA site ). I use its xmlbean.jar and it works fine. I did not use its
"scomp"
utility until today ( I used BEA's on-line compiler and it worked just
great ).
When I tried to use the stand alone "scomp" , I've got into trouble.
Here is the
trace of the error I receive for all schemas including the example schema
( I
have followed the instructions described in the attached README file
for the environment
configuration) :
C:\WSAD_Workspaces\dc_xml_beans\xml_to_java\test>scomp -out myeasypo.jar
C:\XMLBeanToolkit\xkit\schemas\easypo
Loading schema file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsd
Loading config file C:\XMLBeanToolkit\xkit\schemas\easypo\easypo.xsdconfig
Time to build schema type system: 1.297 seconds
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
null
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.1_05\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\a337335\LOCALS~1\Temp\javac31952 error=3
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:67)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
at com.bea.xbean.tool.SchemaCodeGenerator.compileTypeSystem(SchemaCodeGenerator.java:178)
at com.bea.xbean.tool.SchemaCompiler.compileImpl(SchemaCompiler.java:547)
at com.bea.xbean.tool.SchemaCompiler.main(SchemaCompiler.java:141)
BUILD FAILED
Please, help me to find what is wrong here !!!
Thank you,
- Michael P.
Similar Messages
-
Hello,
I got this exception when I ran my build file on Eclipse. If I ran it outside
Eclipse,
everything works fine.
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
The error comes from the following place:
[xmlbean] at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
It seems the above method is not getting the correct "java.home", it should get
jdk/bin/javac.
Can anyone give a pointer on this?
thanks,Hello,
I got this exception when I ran my build file on Eclipse. If I ran it outside
Eclipse,
everything works fine.
java.io.IOException: CreateProcess: "C:\Program Files\Java\j2re1.4.2\..\bin\javac.exe"
-J-Xmx256M @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\javac53402 error=3
The error comes from the following place:
[xmlbean] at com.bea.xbean.tool.CodeGenUtil.externalCompile(CodeGenUtil.java:167)
It seems the above method is not getting the correct "java.home", it should get
jdk/bin/javac.
Can anyone give a pointer on this?
thanks, -
Help...java.io.IOException Problem
Hello,
I am having problems running Weblogic 4.5.1 as Windows NT Service but no
problems when running from command window.
The configuration is such:
Hardware:
Dual Processor PIII, 1GB memory, 2 NICs, mirrored internal RAID SCSI drive
on Compaq 1850R
OS:
Windows NT 4.0 SP5
Configuration:
JVM: JDK 1.2.2 (heap size 384M) from Sun
Weblogic 4.5.1 (Server version value=4.5.1 - 128 bit domestic version)
weblogic.system.executeThreadCount=40
weblogic.system.nativeIO.enable=true
weblogic.system.enableConsole=true
If I start the weblogic server from the command window and start throwing
https requests to it, the server works fine for as many number of messages
as I want and for as long as I want.
But when I start the server from the services window in the control panel,
after 98th message it starts giving error (found ofcourse in the log file
only). The snippet of the log file is shown below:
Error found in log file:
Thu Apr 27 05:57:34 PDT 2000:<I> <ListenThread> Listening on port: 80
Thu Apr 27 05:57:35 PDT 2000:<I> <SSLListenThread> Listening on port: 443
Thu Apr 27 05:57:35 PDT 2000:<I> <WebLogicServer> WebLogic Server started
Thu Apr 27 05:58:01 PDT 2000:<I> <ServletContext-Servlets>
com.mycompany.servlet.frontline.frontlineServlet: init
Thu Apr 27 05:59:01 PDT 2000:<E> <CliCon-#|myserver|11.956840209531>
FrontlineSessionBean.processMessage: error parsing message:
java.io.IOException: The handle is invalid
Thu Apr 27 05:59:01 PDT 2000:<E> <CliCon-#|myserver|11.956840209531>
FrontlineSessionBean.processMessage: error parsing message:
java.io.IOException: The handle is invalid
Your insights will be highly helpful.
thanks.
Alay DesaiHello all,
I'm having almost the same issue related to error message when I hit a button on my manufacturing software.
*"ScriptException: Error in exec: java.io.IOException: CreateProcess*
*exec(C:\\progra~1\\intern~1\\iexplore.exe http://cbweb4:81/barcode/CMbombyorder.asp\u003FR2=P&T2=12875424-P")*
This is when I hit a button that works for us to show this webpage I wrote previously. Last week we didnt have this issue, this just started this morning and I dont know what do to, it shows something about JAVA, that's why I'm asking to you guys, I dont know if you could please enlight me a little bit.
Thanks in advance. -
Build Failed: java.io.IOException: CreateProcess
Hi,
Would someone help me on my problem. I had encountered a "java.io.IOException: CreateProcess" when the ant script was about to execute the lines below:
<java classname="AllTests" fork="true" failonerror="yes">
<classpath>
<path refid="all.classpath" />
<path refid="emma.coverage.classes" />
<pathelement location="${emma.instr}" />
<pathelement location="${classes.temp}" />
</classpath>
<jvmarg
value="-Demma.coverage.out.file=${emma.coverage}/coverage.emma" />
<jvmarg value="-Demma.coverage.out.merge=true" />
</java>
The result and the message was stated below.
BUILD FAILED
C:\RAD901\build\emma-build.xml:89: java.io.IOException: CreateProcess: "C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\java\
jre\bin\java.exe" -Demma.coverage.out.file=C:\RAD901\build/temp/emma/coverage/coverage.emma -Demma.coverage.out.merge=true -classpat
h "C:\RAD901\build\libs\XmlWriter.jar;C:\RAD901\build\libs\cactus1-6\aspectjrt-1.1.1.jar;C:\RAD901\build\libs\cactus1-6\cactus-1.6.1
.jar;C:\RAD901\build\libs\cactus1-6\cactus-ant-1.6.1.modified.jar;C:\RAD901\build\libs\cactus1-6\commons-codec-1.3.jar;C:\RAD901\bui
ld\libs\cactus1-6\commons-httpclient-3.0.1.jar;C:\RAD901\build\libs\cactus1-6\commons-logging-1.0.3.jar;C:\RAD901\build\libs\cactus1
-6\httpunit-1.5.4.jar;C:\RAD901\build\libs\cactus1-6\nekohtml-0.7.4.jar;C:\RAD901\build\libs\catalina.jar;C:\RAD901\build\libs\com-d
arwinsys-util.jar;C:\RAD901\build\libs\commons-pool-1.4.jar;C:\RAD901\build\libs\db2jcc.jar;C:\RAD901\build\libs\db2jcc_license_cu.j
ar;C:\RAD901\build\libs\emma.jar;C:\RAD901\build\libs\hapi-0.5.1.jar;C:\RAD901\build\libs\jboss-common.jar;C:\RAD901\build\libs\jstl
-1.0.jar;C:\RAD901\buil
The result was incomplete. I don't know why, but I would like to know the cause of my exception. I hope somebody could help me.
Thank you so much in advance.Hello all,
I'm having almost the same issue related to error message when I hit a button on my manufacturing software.
*"ScriptException: Error in exec: java.io.IOException: CreateProcess*
*exec(C:\\progra~1\\intern~1\\iexplore.exe http://cbweb4:81/barcode/CMbombyorder.asp\u003FR2=P&T2=12875424-P")*
This is when I hit a button that works for us to show this webpage I wrote previously. Last week we didnt have this issue, this just started this morning and I dont know what do to, it shows something about JAVA, that's why I'm asking to you guys, I dont know if you could please enlight me a little bit.
Thanks in advance. -
Help with a java.io.IOException
input : MemoryAccess - to load process into the disk
output : true if file opened, flase if fails
purpose : to open a file and read in the processes
code sourse: http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html
public boolean openFile(MemoryAccess ma)
Process p;
String file, inputString;
char name = ' ';
int mem = 0, quantum = 0, numProc;
char[] charArray;
//Ask user for file name
System.out.print("Enter file name:");
BufferedReader stdin = new BufferedReader(new InputStreamReader( System.in ));
file = stdin.readLine();
//We are writing this code under the assumption that the memory column(in small.dat) is formated to 2 spa\
ces
//and all other columns are one space.
try {
BufferedReader in = new BufferedReader(new FileReader(file));
numProc = new Integer(in.readLine()).intValue();
while ((inputString = in.readLine()) != null)
charArray = inputString.toCharArray();
name = charArray[0];
if((charArray[2] != ' ') && (charArray[3] != ' '))
mem = ((int)(charArray[2] * 10) + (int)charArray[3]);
else if(charArray[2] != ' ')
mem = charArray[2];
else
mem = charArray[3];
quantum = (int)charArray[5];
System.out.print(name + " ");
System.out.print(mem + " ");
System.out.println(quantum);
in.close();
return true;
} catch (IOException e)
return false;
Pwnix.java:67: unreported exception java.io.IOException; must be caught or declared to be thrown
file = stdin.readLine();
^
1 error
That is my code and my error, I can't figure out what's wrong.>
Pwnix.java:67: unreported exception
java.io.IOException; must be caught or declared to be
thrown
file = stdin.readLine();
^
1 error
http://forum.java.sun.com/help.jspa?sec=formatting
http://forum.java.sun.com/help.jspa?sec=formatting
That is my code and my error, I can't figure out
what's wrong.http://forum.java.sun.com/help.jspa?sec=formatting
Please use the code tags around your code samples. It is much easier to read.
http://forum.java.sun.com/help.jspa?sec=formatting
The error message you see indicates that the readLine() method could throw an IOException. Therefore, you must either place that method call inside a try block, or declare to throw the IOException from your own method where the call to readLine is made. -
Help please! java.io.IOException: Stream closed
When I run my webapp under Tomcat5.5, it works fine, but I got the following Exception in Tomcat stdout.log:
2005.04.19. 15:54:47 org.apache.jasper.runtime.PageContextImpl release
WARNING: Internal error flushing the buffer in release()
2005.04.19. 15:54:47 org.apache.catalina.core.StandardWrapperValve invoke
WARNING: Servlet.service() for servlet jsp threw exception
java.io.IOException: Stream closed
at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
at org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:159)
at org.apache.jsp.pages.tree_jsp._jspService(org.apache.jsp.pages.tree_jsp:58)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)I dont have an idea why did my webapp throw this. I got it when I logged in the webapp. I cant find the root problem, because there is no a word from my package in the exception-list above. What happened?
Thanks in advance.SEVERE: Servlet.service() for servlet jsp threw exception
java.io.IOException: Stream closed
at org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
at org.apache.jsp.accSubAccount_jsp._jspService(accSubAccount_jsp.java:244)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)It is in JSP, I was just quoting that looking into error stack I opened genrated java file accSubAccount_jsp.java at line 244 and came to know that this file has only 196 lins.
At successfull submission I am opening a page through javascript window.location directive, probably it may be the reason? -
Plz help , getting error in my java code
Can any one tell the reason for this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
is there any size limit for java classes that I am using in my code?
My code Looks like:
FileChannel in = null, out = null;
try {
in = new FileInputStream(sourceLocation).getChannel();
System.out.println(in.size() +"RptPageBreak rtn: b 4 read file into buffer, source=" + sourceLocation);
// read the file into buffer
// System.out.println("-1 " +in.size() );
MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, in.size());
//System.out.println("RptPageBreak rtn: AFTER read file into buffer" );
System.out.println("1: "+ buf.capacity()+" " +in.size() );
// CharBuffer cb;
try {
cb = Charset.forName ("UTF-8").decode (buf);
} catch (Exception ex) {
System.out.println("2:"+ ex.getMessage());
ex.printStackTrace();
System.out.println("2");
String lines[] = Pattern.compile ("\n").split (cb, 0);
//System.out.println("RptPageBreak rtn: lines.len=" + lines.length);
Writer writer = new FileWriter (targetLocation);
System.out.println("3");
for (int i = 0, n = lines.length; i < n; i++) {
// also compare if starts with a CRLF
if ( ( lines.startsWith("\r\n" + rpt_headg_id) == true ) ||
( lines[i].startsWith("\f" + rpt_headg_id) == true ) ||
( lines[i].startsWith(rpt_headg_id) == true ) )
//if ( lines[i].contains(rpt_headg_id) == true )
//System.out.println("RptPageBreak rtn: found headg in if loop " + rpt_headg_id );
writer.write ("1");
else {
writer.write (" "); // detail lines shift over 1 by addg a space
writer.write (lines[i]);
writer.write ('\n');
//System.out.println("RptPageBreak rtn: lines[i]=" + i + ' ' + lines[i]);
writer.close ();
}catch(Exception e)
System.out.println("RptPageBreak rtn: Catch Exception: " + e.getMessage() );
status=false;
e.printStackTrace();
finally {
try {
if (in != null) in.close();
if (out != null) out.close();
status=true;
catch(Exception e)
System.out.println("RptPageBreak rtn: Finally-Catch Exception: " + e.getMessage() );
status=false;
e.printStackTrace();It has nothing to do with classes. It is that you are reading to much info into memory at one time. If you are only going to cycle through the input line for line, anyway, then why don't you simply read the file (or whatever) a line at a time and process it as you read it, rather than loading the entire thing at once?
-
Lync Powershell help -getting error "Management Object Not found"
Hi,
I want to reference a list of users in Lync that do not have a HostedVoicemailPolicy applied. Please can someone help me..
I have a list of users that form a txt file I am referencing called $lynctest.
User1
User2
User3
NoSuchUser1
NoSuchUser2
I have the following and its not catching the error so that I can output to another file.
try
foreach($lyncuser in $lynctest)
Get-CsUser -Identity $lyncuser | select displayname, hostedvoicemailpolicy
catch
write-host "$lyncuser user not found" > "c:\datatemp\listofusers.txt"Not super efficient, but quick and dirty. If you're talking about thousands of users, this might be too slow and we can work something else out. If you're talking about a handful, this might be fine.
foreach($lyncuser in $lynctest) {
$founduser=Get-CSUser|Where-Object {$_.samaccountname -match $lyncuser}
if ($founduser) {
"The user exists"
else {
"The user does not exist"
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
SWC Unified Communications
This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Connect by - sql help : getting error ORA-01489: result of string concatena
here is an sql query and I am trying to cook a decode but since there are many columns invloved when I am trying to run this I am getting the following error:
ORA-01489: result of string concatenation is too long
Any kind of help is appreciated, I need to get this going otherwise I am dead :(
Regards
Rahul
SQL:
select sys_connect_by_path(c.decode_prep,'-') decode_prep
from (select 'DECODE(BIAPPS_11.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||','||'RAHULKALRA.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||',''1'',''0'')' decode_prep, rownum curr, rownum -1 prev
from (select rownum rn
from dual connect by rownum <=
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
from dual)) a, (select ','||'ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM'||',' all_cols from dual) b) c
start with curr = 1
connect by prior curr = prev
order by length(sys_connect_by_path(c.decode_prep,'-')) desc
same as above sql only difference is here I am pulling the first record from the result set which above query returns :
select ltrim(replace(decode_prep,'-','||'),'||') decode_prep
from (select sys_connect_by_path(c.decode_prep,'-') decode_prep
from (select 'DECODE(BIAPPS_11.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||','||'RAHULKALRA.'||substr(b.all_cols,instr(b.all_cols,',',1,a.rn)+1,instr(b.all_cols,',',1,a.rn+1)-instr(b.all_cols,',',1,a.rn)-1)||',''1'',''0'')' decode_prep, rownum curr, rownum -1 prev
from (select rownum rn
from dual connect by rownum <=
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
from dual)) a, (select ','||'ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM'||',' all_cols from dual) b) c
start with curr = 1
connect by prior curr = prev
order by length(sys_connect_by_path(c.decode_prep,'-')) desc)
where rownum = 1
Edited by: Mac_Freak_Rahul on Nov 28, 2012 1:31 AM : in the first sql ')'
removed after desc in the last line so now this query will run and throw an error.Clearly your error is because the string concatenation you are doing with sys_connect_by_path is exceeding the 4000 bytes permitted by SQL.
In that case you need to concatenate your data into a CLOB datatype, for which you'll need a CLOB aggregation function...
create or replace type clobagg_type as object
text clob,
static function ODCIAggregateInitialize(sctx in out clobagg_type) return number,
member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number,
member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number,
member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number
create or replace type body clobagg_type is
static function ODCIAggregateInitialize(sctx in out clobagg_type) return number is
begin
sctx := clobagg_type(null) ;
return ODCIConst.Success ;
end;
member function ODCIAggregateIterate(self in out clobagg_type, value in clob) return number is
begin
self.text := self.text || value ;
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self in clobagg_type, returnvalue out clob, flags in number) return number is
begin
returnValue := self.text;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self in out clobagg_type, ctx2 in clobagg_type) return number is
begin
self.text := self.text || ctx2.text;
return ODCIConst.Success;
end;
end;
create or replace function clobagg(input clob) return clob
deterministic
parallel_enable
aggregate using clobagg_type;
SQL> select trim(',' from clobagg(ename||',')) as enames from emp;
ENAMES
SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,CLARK,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,MILLER
SQL> ed
Wrote file afiedt.buf
1 with t as
2 (select 'PFL' c1, 0 c2,110 c3 from dual union all
3 select 'LHL', 0 ,111 from dual union all
4 select 'PHL', 1, 111 from dual union all
5 select 'CHL', 2, 111 from dual union all
6 select 'DHL', 0, 112 from dual union all
7 select 'VHL', 1, 112 from dual union all
8 select 'CPHL', 0, 114 from dual union all
9 select 'WDCL', 1, 114 from dual union all
10 select 'AHL' ,2 ,114 from dual union all
11 select 'NFDL', 3, 114 from dual)
12 --
13 -- end of test data
14 --
15 select trim(clobagg(c1||' ')) as c1, c3
16 from (select * from t order by c3, c2)
17 group by c3
18* order by c3
SQL> /
C1 C3
PFL 110
LHL CHL PHL 111
DHL VHL 112
CPHL AHL NFDL WDCL 114 -
Help Getting Errors in program
I keep getting this error:
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at java.lang.String.compareTo(Unknown Source)
at PasswordApplet.actionPerformed(PasswordApplet.java:54)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Here's my code:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class PasswordApplet extends Applet implements ActionListener
String id, password;
boolean success;
String idArray[] = {"id", "pop"};
String passwordArray[] = {"password", "snap"};
Label headerLabel = new Label("Please type your ID and Password");
Label idLabel = new Label("ID:");
TextField idField = new TextField(8);
Label passwordLabel = new Label("Password:");
TextField passwordField = new TextField(8);
Button loginButton = new Button("Login");
public void init()
setBackground(Color.orange);
setLayout(new FlowLayout(FlowLayout.LEFT,50,30));
add(headerLabel);
add(idLabel);
add(idField);
idField.requestFocus();
add(passwordLabel);
add(passwordField);
passwordField.setEchoChar('*');
add(loginButton);
loginButton.addActionListener(this);
public void actionPerformed(ActionEvent e)
success = false;
for (int i = 0; i<idArray.length;i++)
if((idArray.compareTo(id)==0) && (passwordArray[i].compareTo(password)==0))
success = true;
if(success = true)
headerLabel.setText("Login Successful");
repaint();
else
headerLabel.setText("Invalid. Try Again.");
clearFields();
void clearFields()
headerLabel.setText("Please type your ID and Password");
idField.setText("");
passwordField.setText("");Nevermind I got it But now I have a new problem: The program works but it's saying login successful whether the id and password are wrong or not. Any ideas on how to make it only say Login Successful when correct id and password are input?
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class PasswordApplet extends Applet implements ActionListener
String id, password;
boolean success;
String idArray[] = {"id", "pop"};
String passwordArray[] = {"password", "snap"};
Label headerLabel = new Label("Please type your ID and Password");
Label idLabel = new Label("ID:");
TextField idField = new TextField(8);
Label passwordLabel = new Label("Password:");
TextField passwordField = new TextField(8);
Button loginButton = new Button("Login");
//password = passwordField;
public void init()
setBackground(Color.orange);
setLayout(new FlowLayout(FlowLayout.LEFT,50,30));
add(headerLabel);
add(idLabel);
add(idField);
idField.requestFocus();
id = idField.toString();
add(passwordLabel);
add(passwordField);
passwordField.setEchoChar('*');
password = passwordField.toString();
add(loginButton);
loginButton.addActionListener(this);
public void actionPerformed(ActionEvent e)
success = false;
for (int i = 0; i<idArray.length;i++)
if((idArray.compareTo(id)==0) && (passwordArray[i].compareTo(password)==0))
success = true;
if(success = true)
headerLabel.setText("Login Successful");
repaint();
else
headerLabel.setText("Invalid. Try Again.");
clearFields();
void clearFields()
headerLabel.setText("Please type your ID and Password");
idField.setText("");
passwordField.setText("");
Message was edited by:
SancLunatic -
Help Getting error 1602 in itunes on the ipad
HELP ME PLEASE everytime i try to update in itunes i get a 1602 error it gets stuck a the thrid verifying with apple and then after like three minutes it doesnt move i have tried everything to fix it right now it is just stuck on a black screen i can put it in dfu mode but thats it ...i have also tried differnet usb plugs but nothing i even tried two different computers i am currently running windows 7.. i dont know whats wrong if someone could help me that would be awesome i cant even put the device in recovery mode only dfu mode
http://www.youtube.com/watch?v=AsWnZOCyt-0 here is a link to a video i uploaded that shows the exact problem that i am having
-
HELP--getting error message upon export attempt:
WHile trying to export from AE CS5, I'm getting an error meassage which reads, " The directory originally specified
in the selected output module no longer exists".
I've tried rebooting and also, while re-launching after effects, I tried holding CTL, ALT, and shift (something i heard might work)...
neither worked....
What can i do????
THANK YOU...
ANOTHER bit of info----at the start of working on this project (it is a template project), i have the message
,"this project contains 1 reference to a missing effect. Please install the following effect to restore this reference. ("Form")"....
Could this have anything to do with my export issure?.....The project is working fine and looks great, so at first i didn't think
not having "form" was an issure, but now i'm wondering............If this is connected, what is form and can i download it and add
it for free???
Thanks again..what is form and can i download it and add it for free???
Trapcode Form. And no, it costs money.
The directory originally specified in the selected output module no longer exists
It's simply a leftover render item on the render queue pointing to a path that does not exist on your computer.
Mylenium -
The error reads : - G/L account 501001 requires a valid tax code
This error has only started since we applied the PI01 price to the IV document, if we remove this then the posting are all ok.
In the IDOC with the price using PI01 there is a new segment E1EDK05 +, if we remove the intercomaony price then the following segment comes back E1EDK04 A0.
The only way around this error was to allow posting in the G/L accoutn with out a tax code, but we want a tax code to be posted.
Please please please help me (if you can)
Regards
SteveWe have solved the issue by entering A0 in the G/L setting
-
/System/Library/Extensions/hpPlugInInit.kext was installed improperly How do I reinstall correctly? I can never upgrade software because of this error.
Go to that folder and delete that file, then reinstall whatever software it was a part of (probably some HP printer software, I'd guess?).
-
Dynamic SQL Help - Getting Errors
Basically I have a table with employee data, and I'm trying to create a dynamic PL / SQL block that creates a new table and copies over the data from employee table to the new one.
I'm teaching myself dynamic SQL so this is practice. Please don't offer "better solutions" because I'm sure there are plenty - I'm just looking to complete the code as is so I better understand this query language.
Here is my code:
set serveroutput on size 10000
declare
cursor c is
select table_name, tablespace_name
from user_tables where table_name = 'EMP';
cursor c2 is
select table_name, column_name, data_length, data_type, data_precision
from user_tab_cols where table_name = 'EMP';
cursor c3 is
select *
from emp;
counter number(3);
counter := 0;
begin
for i in c loop
if (counter = 0) then
create table emp2;
insert into emp2 table_name, tablespace_name;
for i in c2 loop
insert into emp2 table_name, column_name, data_length, data_type, data_precision;
counter := counter + 1;
end loop;
end loop;
for i in c3 loop
insert into emp2 empno, ename, job, mgr, hiredate, sal, comm, deptno;
end loop;
end;
Here are my errors:
Error starting at line 3 in command:
declare
cursor c is
select table_name, tablespace_name
from user_tables where table_name = 'EMP';
cursor c2 is
select table_name, column_name, data_length, data_type, data_precision
from user_tab_cols where table_name = 'EMP';
cursor c3 is
select *
from emp;
counter number(3);
counter := 0;
begin
for i in c loop
if (counter = 0) then
create table emp2;
insert into emp2 table_name, tablespace_name;
for i in c2 loop
insert into emp2 table_name, column_name, data_length, data_type, data_precision;
counter := counter + 1;
end loop;
end loop;
for i in c3 loop
insert into emp2 empno, ename, job, mgr, hiredate, sal, comm, deptno;
end loop;
end;
Error report:
ORA-06550: line 14, column 13:
PLS-00103: Encountered the symbol "=" when expecting one of the following:
constant exception <an identifier>
<a double-quoted delimited-identifier> table long double ref
char time timestamp interval date binary national character
nchar
The symbol "<an identifier>" was substituted for "=" to continue.
ORA-06550: line 19, column 7:
PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
( begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifi
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:Start reading the Documents
There are basic errors in your code, some are pointed out below
declare
cursor c is
select table_name, tablespace_name
from user_tables where table_name = 'EMP';
cursor c2 is
select table_name, column_name, data_length, data_type, data_precision
from user_tab_cols where table_name = 'EMP';
cursor c3 is
select *
from emp;
counter number(3);
counter := 0; --"You cannot initiate variable like this"
begin
for i in c loop
if (counter = 0) then
create table emp2; --"You cannot create tables directly in PL/SQL. Need to use dynamic SQL.Syntax also wrong. "
insert into emp2 table_name, tablespace_name; --"Values caluse missing"
for i in c2 loop
insert into emp2 table_name, column_name, --"Values caluse missing"
data_length, data_type, data_precision; --"Record syntax not used"
counter := counter + 1;
end loop;
end loop;
for i in c3 loop
insert into emp2 empno, ename,
job, mgr, hiredate, sal, comm, deptno; --"Values caluse missing"
end loop;
end;
Maybe you are looking for
-
Hi Friends. I want to design a web based game. There is a server and two clients. Each client is a player and the server will handle the collaboration between them. I am using Netbeans and jsp. First client one will type the url of server and gets co
-
Can't send texts until iPhone is powered off.
For the past 3 mornings, I have had to power off my iphone4 before sending any texts. I don't know of it's just iMessage or any texts. I've tried sending iMessage and it won't send unless I power it off and let it reboot.
-
I have just started using Time Machine. I was thinking about deleting old E-Mails on my Mac to clean. Does Time Machine back up the E-Mails , if so how can I find them in Time Machine ??
-
How can I fully see longer folder names in folder tree?
Is there any way to get the "Folders" part of the left panel to fully display longer folder names? My folder structure and naming contains names such that even with the panel stretched as big as it will go, I still can't see the entire name. If I cou
-
How do you input notes onto a musical score in Garageband?
Hello, after a failed attempt at doing it myself i wondered if anybody else knew how to input notes onto a musical score on Garageband. When I say input notes I mean for example if the stave is there at the bottom is there a way which I can simply ad