Please Help! Unknown Compiling Error!!!

Hi there,
Really hope someone can help me with this! Seems like problems are bound to happen when you leave projects to the last minute for some reason.
Basically I am getting "Error compiling movie: unkown error" when i try to make my 7 minute video using an h.264 codec. The footage is 1440x1080 shot from a canon XH-A1. but is composed of many third party video clips as well. It also has after effects compostions that are dynamic linked over. I have checked for empty spaces, tried importing into a new sequence and project, and it seems the projects fails each time at around the 3/4 point.
Here is the kicker, I have been able to go through and make individual files for different parts of my project when I seperate them into different sequences (I was trying to find a corrupt file). I have also restarted the comp etc. numerous times.
ANY help would be greatly appreciated.
Thanks,
Aaron

Some reading to MAYBE find an idea leading to a solution
Odd Errors http://forums.adobe.com/thread/670174
Error Compiling Movie http://kb2.adobe.com/cps/906/cpsid_90670.html
-and http://premierepro.wikia.com/wiki/Error:Error_compiling_movie
More information needed for someone to help
-http://forums.adobe.com/message/4200840
-http://forums.adobe.com/thread/416679

Similar Messages

  • Please help with compiling error

    Hello, I am currently taking a class in Java Programming and need help with an error. I am working on a Mortgage Calculator and when I compile the code I get this error. I have no idea how to fix this. Can anyone help? Thank you.
    '{' expected public class MortgageCalculator
    1 error
    Tool completed with exit code 1
    Here is my code
    import java.io.*;//*java input output
    import java.util.Date;//Date Utility
    import java.util.Formatter;//format Utility
    import java.text.NumberFormat;//*format numbers
    //class MortgageCalculator
    public class MortgageCalculator
    public static void main(String[]args);{
    Date currentDate=newDate();
    DecimalFormat decimalPlaces=newDecimalFormat("0.00");
    //declare Variables
    final double principalBalance=200000;//*$200,000 Loan
    final double monthlyInterest=.06;//*6% interest rate
    final double Term=12*30;//*monthly interest rate
    final double monthlyInterest=((principalBalance*(monthlyInterest/12))/(1-Math.pow(1+(monthlyInterest/12))-(Term)));
    //Display Output
    System.out.println("\t\t" + currentDate);
    System.out.println("\t\tLoan Amount" + principalBalance);
    System.out.println("\t\tInterest Rate" + monthlyInterest);
    System.out.println("\t\tTerm of Loan" + Term);
    System.out.println("\t\tThe Payment will be:" + monthlyInterest);
    System.out.println(decimalPlaces.format(mothlyInterest));
    }

    You need to enclose your class body in { }. You're missing at least one of them

  • Can't Export Movie - Unknown Compile Error - Help!

    I edited a 32 minute movie in Premiere Elements 10, and now I'm trying to export it.  At some point during the export, and it seems to vary, I get an unknown compile error.  I've been trying to export the movie for the past week and all I get is failure despite trying just about everything I've found written about how to solve this.
    I have Win 7 Ultimate SP 1 running on a Lenovo desktop machine with an Intel Core 2 Quad CPU at 2.67 GHz, 4GB of RAM, 32 bit proc.
    Premiere is installed on system C drive with 6 GB of free space.
    Project and scrach disks are on D drive with 165 GB of free space.
    Media files are on 2nd E drive with 50GB of free space.
    Project and most source material is NTSC DV -- there are quite a few photos with motion, plus some iPhone HD video on the timeline, hundreds of clips in all plus narration, a few titles, etc.
    Export destination folder is on D drive.
    Everything will render to green lines atop timeline (sometimes it quits during render and I have to keep hitting Enter to continue rendering, but eventually it's all green)
    So far I've tried:
    - Reinstalling PE 10
    - Reinstalling Quicktime
    - Copying all the photos to their own separate folder
    - Editing each photo slightly (outside of PE 10) and resaving to make sure none of the photos are corrupted
    - Emptying the temp folder
    - Deleting all the renders and cache files and letting them rebuild
    - Exporting small pieces of the timeline to try to identify a bad clip -- this is a maddening process and I did find one clip that would generate the error, but I managed to export that to AVI and reimport and replace on timeline.  It would be awfully nice if PE would just TELL ME which clip it doesn't like if in fact it's a clip error.
    - Turning off the shadow / highlight feature I had on some clips, but this wasn't the issue, smaller sections with these clips exported fine
    - Tried exporting to various formats: Vimeo SD, MPEG DV Standard, iPad Standard High Quality, AVI -- all result in the same error (the format I want by the way is Vimeo SD)
    - Rebooting the machine and turning everything off that might possibly consume memory
    This machine has never had problems exporting in the past.  One thing I did try that worked -- installed PE 10 on another (less capable) Win 7 machine, and fed it all the media via an external drive.  The other machine did the export fine (though it took a while given it is underpowered).  This is nothing more than a work around though as I don't normally have access to this machine and I'm not done editing.
    I'm at my wits' end!  What else can I do to get this movie file to export?
    Appreciate any help or clues you can provide to solve this mystery.

    Oh, that is tragic!
    I never had any issues with mine. Maybe it knew how respectful I was, having come from manual rewinds and a sync block? The Moviola was a godsend, at least for me. I am glad that I got to edit film, and on many setups, as some of that translated well to digital Video. Back when I was in film school, Video was 2" tape, and the only editing was by cutting at a 45 degree angle, and splicing the tape. There was not even deck-to-deck editing, way back then. Also, Video looked like crap, at least to my eyes. We could only use a switcher, to "edit," or do a feed to air. Looked like crap!
    As for the Lexus, I can imagine all sorts of problems. My new LX-570 requires me to "Accept," when I put it into reverse, on the rear-view monitor! At least my wife's MB does not require that, but it is a 2011 model, so maybe the 2013 models will require that the user sign off on all sorts of "stuff."
    Now, I can play Finding Nemo, for my rear-seat passengers, while driving, but the front-seat passengers cannot see it, which is just fine. When driving, I am not even a fan of hands-free calls, and declined most of the streaming stock quotes, etc. for XM/Sirius radio. NOT while I am driving. I will save that for reading the WSJ in the club at the airport.
    Some years ago, our driver in London got a new BMW 7-series, and it allowed the playing of DVD's, even in the front, while driving. Not sure that I would want that, but such is life. At least his seats' ventilation system was "well-chilled," where ours' are just air. He almost froze my bum, showing off his new auto.
    Now, working with PS, or PrE in an auto, or even on a mobile device, is just not something that I can wrap my old head around. I want a fast computer, with a big display, and cannot imagine editing Images, or Video, on any handheld (or auto) device.
    Hunt

  • Please Help unknown error

    I just finished redesigning my website www.thelostsheepcompany.com and I did a preview in browser from Muse to check out the functionality and layout and everything worked seamlessly. however once I published it, it now comes up with this error:  MuseJSAssert: Error calling selector function: Error no such interface supported on the contact us page (Contact Us) and the ministry registration page (Ministry Registration). I have no idea why this is happening. PLEASE HELP!!!

    Hello,
    It could be because of many reasons like conflict of any code with the form etc. If you have the back up file from the time when it was giving issue, we can check it for you and let you know the exact issue.
    Regards,
    Neha

  • Newbie needs help on compiling error

    I'm reading java 2 programming for dummies, but can't get this example working. I get an error on line 4, but when I remove 'public' from in front of 'class', Iexplore tells me I need a public constructor. I also get errors on line 94 and 98 where the compilator says that the java.awt.Component has been deprecated. I have no clue what that means..
    Please help me! I'm stuck...
    Here is my code:
    /*line 0*/
    import java.applet.Applet;
    import java.awt.*;
    public class PixApplet extends Applet{
         public void init() {
              Rectgl r = new Rectgl(10,5,Color.red);
              Square s = new Square(10,Color.blue);
              Circle c = new Circle(20,Color.yellow);
              Square s2 = new Square(40,Color.green);
              add(r);
              add(s);
              add(c);
              add(s2);
              add(new PixLabel(r));
              add(new PixLabel(s));
              add(new PixLabel(c));
              add(new PixLabel(s2));
    /*Rectgl*/
    class Rectgl extends Pix {
         /*Constructor*/
         public Rectgl(int width, int height, Color c) {
              myDimension.width = width;
              myDimension.height = height;
              setColor(c);
         /*Draw shape*/
         public void Paint(Graphics g) {
              g.fillRect(0,0,myDimension.width,myDimension.height);
         /*Return area*/
         public double getArea() {
              return (myDimension.width * myDimension.height);
         /*Return perimeter */
         public double getPerimeter() {
              return (myDimension.width + myDimension.height) * 2;
         /*Return kind of shape*/
         public String getKind() {
              return "Rectangle";
    /*Square*/
    class Square extends Rectgl {
         /*Constructor*/
         public Square(int side,Color c) {
              super(side,side,c);
         /*Return kind of shape*/
         public String getKind() {
              return "Square";
    abstract class Pix extends Canvas {
         Dimension myDimension = new Dimension();
         /*Constructor*/
         public void Pix() {
         /*Set object's forground color*/
         public void setColor(Color c) {
              setForeground(c);
         public void paint(Graphics g) {
         public double getArea() {
              return 0;
         public double getPerimeter() {
              return 0;
         public String getKind() {
              return "unknown shape";
    /*line 93*/
         public Dimension preferredSize() {
              return myDimension;
    /*line 97*/
         public Dimension minimumSize() {
              return myDimension;
    class Circle extends Pix {
         private int myRadius;
         /*Constructor*/
         public Circle(int radius, Color c) {
              myRadius = radius;
              setColor(c);
              myDimension.height = myDimension.width = 2 * radius;
         /*Draw shape*/
         public void paint(Graphics g) {
              g.fillArc(0,0,(2 * myRadius),(2 * myRadius),0,360);
         /*Return area*/
         public double getArea() {
              return (Math.PI * (myRadius * myRadius));
         /*Return perimeter*/
         public double getPerimeter() {
              return 2 * Math.PI * myRadius;
         /*Return kind of shape*/
         public String getKind() {
              return "Circle";
    class PixLabel extends TextArea {
         /*Constructor*/
         public PixLabel(Pix s) {
              super( "I am a " + s.getKind() + "\nMy perimeter is " + Double.toString(s.getPerimeter()) + "\nMy area is " + Double.toString(s.getArea()),3,15,SCROLLBARS_NONE);
    }

    OK. You do not need to worry too much about the deprecated messages. They are only warnings and will not stop the program compiling.
    What is the name of the java file that your code is in. It should be PixApplet.java
    How are you compiling it, something like
    javac *.java or javac PixApplet.java
    What is the error you get when you try to compile

  • Please help me regarding error in jcManager 1.1

    Hi Friends..
    perhaps this question especially for bebecanu, but perhaps i hope all of you could help me too.. :)
    i tried to learn how way jcManager works, so i downloaded the jcManager1.1 source..
    i created new application in Netbeans 6.9, and then i copied all of files in the jcmanager.source..
    i've set the libraries needed also in Netbeans, i've added the libraries of jpcsc.jar and looks-2.1.4.jar , so assume that there's no error while compile time..
    but while runtime, there's message error displayed in the TextArea..
    this is the message error :
    Exception in thread "Thread-3" java.lang.NoClassDefFoundError: Could not initialize class com.linuxnet.jpcsc.PCSC
         at com.braicu.jcm.card.CardWorker.disconnectCard(CardWorker.java:507)
         at com.braicu.jcm.JCManager$22.construct(JCManager.java:620)
         at com.braicu.jcm.layout.MySwingWorker$2.run(MySwingWorker.java:108)
         at java.lang.Thread.run(Thread.java:619)so, how to initialize class com.linuxnet.jpcsc.PCSC in Netbeans?..
    Please help me regarding this..
    Thanks in advance..

    Hi
    You need to have jpcsc.dll (you may find it in the res folder) in your java library path.
    So, all you need to do is to specify this VM argument on running:
    -Djava.library.path=res
    Hope it helps
    Stefan

  • HELP - unknown publisher error

    In preparation of my new iphone turning up tomorrow - thought would download itunes. Never used it before. 3 hrs in and still not installed!! Keep getting Unknown Publisher Error. Things I've tried so far: using Mozilla instead of IE. Emptying Temp folder. Downloading QT separtately. Numerous restarts. Help me please!!!

    You've been doing the sensible things with your troubleshooting, lee.
    How are you connecting to the internet?
    For example, my Lenovo T61 is connecting wirelessly to a LinkSys WRT54G wireless router that is plugged into a Motorola SB5100 Surfboard cable modem.
    What sort of setup do you have?

  • Please help with cfscript error!

    When I run my app, I got this error:
    sdfst_catcherror is recording this error: Context validation
    error for tag cfscript.; The start tag must have a matching end
    tag. An explicit end tag can be provided by adding
    </cfscript>. If the body of the tag is empty you can use the
    shortcut <cfscript .../>.
    The CFML compiler was processing:
    a cfscript tag beginning on line 45, column 4.
    a cfscript tag beginning on line 45, column 4.
    When I checked my codes, all the
    <cfscript></cfscript> have the pairs. There are only 2
    pairs of <cfscript</cfscript> in this template.
    See my code structure below:
    <!--- the first <cfscript pair> --->
    <cfscript>
    function getTRS(var5)
    some codes here...
    return TRS;
    </cfscript>
    <cffunction name="FrmTxt" returntype="Struct">
    <cfargument name="EmpCodes" required="true"
    type="array">
    <cfargument name="EmpID" required="true"
    type="numeric">
    <cfquery name="GetEmpInfo>
    Select * from......
    </cfquery>
    <cfset varFrms = GetEmpInfo.EmpCodes>
    <cfset A_Key = 1>
    <cfset structFrmTxt = StructNew()>
    <!--- The second pair --->
    <cfscript>
    Some codes here....
    Need to output #TRS# returned by getTRS(var5) set above
    </cfscript>
    <cfreturn structFrmTxt>
    </cffunction>
    From other CF forum I learned that I can't put getTRS(var5)
    within the second <cfscript></cfscript> within
    <CFFUNCTION> pair
    it says "You can't put UDF within UDF or method within
    method". When I did originally, I got this error:
    Unable to complete CFML to Java translation, Error
    information unsupported statement: class
    coldfusion.compiler.ASTfunctionDefinition
    I'm stuck and can't find any resources to solve this problem
    anymore, please help!....

    When I checked my codes, all the
    <cfscript></cfscript> have the pairs.
    This error can often mean that you did not properly end a
    previous code
    block or line. So the closing </cfscript> is being
    considered part of
    that unclosed code. For me, it is often a missing semi-colon
    [;] on the
    last line I wrote, missing a closing curly bracket [}] could
    do it as well.
    Check your code, this is seldom more then missing a bit of
    syntax.

  • Help with compilation error

    Hello
    I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
    I apologize for my bad english
    Thank you for your time reading this.

    Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
    this is my jsp:
    <%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
    <%@ include file="../incs/dbpool_inc.jsp" %>
    <%@ include file="funciones.jsp"%><html>
    <head>
    <title>Resolver preguntas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../css/0001.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <% //to get user data from the session.
         String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
         String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
         String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
         String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";     
         String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
         //to know if it's aloww to save cahnges in the database
         boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
         if(userid.equals("")|| asign.equals("")){//if 1          
              out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexi&oacute;n ha expirado. Para ingresar de nuevo al sistema haga click aqu&iacute;.</b></font></body></html>");
         }//fin if 1
         else{//else de if 1          
              try{// try 1
                   Connection conn = dbpool.getConnection();
                   Statement stmtt = conn.createStatement();
                   Statement stmtmod = conn.createStatement();
                   Statement stmtresp = conn.createStatement();
                   ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
                   String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
                   rsmodul.close();
                   stmtmod.close();
                   int secuencia1 = Integer.parseInt(secuens);
                   int secuencia2 = Integer.parseInt(secuenc)+1;
                   secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
                   session.setAttribute("secuenc", secuenc);               
                   if(esAlumno(userid, stmtt, asign)){//if 2
                   if(guardar){//if 2.0
                             String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
                             ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);                         
                             String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
                             rstipop.close();
                             String respuesta = "N/A", correspondencia ="";                         
                             String restado="n";
                             String rcorrecta = "n";
                             if(tipop1.equals("selec")){
                                  correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
                                  ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                           idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
                                  if(rscorrecta.next()){
                                       rcorrecta = "s";
                                  rscorrecta.close();
                             else{
                                  if(tipop1.equals("empar")){
                                       ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                                idpreg1+ "order by orden");
                                       int corres = 0;
                                       int correctas = 0;
                                       while(rsempar.next()){                                   
                                                 String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
                                                 correspondencia=correspondencia+((corres == 0)? "":",")+resp;
                                                 correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
                                                 corres++;
                                       rcorrecta = String.valueOf(correctas);
                                       rsempar.close();
                                  else{
                                       if(tipop1.equals("complet")){
                                            ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
                                            String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
                                            rscomplet.close();
                                            String complet1 = "";
                                            int idxcar = complet.indexOf("$");
                                            respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
                                            correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
                                            int corrc =0;
                                            if(idxcar>=0){
                                                 complet1 = complet.substring((idxcar+1),complet.length());
                                                 complet = complet.substring(0, idxcar);
                                                 corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
                                                 rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
                                            }else{
                                                 corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 rcorrecta = (corrc==1)? "s": "n";
                                       else{
                                            if(tipop1.equals("abierta")){
                                                 respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
                             String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
                                                      ", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
                                                      " values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
                                                      String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
                             String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
                                                           asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;                         
                             boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
                             String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
                                                      "rcorrecta='"+rcorrecta+"', restado='"+restado+
                                                      "' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
                                                      asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
                             //if the page is editing execute string editarResp else execute string guardarResp
                             stmtt.executeUpdate(existeResp? editarResp:guardarResp);
                        String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
                        //System.out.println("resolvpreg.jsp "+sqlbpu);
                        ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
                        if(rsbpu.next()){ // if 2.1
                             String enunciado = rsbpu.getString("enunciado");
                             String tipo = rsbpu.getString("tipo");
                             String titulo = rsbpu.getString("titulo");
                             String idpreg = rsbpu.getString("id_pregunta");
    %>
    <h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
    <p align="left"><font face="Arial, Helvetica, sans-serif">
    <strong>Enunciado:</strong> <%=enunciado%>. </font><br>
    <%
         String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
    " and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;     
         ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);     
         String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
         ResultSet rsops = stmtt.executeQuery(sqlopcs);          
    %>
    <%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         Vector opciones = new Vector();
         Object obj[] = new Object[4];
         while(rsops.next()){
              obj[0] = rsops.getString("opcion");
              obj[1] = "";
              obj[2] = rsops.getString("correspondencia");
              obj[3] = rsops.getString("orden");
              opciones.addElement(obj.clone());
         rsops.close();
    %>
    <form action="resolverpreg.jsp" method="post" name="Correspondencias">
    <%
         String respEmpar = "";
         String respuestap="";
         String respcorres[] = {"",""};
         if(rsrespuesta.next()){     
              respuestap = rsrespuesta.getString("respuesta");
              respEmpar = rsrespuesta.getString("correspondencia");
              respcorres[0]= respuestap;
              respcorres[1]= respEmpar;
         rsrespuesta.close();
         if (tipo.equals("empar")){
    %>
    <%@ include file="resolvempar.jsp"%>
    <%}//fin if tipoPreg = 'emapar'
         else{
         if(tipo.equals("selec")){
    %> <%@ include file="reslovselec.jsp"%>
         <%}//fin if tipopreg = 'select'
         else{
              if(tipo.equals("complet")){%>
              <%@include file="resolvcomplet.jsp"%>
         <%}//fin if tipopreg='complet'
         else{
              if(tipo.equals("abierta")){%>
              <%@include file="resolvabierta.html"%>
              <%}//fin if tipopreg='abierta'
              else{%>
                   <span class="titolForum">Error: no se ingres&oacute; ning&uacute;n tipo de pregunta
                   o se est� accediendo en forma err&oacute;nea a este sitio.</span>
              <%}//fin else de tipopregunta = 'abierta'%>          
         <%}//fin else tipopreg='complet'%>                    
         <%}// fin else de tipopreg = 'select'%>     
    <%}//fin else de tipoPreg = 'emapar'%>
    <br>
    <input name="idpregunta" type="hidden" value="<%=idpreg%>">
    <input name="guardar" type="hidden" value="si">
    <input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
    <input type="submit" name="continuar" value="Continuar">
    </form>
    <%                    rsbpu.close();
                        }//fin 2.1                    
                        else{%>
    Ha terminado de realizar la prueba<br>
    <a href="elejCuestion.jsp">Continuar</a>
    <%}
                   }// fin if 2
                   stmtt.close();
                   stmtresp.close();
                   conn.close();
              }// fin try 1
              catch(Exception expt){
                   out.println("Error: "+expt);
         }//fin eles de if 1
    %>
    </body>
    </html>

  • Please help understand this error...

    I am developing a small Hash Calculator that calculates MD5/ SHA Hash.
    It has 2 modes,
    1. Text mode in which i have a JTextField - userText where i can enter the text and then when i click on calculate the corresponding hash of the text is evaluated.
    2. File mode in which then the JTextField gets disabled (locked or non editable) and i have button that gets visible through which i can then select a file (through JFileChooser) and when i select a file, i put it's absolute path in the JTextField - userText. and then when i click on calculate this code is run...
    FileInputStream in=new FileInputStream(userText.getText());
                             int length=0;
                             while((length=in.read(buffer))!=-1)
                                  md5.update(buffer,0,length);
                             digest=md5.digest();
                             hex="";
                             for (int i = 0; i < digest.length; i++)
                                  int b = digest[i] & 0xff;
                                  if (Integer.toHexString(b).length() == 1) hex = hex + "0";
                                  hex  = hex + Integer.toHexString(b);                                                  
                             hash.setText(algorithm.getSelectedItem().toString()+" Hash: "+hex);
                             copyString(hex);
                             status.setText(algorithm.getSelectedItem().toString()+" Hash copied to ClipBoard",Color.RED);
                             in.close();Now what i am getting is that in case i calculate a hash of a text (default starting mode is text mode) and then change the mode to File then it is working absolutely fine, but if right in the beginning, at the starting i go and select the File Mode, then when i click on calculate i get a strange error.
    I have the stack trace of it :
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at java.io.FileInputStream.read(Unknown Source)
         at MD5HashCalculator.calculate(MD5HashCalculator.java:371)
         at MD5HashCalculator.access$3(MD5HashCalculator.java:338)
         at MD5HashCalculator$12.actionPerformed(MD5HashCalculator.java:280)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)This weird thing is happening only the first time and it is happening in the line of the while loop basically
    while((length=in.read(buffer))!=-1)I am unable to understand the error, please help.
    What exactly is happening , and more specifically , why is it happening only if i did the mode change right in the beginning for the first time...??

    this buffer since it had a null value was giving the
    error. I replaced the thing by
    byte buffer[]="".getBytes();
    I'm not sure that's the best thing to do.
    I was reluctant at first to initialise the buffer
    with some bytes as i thought it might effect the md5
    value if it had some value in the beginning, You're supposed to create an empty byte array, e.g. like so:
    byte[] buffer = new byte[1024];In this case, the read method will read at most 1024 bytes into the buffer. The number of bytes it actually reads is returned to you. If it returns 12, say, you should only use the 12 first bytes in the array since those are the bytes that were actually read in. Whatever was in those 12 slots in the array before you called read is overwritten. Then you call read again to see if there are more bytes available, until it returns -1 to signal that there is nothing more to read.
    but i
    have re-checked it accurately, the code is now
    working fine and the MD5 has is coming perfectly.
    This seems strange, as
    "".getBytes();returns a byte array of zero length, which to me suggests you would end up in an infinite loop. But if you say so...

  • Please Help! Code error (40) - Recovery Mode?

    Hey Guys.
    Upon waking up last night I found whilst my phone was connected to the mains my iPhone 16GB 3GS had gone into recovery mode.
    When I connected it to iTunes the following error message occured "The iPhone "iPhone" could not be restored. An unknown error occured (40)"
    Searching through discussions I couldn't find any other errors prompting code 40. I went through Apples troubleshooting guides however none of the steps worked.
    Im using Windows 7 as my opperating system and the lastest iTunes Software on both the PC and iPhone.
    Please Help.
    Thank you.
    Paul

    i have the same issue. so sad.
    what did you end up doing?

  • Please help! "itunes error -43"

    I was importing music onto my iPod Nano when all of the sudden a window popped up saying "itunes error -43. Please help. Do i need to restore?
    P.S. I had just downloaded songs onto iTunes from the iTunes Store.

    I too have encountered this error. I purchased songs from iTunes and want to make a copy of the music. One CD I purchased I had no problem making a copy, but the last two I purchased I can't. I get the annoying "The attempt to burn a disc failed. An unknown error occurred (4280)."
    FRUSTRATING.
    Help!!!
    Judy
    Dell   Windows XP Pro  

  • PLEASE HELP! Installation errors with creative suite 5.5 design premium?

    I recently tried to install creative suite 5.5 design premium on to my home computer with windows vista home premium and it was all going fine then right at the end of the installation this message popped up please help??
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 1 fatal error(s), 14 error(s), 4 warning(s)
    WARNING: DW024: The payload: Adobe Photoshop CS5.1 Core  {08EF22BC-43B2-4B4E-BA12-52B18F418F38} requires a UI parent with following specification:
                    Family: Photoshop
                    ProductName: Adobe Photoshop CS5.1 Core_x64
                    This parent relationship is not satisfied, because this payload is not present in this session.
    ERROR: DW025: The payload with AdobeCode:  {857CC5F0-040E-1016-A173-D55ADD80C260} has required dependency on:
                    Family: InDesign
                    ProductName: Adobe InDesign CS5.5 Icon Handler x64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {857CC5F0-040E-1016-A173-D55ADD80C260} has recommended dependency on:
                    Family: Adobe Web Suite CS5.5
                    ProductName: Adobe Media Encoder CS5.5 X64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this payload from the dependency list.
    WARNING: DW025: The payload with AdobeCode:  {D8CCCF4C-C227-427C-B4BE-736657D2AB7E} has recommended dependency on:
                    Family: Adobe Web Suite CS5.5
                    ProductName: Adobe Media Encoder CS5.5 X64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this payload from the dependency list.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: Adobe Player for Embedding x64 3.1
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: Shared Technology
                    ProductName: Photoshop Camera Raw (64 bit)
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: AdobeCMaps x64 CS5
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: Adobe Linguistics CS5 x64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: AdobePDFL x64 CS5
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: AdobeTypeSupport x64 CS5
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
                    Family: CoreTech
                    ProductName: Adobe WinSoft Linguistics Plugin CS5 x64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has recommended dependency on:
                    Family: Adobe Web Suite CS5.5
                    ProductName: Adobe Media Encoder CS5.5 X64
                    MinVersion: 0.0.0.0
                    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
                    Removing this payload from the dependency list.
    ERROR: DW020: Found payload conflicts and errors:
    ERROR: DW020:  - Adobe Dreamweaver CS5.5 depends on Adobe CSXS Extensions CS5.5 to be installed.
    ERROR: DW020:  - Adobe Photoshop CS5.1 Core depends on Adobe CSXS Extensions CS5.5 to be installed.
    ERROR: DW020:  - Adobe Illustrator CS5.1 depends on Adobe CSXS Extensions CS5.5 to be installed.
    ERROR: DW020:  - Adobe InDesign CS5.5 Application Base Files depends on Adobe CSXS Extensions CS5.5 to be installed.
    ERROR: DW020:  - Adobe Flash CS5.5 depends on Adobe CSXS Extensions CS5.5 to be installed.
    FATAL: DW020: Conflicts were found in the selected payloads. Halting installation.

    i tried all the thinks listed and uninstalled then reinstalled creative suite 5.5 design premium and yet again this showed up at the end please help it mean nothing to me help!
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 17 error(s), 8 warning(s)
    WARNING: DW024: The payload: Adobe Photoshop CS5.1 Core  {08EF22BC-43B2-4B4E-BA12-52B18F418F38} requires a UI parent with following specification:
    Family: Photoshop
    ProductName: Adobe Photoshop CS5.1 Core_x64
    This parent relationship is not satisfied, because this payload is not present in this session.
    ERROR: DW025: The payload with AdobeCode:  {857CC5F0-040E-1016-A173-D55ADD80C260} has required dependency on:
    Family: InDesign
    ProductName: Adobe InDesign CS5.5 Icon Handler x64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {857CC5F0-040E-1016-A173-D55ADD80C260} has recommended dependency on:
    Family: Adobe Web Suite CS5.5
    ProductName: Adobe Media Encoder CS5.5 X64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this payload from the dependency list.
    WARNING: DW025: The payload with AdobeCode:  {D8CCCF4C-C227-427C-B4BE-736657D2AB7E} has recommended dependency on:
    Family: Adobe Web Suite CS5.5
    ProductName: Adobe Media Encoder CS5.5 X64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this payload from the dependency list.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: Adobe Player for Embedding x64 3.1
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: Shared Technology
    ProductName: Photoshop Camera Raw (64 bit)
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: AdobeCMaps x64 CS5
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: Adobe Linguistics CS5 x64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: AdobePDFL x64 CS5
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: AdobeTypeSupport x64 CS5
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    ERROR: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has required dependency on:
    Family: CoreTech
    ProductName: Adobe WinSoft Linguistics Plugin CS5 x64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this dependency from list. Product may function improperly.
    WARNING: DW025: The payload with AdobeCode:  {D97AF04B-B70A-4862-BC25-31E6D9C4A529} has recommended dependency on:
    Family: Adobe Web Suite CS5.5
    ProductName: Adobe Media Encoder CS5.5 X64
    MinVersion: 0.0.0.0
    This dependency is not satisfied, because this payload is x64 and is not supported on this machine.
    Removing this payload from the dependency list.
    ----------- Payload: {CFA46C39-C539-4BE9-9364-495003C714AD} Adobe SwitchBoard 2.0 2.0.0.0 -----------
    WARNING: DF029: ARKServiceControl::StartService: Service not started/stopped SwitchBoard. Current State: 0 Exit Code: 0 Service Specific Exit Code: 0(Seq 1)
    ----------- Payload: {2EE4F060-CEE6-4002-AA8B-91B791541767} Pixel Bender Toolkit 2.6.0.0 -----------
    WARNING: DF035: CreateAlias:Icon file does not exist at C:\Program Files\Adobe\Adobe Utilities - CS5.5\Pixel Bender Toolkit 2.6\windows\pb_app.icofile:\\\C:\PIXELB~1\source\winwood\Staging    0X1.9E3C8AP-1022rea\windows\pb_app.ico42178f80493091e8e552c84a2897e9da68fce32_32_f8049309 1e8e552c84a2897e9da68fce for icon C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Adobe Design Premium CS5.5\Adobe Pixel Bender Toolkit 2.6.lnk with target C:\Program Files\Adobe\Adobe Utilities - CS5.5\Pixel Bender Toolkit 2.6\Pixel Bender Toolkit.exe(Seq 89)
    ----------- Payload: {BD85DFD4-005F-4219-8E27-C922CC4D8A61} Adobe CSXS Extensions CS5.5 2.5.0.0 -----------
    ERROR: DF024: Unable to preserve original file at "C:\Program Files\Common Files\Adobe\CS5.5ServiceManager\lib\CSXS-Installer-Hook.dll" Error 32 The process cannot access the file because it is being used by another process.(Seq 130)
    ERROR: DW063: Command ARKDeleteFileCommand failed.(Seq 130)
    ----------- Payload: {4C08199E-0D93-4227-8325-F024E71CA7A1} Adobe SING CS5 3.0.0.0 -----------
    ERROR: DF024: Unable to preserve original file at "C:\Program Files\Common Files\Adobe\SING\Mark II\SING.dll" Error 32 The process cannot access the file because it is being used by another process.(Seq 2)
    ERROR: DW063: Command ARKDeleteFileCommand failed.(Seq 2)
    ----------- Payload: {8DADF070-FE60-4899-8EF0-4242E7702F7D} Adobe Fireworks CS5.1 11.1.0.0 -----------
    WARNING: DF012: File/Folder does not exist at C:\Users\Isabel\Desktop\Creative Suite 5.5 Design Premium\adobe 5.5 code\Creative Suite 5.5 Design Premium\Adobe CS5_5\payloads\AdobeFireworks11.1.0All\OEM(Seq 1215)
    ----------- Payload: {5BDE0A1B-35BF-4224-A54F-73786EECDFC1} Adobe Fireworks CS5.1_AdobeFireworks11.1.0en_GBLanguagePack 11.1.0.0 -----------
    WARNING: DF012: File/Folder does not exist at C:\Users\Isabel\Desktop\Creative Suite 5.5 Design Premium\adobe 5.5 code\Creative Suite 5.5 Design Premium\Adobe CS5_5\payloads\AdobeFireworks11.1.0en_GBLanguagePack\OEM(Seq 74)
    ----------- Payload: {7202D4A7-F7E6-4e7a-B77D-7B1C4E8B5CA6} Adobe Flash Player 10 ActiveX 10.0.0.0 -----------
    ERROR: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\Users\Terry\AppData\Local\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\Users\Terry\AppData\Local\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe SING CS5: Install failed
    ERROR: DW050:  - Adobe CSXS Extensions CS5.5: Install failed

  • Please help with this error: "Your request could not be completed because of a disk error"

    So photoshop cs6 was working fine a few weeks ago. After not using it for about 2 weeks, I try opening a RAW file and I get this error every time. JPGs open and work fine. I have extensively searched on the internet for solutions and have tried everything such as: disk checking, deframgenting, playing around with photoshop preferences, deleting temp files, resetting preferences, clearing disk space. I have assigned two hard drives for photoshop, one with 16 GB free and the other with 8 GB free. I am getting very frustrated. Please help!

    mistahbo1 wrote:
    …I have assigned two hard drives for photoshop, one with 16 GB free and the other with 8 GB free. I am getting very frustrated. Please help!
    That's woefully inadequate for scratch file space.
    The rule of thumb I follow says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 300 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    Additionally, if either one those two drives you mention with "16 GB free and the other with 8 GB free" happened to be your boot drive, you'd be in a heap of trouble because neither one of those drives has nearly enough space to accommodate the swap files of the OS and Photoshop's scratch.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I have 16 GB of RAM installed:

  • Please Help!! Error in document : BKPFF $ DEVCLNT

    Hi All Gurus,
    I am trying to use BAPI - BAPI_ACC_DOCUMENT_POST to post to FB50.
    I am using the below paramaters -
    DOCUMENTHEADER         
    TABLES
           ACCOUNTGL              
           CURRENCYAMOUNT
    RETURN.
    But I am getting the error -   Error in document : BKPFF $ DEVCLNT. Can someone please help me with this. I have been breaking my head over this. Dont know what is going wrong!                     .
    Thanks, Nina.

    Thanks for all your help, Aaron.
    *T Y P E S *
    TYPES: BEGIN OF t_indata,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
           END OF t_indata.
    TYPES: BEGIN OF t_error,
                   t_ddate(8) TYPE c,
                   t_ref(17) TYPE c,
                   t_dbank(8) TYPE c,
                   t_disno(4) TYPE c,
                   t_glacnt(10) TYPE c,
                   t_descrip(50) TYPE c,
                   t_damt(13) TYPE c,
                   t_jobid(8) TYPE c,
                   t_rexpen(8) TYPE c,
                   t_tperiod(8) TYPE c,
                   t_tnumb(8) TYPE c,
                   t_ctrans(8) TYPE c,
                   t_ccenter(10) TYPE c,
                   message(100)     type c,  " Error message
          END OF t_error.
    *W O R K A R E A S *
    DATA: w_indata TYPE t_indata,
          w_error TYPE t_error.
    *I N T E R N A L T A B L E S *
    DATA: i_indata TYPE STANDARD TABLE OF t_indata WITH HEADER LINE,
          i_error TYPE STANDARD TABLE OF t_error WITH HEADER LINE.
    DATA: i_acgl LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
          i_currency LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
          i_return LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    *V A R I A B L E S *
    DATA: v_file       TYPE string,
          v_string(1022),                " To read data from file
          v_ddate(10)  TYPE c,
          v_pdate(10)  TYPE c,
          v_dcre       type wrbtr,            " Dollar Amount credit conv
          v_ddeb       TYPE wrbtr,           " Dollar Amount debit conv
          v_lines TYPE i,                   " used for format message
          v_msg(100),                        " used for Error message
          v_ind   TYPE i,
          v_index type i.
    DATA: V_DOCHEADER LIKE BAPIACHE09.
         V_OBJ_TYPE LIKE BAPIACHE09-OBJ_TYPE,
         V_OBJ_KEY LIKE BAPIACHE09-OBJ_KEY,
         V_OBJ_SYS LIKE BAPIACHE09-OBJ_SYS.
    *C O N S T A N T S *
    CONSTANTS: c_creacnt TYPE string VALUE '111444',  " Liability account
               c_del type x value '09',               " for hash delimited file
               c_fslash VALUE '\',                    " Used for Forward slash
               c_bslash VALUE '/'.                    " Used for backward slash
    *S E L E C T I O N S C R E E N
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK first WITH FRAME TITLE text-001.
    PARAMETERS: p_fname LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\CorpCard.txt',  " File name
                rd_pserv RADIOBUTTON GROUP radi DEFAULT 'X',                    " Pres. Server
                rd_aserv RADIOBUTTON GROUP radi.                                " App.  Server
    Error file
    parameters: p_efile type rlgrap-filename default
    '/tmp/CorpCard_error'.
    SELECTION-SCREEN END OF BLOCK first.
    At selection-screen
    Check which file is selected
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
    Perform to get the current value of the selection screen
      PERFORM get_current_value.
      IF rd_aserv = 'X'.
        MESSAGE i398 WITH 'Can not browse unix directories'(030).
      ELSE.
      F4 help for presentation server file name
        PERFORM get_local_file_name USING 'P_FNAME' CHANGING p_fname.
      ENDIF.
    AT SELECTION-SCREEN.
    perform to validate input file
      PERFORM validate_filename USING p_fname.
    S T A R T O F S E L E C T I O N *
    START-OF-SELECTION.
    Presentation File upload
      if rd_pserv = 'X'.
        perform upload_pre_file.
      endif.
    Unix File Upload
      if rd_aserv = 'X'.
        perform upload_unix_file.
      endif.
    Perform to populate the internal table to the bapi.
    PERFORM populate_debit.
    Perform to populate the internal table to the bapi.
    PERFORM populate_credit.
    Perform to process the input data and post to FB50
      PERFORM post_data.
    E N D O F S E L E C T I O N *
    END-OF-SELECTION.
    *if not i_error[] is initial.
    perform to generate error file and send to application server
    perform generate_error_report.
    endif.
    *&      Form  get_current_value
    FORM get_current_value .
    Local internal table for screen fields
      DATA: BEGIN OF i_dynpfields OCCURS 0.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF i_dynpfields.
      CLEAR   i_dynpfields.
      REFRESH i_dynpfields.
      i_dynpfields-fieldname = 'RD_ASERV'.
      APPEND i_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-cprog
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = i_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          OTHERS               = 10.
      IF sy-subrc <> 0.
        MESSAGE i398  WITH 'Unbale to read the selection screen values'(031)
      ELSE.
        READ TABLE i_dynpfields INDEX 1.
        IF sy-subrc = 0.
          MOVE i_dynpfields-fieldvalue TO rd_aserv.
        ENDIF.
      ENDIF.
    ENDFORM.                    " get_current_value
    *&      Form  get_local_file_name
    FORM get_local_file_name USING p_file
                          CHANGING p_cfile.
    Local variable
      DATA: l_fname LIKE ibipparms-path,   " File name
            v_repid LIKE sy-repid.
      l_fname = p_file.
      v_repid = sy-repid.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = v_repid
          dynpro_number = sy-dynnr
          field_name    = p_file
        IMPORTING
          file_name     = l_fname
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc = 0.
        p_cfile = l_fname.
      ENDIF.
    ENDFORM.                    " get_local_file_name
    *&      Form  validate_filename
    FORM validate_filename  USING p_fname TYPE any.
      IF rd_aserv = 'X'.
    Local variable for file length
        DATA : l_len TYPE i.
        l_len = STRLEN( p_fname ).
        IF p_fname CA space.
          IF sy-fdpos < l_len.
            MESSAGE e398 WITH 'File name should not contain spaces'(032).
          ENDIF.
        ENDIF.
        IF p_fname CA c_fslash.
          MESSAGE e398 WITH 'File name should not contain \'(033).
        ENDIF.
        IF p_fname NA c_bslash. " No directory path given
          MESSAGE w398 WITH 'File will be created in home directory'(034).
        ENDIF.
      ENDIF.
      IF p_fname0(1) = c_fslash AND p_fname1 = space.
        MESSAGE e398 WITH 'File name should not contain only /'(035).
      ENDIF.
    ENDFORM.                    " validate_filename
    *&      Form  upload_pre_file
    FORM upload_pre_file.
    v_file = p_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
          dat_mode                = ' '
        TABLES
          data_tab                = i_indata
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE e398 WITH 'Unable to upload the file'(002).
      ENDIF.
    ENDFORM.                    " upload_pre_file
    *&      Form  upload_unix_file
    FORM upload_unix_file .
      open dataset p_fname for input in text mode encoding default.
      if sy-subrc <> 0.
        message i398 with 'File open error(012)'(012) p_fname.
        stop.
      else.
        do.
          clear: v_string.
          read dataset p_fname into v_string.
          case sy-subrc.
            when 0.
              split v_string at c_del
                   into  i_indata-t_glacnt
                         i_indata-t_descrip
                         i_indata-t_damt
                         i_indata-t_ccenter.
                append i_indata.
              clear i_indata.
            when 4.
              exit.
            when 8.
              message i398 with 'Unable to Read the File'(008) p_fname.
              stop.
          endcase.
        enddo.
        close dataset p_fname.
      endif.
    ENDFORM.                    " upload_unix_file
    *&      Form  post_data
    FORM post_data .
    V_DOCHEADER-BUS_ACT = 'RFBU'.
    *V_DOCHEADER-OBJ_TYPE = 'BKPF'.
    *V_DOCHEADER-OBJ_KEY = '$'.
    V_DOCHEADER-USERNAME = 'VSAWANT'.
    V_DOCHEADER-COMP_CODE = 'BP01'.
    V_DOCHEADER-DOC_DATE = SY-DATUM.
    V_DOCHEADER-PSTNG_DATE = SY-DATUM.
    *V_DOCHEADER-FIC_PERIOD = '00'.
    V_DOCHEADER-HEADER_TXT = 'Amex Card Upload'.
    V_DOCHEADER-DOC_TYPE = 'SA'.
       CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING
           DOCUMENTHEADER          = V_DOCHEADER
         CUSTOMERCPD             =
         CONTRACTHEADER          =
       IMPORTING
          OBJ_TYPE                = V_DOCHEADER-OBJ_TYPE
          OBJ_KEY                 = V_DOCHEADER-OBJ_KEY
          OBJ_SYS                 = V_DOCHEADER-OBJ_SYS
         TABLES
           ACCOUNTGL               = i_acgl
         ACCOUNTRECEIVABLE       =
         ACCOUNTPAYABLE          =
         ACCOUNTTAX              =
           CURRENCYAMOUNT          = i_currency
         CRITERIA                =
         VALUEFIELD              =
         EXTENSION1              =
           RETURN                  = i_return.
         PAYMENTCARD             =
         CONTRACTITEM            =
         EXTENSION2              =
         REALESTATE              =          .
    refresh i_acgl.
    refresh i_currency.
    clear i_acgl.
    clear i_currency.
    if V_DOCHEADER is initial.
      i_error[] =  i_indata[] .
        read table i_return index 1.
        i_error-message = i_return-message.
        append i_error.
        clear  i_error.
    else.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        wait up to 3 seconds.
    endif.
    ENDFORM.                    " post_data
    *&      Form  populate_debit
    FORM populate_debit .
    DATA: l_debamt(16) type c.
    clear: v_index,
           l_debamt.
    loop at i_indata from 2.
    v_ddeb = i_indata-t_damt.
      v_dcre = v_dcre + i_indata-t_damt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = i_indata-t_glacnt.
        i_acgl-ITEM_TEXT = i_indata-t_descrip.
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-COSTCENTER = i_indata-t_ccenter.
        i_acgl-DE_CRE_IND = 'S'.
        append i_acgl.
        clear i_acgl.
       write v_ddeb to l_debamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = i_indata-t_damt.
        append i_currency.
        clear i_currency.
       clear: v_ddeb.
    endloop.
    ENDFORM.                    " populate_debit
    *&      Form  populate_credit
    FORM populate_credit .
    DATA: l_creamt(16) type c.
    clear: l_creamt.
      v_index = v_index + 1.
        i_acgl-ITEMNO_ACC = v_index.
        i_acgl-GL_ACCOUNT = c_creacnt.
       i_acgl-ITEM_TEXT = .
        i_acgl-DOC_TYPE = 'SA'.
        i_acgl-COMP_CODE = 'BP01'.
        i_acgl-DE_CRE_IND = 'H'.
        append i_acgl.
        clear: i_acgl.
       write v_dcre to l_creamt currency 'USD'.
        i_currency-ITEMNO_ACC = v_index.
        i_currency-CURRENCY = 'USD'.
        i_currency-AMT_DOCCUR = v_dcre.
        append i_currency.
        clear: i_currency.
        clear: v_index.
    ENDFORM.                    " populate_credit
    *&      Form  generate_error_report
    FORM generate_error_report .
    data: credit(16) type c.
    WRITE :/1 'Title: Corporate Card Upload'(006),
             / 'Program:'(007), sy-repid,
             /  'Date:'(008), SY-DATUM.
      skip 1.
      uline:/(200).
      format color col_heading on.
      write:/(1) sy-vline,
             (8) 'Posting Date'(020),
             (1) sy-vline,
             (12) 'GL Account'(021),
             (1) sy-vline,
             (17) 'Description'(022),
             (1) sy-vline,
             (17) 'Dollar Amount'(023),
             (1) sy-vline,
             (17) 'Cost Center'(024),
             (1) sy-vline,
             (100) 'Error/Success Message'(028),
             (1) sy-vline.
      uline:/(200).
      format color off.
      write:/(1) sy-vline,
              (8) sy-datum,
              (1) sy-vline,
              (12) '113000',
              (1) sy-vline,
              (17) 'Clearing Account',
              (1) sy-vline,
              (17) v_dcre,
              (1) sy-vline,
              (100) i_error-message,
              (1) sy-vline.
      uline:/(200).
      loop at i_error from 2.
        write:/(1) sy-vline,
               (8) sy-datum,
               (1) sy-vline,
               (12) i_error-t_glacnt,
               (1) sy-vline,
               (17) i_error-t_descrip,
               (1) sy-vline,
               (17) i_error-t_damt,
               (1) sy-vline,
               (17) i_error-t_ccenter,
               (1) sy-vline,
               (100) i_error-message,
               (1) sy-vline.
      endloop.
      uline:/(200).
    clear: v_dcre.

  • Help! Compiling error

    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel

    mbehlok wrote:
    Hello guys!
    I',m having this bizare compiling error in the following code:
    Stirng test = "Test ; test ; test";
    String[] tests = test.split(";");
    System.out.printLine(tests.lengh());First off it highlights tests.length() and says in cannot find symbol, second When I compile it anyways it says ERROR, incompatible source code.... Thanks alot for your help
    best regards
    Michel
    String test = "Test ; test ; test";
      String[] tests = test.split(";");
      System.out.println(tests.length);
    In Java, there is no length() method i Array Class. It is a property. So, use like this.....
    Edited by:Mrityunjay Kumar on Oct 31, 2009 4:15 PM

Maybe you are looking for

  • How to get contacts from phone to macbook air

    How do I get all my contacts from my iPhone 5s to my new macbook air?  I have a different account than my apple ID hooked up to my phone so I don't know what to do.

  • XD Transfer Quiting Unexpectedly

    I am running FCP 6.03 and am trying to import some xd cam footage in to fcp using xdcam transfer. The footage was shot on the EX1. About 50 percent of my media will not import in to fcp from xdcam transfer. The software just quits and gives me a mess

  • How to unlock the request for a report and add the same query to new reques

    hi,      how to unlock the request for a  and add the same query to new reques

  • Error in custom channel

    any idea where to look to fix this? 02/04/2004 11:22:24:300 AM MST: Thread[Thread-1798,5,main] ERROR: PSContainerProviderContext.getContent(): failed to get content, completed=[MGFDICMaint] 02/04/2004 11:22:24:319 AM MST: Thread[Thread-148,5,main] ER

  • Can't activate the iPhone 3GS after updating to iOS 5

    Hi All,         I updated my iPhone 3GS to iOS 5 and i got the setup screen for the language and region and eventually i can't activate the iPhone as the iTunes says " there is no sim card installed in the iphone that you are attempting to activate "