Error in the output file
Hi,
I am pasting the code below. The main objective of this file is to accept three command line arguments 1st argument is data to be inserted into the file, 2nd argument is the position where the data has to be inserted and finally the file name to which the data has to be writen using RandomAccessFiles in Java.
When i try to write some data the data being written is in Hexadecimal. Kindly help me with respect to this.
Code goes as follows:
import java.io.*;
public class RandomFileTest
public static void main (String [ ] args)
String value = null;
long position = 0;
if (args.length < 3)
System.out.println ("Usage: java RandomFileTest value position
filename");
System.exit(0);
value = args[0];
position = Long.parseLong (args[1]);
RandomAccessFile file = null;
try {
file = new RandomAccessFile (args[2], "rw");
catch (FileNotFoundException ffe)
System.out.println("File not found. Will create it.");
if (position > 0 && position <= file.length ())
file.seek (position);
file.writeChars (value);
}
try {
file = new RandomAccessFile (args[2], "rw");
if (position >= 0 && position <= file.length ()) {
file.seek (position);
file.writeChars (value);
catch(IOException ioe) {
System.out.println(ioe);
}
Similar Messages
-
Hey guys,
I have this following problem:
When i export my movie to my desktop from premiere elements 11 it fails and says "Error of export: You are not permitted to create or delete the output file."
This is the first time i had this problem.
I have no ideas to solve this problem ... I don't found it on this page neither in the whole web -.-
I look forward to get requestsS
QuickTime is a requirement for Premiere Elements (any version). Please download and install it so that we can continue this troubleshooting. Among other things, without QuickTime installed, you will not have QuickTime presets in Publish+Share and will not have available to you codecs supplied by that player.
Please right click the Premiere Elements 11 desktop icon and apply Run As Administrator. Please review computer permissions..
In the meanwhile, please reply to all the questions, including
What is the description for your export choice and does it make a difference if your Export Save In location is the desktop or to Video Folder in Documents?
What is a description of your computer resources?
Please consider and supply details need to help us help you.
We want you to succeed.
Thank you.
ATR -
IDOC to XML : error in opening the output file in iexplorer
Hi Frnds,
I have a scenario IDoc to xml where in Im getting some non ascii values in the idoc for which I used ISO-8859-1 encoding technique but still the conversion is not done. Iam unable to opend the output file in internet explorer giving the follwoing error as :
An invalid character was found in text content. Error processing resource
Please help me how to overcome this issue.
Thanks in advance,Hi,
As i posted previously in xi UTF-8 is the default encoding if message protocal is FILE.
And UTF-8 encoding support unicodes..
Can reconfigure your receiver file adapter with file type as Binary and check once again.
go through http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
refer File Type
now i check with a japanese double byte character and i can open in iexplorer.
regards,
pradeep A. -
What are the cases that cause the I/O error writing to output file
may i ask what are the cases that cause the I/O error writing to output file ??
cause i have the write path and the input file has data
any ideas???and the permission is to write first time then append to itBy "permission" is meant the operating system controlled rights that let
particular users do specified things with specified files or directories.
the error message is a the title of the message
I/O error writing to output fileThe java runtime actually creates a much more useful error message than
this but, unfortunately, your program is swallowing this error message and
replacing it with the message you see.
Somewhere in your code you have something like:try {
// all sorts of stuff goes here
// including the code that is intended to
// write to the file
} catch(IOException ioe) {
System.out.println("I/O error writing to output file");
// add this line
//ioe.printStackTrace();
}It might say Exception rather than IOException.
To get a much more useful error message add the commented line. -
Getting junk data in the output file in UNIX server due to UNICODE error.
Hi All,
I am working on an Upgradation project from 4.7 to mySAP ERP 2005.
IN 4.7 we are using
OPEN DATASET lv_filename FOR OUTPUT IN BINARY MODE. and getting the file as required.
In ECC 6.0 for the same OPEN DATASET statement ,the output file in unix server has the junk data having the characters like #<##d9{y#+G9###T>j(##^# #K## #q### #####.
Pls help me in this issue to proceed further .
Thanks,
Chakradhar.Hi Markus,
Below are the files data in both environments.
In ECC 6.0
001B2274001802007051 0 20070519CTLMEA RPTIME00043900 #
###9##;c_5####Tj#y#.##'###u###<#<##d9{y#+##G9###T>j(###^###K####q##########C##dA4####ձ###x##
R[#!#J##ڢw###u#-C#'Qho#箐}j##w%##/#'ZhW##s###nи#ڻ>-J#####Ж#tP}##Hu#}Q7###Sh_###C4<3nqk##i l#
####{############Qns###;####p##{si##y##@##ϰ0####C###,###2ύ#j̾########Q#f####;)k>lO#5#n###ܼ#
####M##S##IM#z0#o##ԭ####!#V#9###ں#?s##[#####V&#˴s#��[#l#s##뷢:#Զ{Ȥ��M-##v@#########v#߲###s##
9Q##!#d#####`#############Lc####J#######%?######E#HV3#(#N####Wl####}S#O######zA[##m####u/7#T
##2#s##Q#umF]##Z###}##݂###a######z1#`#####됞-###Q#o#####Q###x#######7Z[##?#V#e##nI####O1=u[#
##p##Kj#####]#####/5#20{####Ӝ##x##A#?###xa##/<^#Rj䅥#######xI#+j#%###$##$######p=##V#Ԋ
#######k#K##yI#yI#!/)#y#z##-y######"/#eڵ##/############*###"/_##-##+##/#y9#####5#9/#yI#A#
###################J/yih=####u4i#K##t####ܞ######=##AX###J##z#####KC믔## /###G{#K#####
In 4.7
001B2274001802007051 0 20070519CTLMEA RPTIME00043900
ãÔ?®zåÖ#Iï-_Î-ør7##*Ódöã ²äÐÁSjòä`ëÏ©"yÿï¾E#[µºEW#g#2éu##a±¸u~#ZäTéR¯F&o#C·¼åÈÝÁ%½ß´y6+##¿
íE#z!#â#ùG#>{#éJæ##jÅSM<±òxwÆüI¾jâ#µ#ù
íQ ÕÈ###dÝ#/«#ycãA¼#ø#7#¿#¼#íxãý#y«#o#â¡ùéËÖ_C¼½À4ðÀó#Ð8?qÊ#O½Î¿_##b#xjÛÓ#OÜ#×gÌ#×ós##
í¡ùh¿~ëÊÓü#ò#'¡#Á#â©#<áoú#'Ô®ü#»L»þ#y)hà#ç#Z[¡#'®Uy1?YC<Ýú#iÇÇ###Íç'Ô#§#Ù#O§#f<###B{#§##ñ
#0H}¬#^##6¨7V¨7VÚX#M9&#A#øG º'õxOù§ø #W¨Å+Ðb#ÉÇ7#SôRXß\u00A7à#wE"#mê#óÀd# ¼##gn###:ô#E<#######ú
ûJ¦H}#·¦Y½â>ºbò#xSSÿÿÕ«óG#ï#6²f´Ú¾fyqèhJÖçCOr´#Ý#S?##KËÄ×mâë¶x)º×ªh2Åw8&í####7 `Ùo#ö»#òöw$
½##Gê#ì#»#La)ì##Ý÷#{7í´éã»##ãî]¾[##{O#¾C##£¶G#û¼Eû#dL#ª:#PÉEÉ>Ó##ª:G#éaR^·BEµÏ+¹###y#N##ȱ
DÕ##5#"9Ní>#íFo##kp#ÂðÆè5¿ð½F®¯M##þð1#îi##Z #Z #Z#ô-¾#§èH»û¹ö9é#Ôä#001B2274001802007051
èÁ##<(#ÿ#¢²ÿ#è#éc#z¾vçÌá#¹#ý#x%ìÜ#çÌ##ùÍÙ#¹{ǯepmâí#¸Ö##¸=ÝÙ½¹uë·,ù#þ¼øl###£åg#,##-`q#ÿøæï
viÁ#]3#.O#þÊöèR##=##L#LÊk###¤à##ó#'V052 øé]+####ã!ÁC#s#q###åLj##Á¯Æ4#.àíT#¸Þ¹µ·¶É)ç#Ïå#<#/ð
Thanks,
Chakradhar. -
Input file should be deleted only after the output file is successful.
Hi Experts,
Could you pleas solve the below issue.
In a file to file scenario, the input file will be picked from a directory location and after processing output file will be placed in the output directory location specified in the receiver communication channel.
In the sender communication channel for the scenario mentioned above, if the processing mode is given as delete, the input file will be delete as soon as the file was successfully read by the adapter, but this will not ensure that the file processing is complete and the output file is being created.
If we have a scenario in such as way that the input file should be deleted from the input folder only if the complete process is successful and the output is generated. how can we achieve this functionality?.
And one more thing if we got the successful output the output file should be placed in one folder. and the if the output file is having errors it should be placed in other folder.Hi,
In Receiver communication channel I have used the below command in Run Operating System
.And I have kept the processing mode of sender communication channel as test.
cmd.exe: /C "del /Leela/test.xml"
You are running the comman line program configured in the receiver File Adapter,but in command line you mentioned the Sender File Folder , So i guess it's not getting processed.
Try this:
Try to run the command line in the Sender File Adapter Side
"Place this in " --> Run OS Command After Message Processing.
Hope this would work and get in parrallel with u r requirement.
regards
Srini -
Header Name in the output file using content conversion
Dear All,
I want to have a text file with a header in the output. I have given the following values for content conversion:
RecordSet structure = Record,Row
Record.fieldSeparator='nl'
Row.endSeparator='nl'
Row.fieldSeparator=','
Row.addHeaderLine=1
but still I am not getting header in the output file. Please tell me where I am making a mistake in getting the header.
Reg,
NJhi chirag,
thnx for replying.
i m getting the required output file without any error but i m not getting header. i hve added "addHeaderLine" parameter in content conversion but still i m not getting header in the output file.
reg,
nj -
The output file for your concurrent request is not initialized
Application: Application Object Library(FND)
Component Type: SERVICE_INSTANCE
Component Name: Standard Manager(STANDARD)
/*The output file for your concurrent request is not initialized.
Cause: Your concurrent program execution was not preceded by calls to standard
Application Object Library routines to initialize concurrent processing. FDPFOP
received a return code of failure.
Action: Change your concurrent program to initialize files by calling standard
Application Object Library routines. */
I got the mail with the above message from System ( Oracle Applicaitons Release 12.1.1)
I have checked the following metalink document
The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
I can not undestand, why the alert sends mail?
Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?
The above meatlink note did not help much....Hi;
>
/*The output file for your concurrent request is not initialized.
Cause: Your concurrent program execution was not preceded by calls to standard
Application Object Library routines to initialize concurrent processing. FDPFOP
received a return code of failure.
Action: Change your concurrent program to initialize files by calling standard
Application Object Library routines. */
The Output File For Your Concurrent Request is Not Initialized: FDPFOP received a return code of failure [ID 296830.1]
I can not undestand, why the alert sends mail? Could you please let me know..what happened to standard manager? how to resolve the above issue? why the above alert happened?I checked related note and it mention its internal bug which mean we cant say too many thing about issue.
The above meatlink note did not help much....It helped or not? Issue still appear or not?
Please run adadmin utulity >> from Maintain Applications Files>> Relink Applications programs
Be sure it wont through any error message than retest issue
Regard
Helios -
Exe file not producing the output files
Could anyone please help me with my exe file. I have an exe file "exeFile" which takes more than one file as input from the source "c:/files" and produces some files as output into the destination "c:/files". Both my source and destination is same. My code given below is neither showing any error nor outputting any files. My code is:
private static void compilingFiles() throws IOException
String FirstParam = "C:/files";
String SecondParam = "C:/files";
Process proc =Runtime.getRuntime().exec("cmd /c start /MIN C:/files/exeFile " + FirstParam, (String[])null, new File(SecondParam));
}After going through The reference, I modified my code as under. My first exe file "tex" is doing the necessary as before, that is producing the output files to the destination, but the second exe file "fi2t1" is not producing the necessary output.
My output after running this file is:
<ERROR>
</ERROR>
Process exitValue1: 0
<ERROR>
</ERROR>
Process exitValue2: 0
<ERROR>
</ERROR>
Process exitValue1: 0
<ERROR>
</ERROR>
Process exitValue2: 0
<ERROR>
</ERROR>
Process exitValue1: 0
<ERROR>
</ERROR>
Process exitValue2: 0
So as per The reference, I think my code is right - "So, MediocreExecJavac works and produces an exit value of 2. Normally, an exit value of 0 indicates success; any nonzero value indicates an error.".
So please tell me where am I wrong. My code is:
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
public class FontDriverCompile
public FontDriverCompile()
void compileFile(File newFile, String renameSub, File outputfile) throws IOException
String FirstParam = "C:\\Temp\\sample\\font-driver.tex";
String FirstParam2 = "C:\\Temp\\sample";
String SecondParam = "C:\\Temp\\sample";
try
Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/tex " + FirstParam, (String[])null, new File(SecondParam));
InputStream stderr = proc1.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("<ERROR>");
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("</ERROR>");
int exitVal1 = proc1.waitFor();
System.out.println("Process exitValue11: " + exitVal1);
catch (Throwable t)
System.out.println("t.printStackTrace()_1");
t.printStackTrace();
try
Process proc2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 " + FirstParam2, (String[])null, new File(SecondParam));
InputStream stderr = proc2.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("<ERROR>");
while( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("</ERROR>");
int exitVal2 = proc2.waitFor();
System.out.println("Process exitValue2: " + exitVal2);
catch (Throwable t)
System.out.println("t.printStackTrace()_2");
t.printStackTrace();
}Message was edited by:
sony_tj -
Check Event Alert failed with error - No errors in the log file.
Hi All,
I am developing a simple event based alert on PO_HEADERS table. I want to send alerts when a PO is created.
I did all the steps according to the metalink note How To Send An Email In A Simple Periodic Or Event Alert? [ID 1162153.1]
When i create the PO, the alert is triggering, and Check Event Alert concurrent program is running. But the program completes with error.
Checking the output file (empty) log file (no errors)
What can i do here to find out what is the problem? There is nothing in the Alert Manager - History form also. I have kept 7 days as days to keep.
Thanks!
MCan you find any details about the error from the "View Detail" button (the same window where you check the log and output files)?
I found the Workflow logs, I am not sure what I am looking for, but i am not seeing any errors reported.The event viewer is supposed to send an email, so do you see anything in the logs that could be related?
Thanks,
Hussein -
Why the output file is so big?
Dear All,
I am trying to write some data to the binary file. But the output file is very big. When I write 1M*4kB ,the file will more than 20MB. I don't know why.
This is my vi, Please help me to find the fault,OK? Thank you very much.
Thanks.
Attachments:
question1.vi 105 KBIt is NOT the same vi!!! You need to familiarize yourself with dataflow, LabVIEW does NOT execute left to right, any part can execute if all inputs have data.
In your particular case, the "file info" will execute at the same time you are building the file path. In addition, you are measuring the size of the stripped path and not of the new file. Try execution highlighting!
To fix your code:
You need to get the "file info" from the path AFTER you add the new filename.
Use the error cluster to enforce proper execution order as in my example. WIre the error out of "close" to the error in of "File info". Now the "File info" must wait until all inputs have data, which can only happen after "close" has completed.
All clear?
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SizeTest.vi 29 KB -
Problem with ghostscript ['Distiller' did not produce the output file ]
Hi,
We are trying to convert the checked in files to pdf using ghostscript.
The Steps i have followed in installing the Distiller
First I have installed gs8.64 and configure distiller
Refinery server--> Conversion settings --> Third-party Application Settings --> Distiller Engine --> options -->
Use GhostScript and provided the path to install dierctory as C:/Program Files/gs/gs8.64/
Installed Printer as per the pdf
Conversion Settings --> Primary web redention --> convert to pdf using third party applications
Server details:
CS: 10gr3
ghost script 8.64
Plz find the below logs details
Error Log...
Copying c:/ucm/server2/vault/~convert/idc/2/2.txt to c:/ucm/server2/vault/~convert/idc/2/temp.ps
Waiting for exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps
Obtained exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps
Waiting on Distiller
Check for file c:/ucm/server2/vault/~convert/idc/2/temp.pdf failed
'Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/2/temp.pdf'.
Exception type is 'java.lang.Throwable'. Details
An error has occurred. The stack trace below shows more information.
!$Copying c:/ucm/server2/vault/~convert/idc/2/2.txt to c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Waiting for exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Obtained exclusive access on c:/ucm/server2/vault/~convert/idc/2/temp.ps <br>Waiting on Distiller <br>Check for file c:/ucm/server2/vault/~convert/idc/2/temp.pdf failed <br>'Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/2/temp.pdf'. <br>!syExceptionType,java.lang.Throwable
java.lang.Throwable
at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
at intradoc.common.Log.addMessage(Unknown Source)
at intradoc.common.Log.errorEx2(Unknown Source)
at intradoc.common.Log.errorEx(Unknown Source)
at docrefinery.agent.Logger.logError(Logger.java:138)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:140)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:165)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:109)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
at java.lang.Thread.run(Thread.java:595)
Conversion completed -- Step PostscriptToPDF forced conversion failure by conversion engine because of error: ''Distiller' did not produce the output file 'c:/ucm/server2/vault/~convert/idc/8/temp.pdf'.'. Exception type is 'java.lang.Throwable'.
Please suggest me where i am going wrong...
Thanks in advance,
Prasad V.Hi Srinath,
Thanks for your reply. It worked fine with 8.63 version.
Is there any other way to get it worked with out installing ghostscript.exe as the client doesnt want to instal any exe file on the server as it has broader impact on other instances also, can we acheive the conversion by copying the extracted zip files of ghostscript-8.63.tar.gz .....
We tried with extracted zip files by following the below settings
Refinery server--> Conversion settings --> Third-party Application Settings --> Distiller Engine --> options -->
deselected Use GhostScript and provided the Path to generic PostScript to PDF engine D:\ghostscript\ghostscript\lib\ps2pdf14.bat
Parameters to pass to generic PostScript to PDF engine.
<$postscriptFile$> <$pdfFile$>
Path to generic PDF optimization engine.
D:\ghostscript\ghostscript\lib\pdfopt.bat
Parameters to pass to generic PDF optimization engine.
<$pdfFile$> <$optimizedPdfFile$>
Installed Printer as per the pdf
Conversion Settings --> Primary web redention --> convert to pdf using third party applications
We are getting the below error:
Waiting for exclusive access on c:/temp/idcoutput.ps
Obtained exclusive access on c:/temp/idcoutput.ps
Waiting on Distiller
Error Distilling
Exception type is 'java.lang.Throwable'. [ Details ]
An error has occurred. The stack trace below shows more information.
!$Waiting for exclusive access on c:/temp/idcoutput.ps <br>Obtained exclusive access on c:/temp/idcoutput.ps <br>Waiting on Distiller <br>Error Distilling <br>!syExceptionType,java.lang.Throwable
java.lang.Throwable
at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
at intradoc.common.Log.addMessage(Unknown Source)
at intradoc.common.Log.errorEx2(Unknown Source)
at intradoc.common.Log.errorEx(Unknown Source)
at docrefinery.agent.Logger.logError(Logger.java:138)
at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:140)
at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
at java.lang.Thread.run(Thread.java:595)
Conversion completed -- Step PostscriptToPDF forced conversion failure by conversion engine because of error: 'Error Distilling'. Exception type is 'java.lang.Throwable'.
Plz let us know if it is possible to convert the docs to pdf with out installing the ghostscript.exe file on server.
Thanks in advance,
Prasad V. -
Error #2046: The loaded file did not have a valid signature in flex 4
As part of our CI build, the ant script that builds the client side (flex 4) projects also runs a set of FlexUnit4 tests on the deployed project. Most of the tests work but a few fail with this error
RSL
http://local.foo.com/bar/com/blah/components/someComponent/framework_4.1.0.16076.swz failed to load.
Error #2046: The loaded file did not have a valid signature.
The build machine is running Ununtu 10.10 with Firefox 3.6 and Flashplayer 10.2. If I run the exact same set of tasks, accessed from the same URL in windows everything passes with no problem. After some searching I did run across this thread: http://forums.adobe.com/message/2747415#2747415 but when I went looking for the libflashsupport.so file mentioned, the Ubuntu docs seemed to indicate that it was no longer needed.
I'm at my wits end here. Is libflashsupport.so actually needed in Ubuntu 10.10 and if so where would I find it? If not does anyone know of another issue that could be responsible for this?hello,
I have the same issue, Ubuntu 10.10, flashplayer 10.3rc1
mxmlc SimplePrj.mxml -debug=true -benchmark=true --target-player=10 -output ../deploy/SimplePrj.swf
mxlc verbose:
Loading configuration file /home/.../flex-config.xml
Initial setup: 79ms
start loading swcs 9ms Running Total: 88ms
Loaded 34 SWCs: 740ms
precompile: 1062ms
Required RSLs:
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.20967/framework_4.5.0.20967.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.20967/spark_4.5.0.20967.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.20967/sparkskins_4.5.0.20967.swz with 1 failover.
http://fpdownload.adobe.com/pub/swz/flex/4.5.0.20967/mx_4.5.0.20967.swz with 1 failover.
Files: 540 Time: 3380ms
Linking... 27ms
SWF Encoding... 18ms
/.../SimplePrj/deploy/SimplePrj.swf (80059 bytes)
postcompile: 45ms
Total time: 4259ms
Peak memory usage: 81 MB (Heap: 62, Non-Heap: 19)
I had to copy the swz to deploy folder since failovers are not yet available.
* accessing from windows machines it loads swz without complaints.
Jaco -
Error #2136: The SWF file
I am trying to learn how to use classes.The book i am using gave me this example.
In Vechile.as
package{
import flash.display.MovieClip;
import flash.events.Event;
public class Vehicle extends MovieClip{
public var _gasMileage:Number;
public var _fuelAvailable:Number;
public var _milesTraveled:Number =0;
public var _go:Boolean;
public function Vehicle(mpg:Number=21, fuel:Number=18.5){
_gasMileage=mpg;
_fuelAvailable = fuel;
this.addEventListener(Event.ENTER_FRAME, onLoop, false,
0, true);
public function onLoop (evt:Event):void{
if (_go){
_fuelAvailable--;
_milesTraveled+=_gasMileage;
if (_fuelAvailable < 1){
this.removeEventListener(Event.ENTER_FRAME,
onLoop);
trace(this, _milesTraveled,_fuelAvailable);
this.x=_milesTraveled;
public function go():void{
_go = true;
In the main.fla
In frame 1
var vehicle:Vehicle = new Vehicle(21,18.5);
addChild(vehicle);
vehicle.go();
when I compile it gives an output error.
Error #2136: The SWF file file:///C|/Users/Ravenwind/Documents/Main.swf contains invalid data.
at Vehicle/frame1()
I am stumped" I then assign Vehicle to document class box in the property box" Do not assign the Vehicle as the document class... remove it from there.
In the main file, if you didn't already create one, create a movieclip symbol (just draw a shape in it for now). Right click the symbol in the library and select the Linkage option. In the interface that appears, select the option to Export for Actionscript, and assign it the Class name "Vehicle" in the field labeled "Class"
Make sure you save the Vehicle.as file after you put the code into it and have that file in the same folder as your Main.fla file.
If you do the things I just described you should see an instance of the movieclip moving across the stage when you run the file. -
1.Some web pages give "XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted".
2.Youtube gives, after pressing start button, message"An error occurred. Please try again later.
Opening same youtube page with IE, there is no problems.
3.Scrolling on Mozilla firefox pages works only with sidebar not with mouse wheel.
Other user accounts on this computer doesn't have these problems.
BR, JuhaThis can be caused by a recent Flash 11.3 update.
See:
*https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
Maybe you are looking for
-
Certain songs won't sync from itunes to iphone
WHAT IS GOING ON? on my iTunes' it says that the playlist I created has this one song on it. Under the iphone4 tab it also says that the song is in the playlist. If it's showing up in both lists, why is it not showing up on my iphone when i sync? PLE
-
Asset Tables for legacy data takeover
Dear Friends We've to take assets data from one client to another and hence would be using Legacy assets. Could you please let me know from which tables / reports i should extract the data related to master & transaction data from the legacy system w
-
Human Task: Claimed Group task not visible to others in group
We've recently upgraded from SOA Suite 10.1.3 to SOA Suite 11.1.1.3. We're using the standard worklist application in both versions. In 10.x, if we assigned a Task to a Group, all members of the group would always see the task in the worklist applica
-
Sending email from a simple JSF Form
Hi, Sorry if this is a very basic question. I have a simple JSF (with ADF BC) form that collects information and I store the submitted values in the backing bean. I am even able to display the input values in a than you page. I just want a pointer on
-
Oracle APEX Plugin Development in v4.2.2
I was wondering if people could please assist with Oracle APEX Plugin development and whether the following requirement is possible and if so, would appreciate the type of coding behind it. I basically would like to be able, via a plugin, create a fo