Problem with the importing wizard

Hei,
I have a dll which I want to import to the Labview project. So, I decided ti use the import wizard, but when parsing the header file, Labview freezes. I am using a couple of structures (3) and a handle. I have also read that the wizard has problems when dealing with complex data. What would be best solution for adding it to the project? To in a way "unbundle" the struct and then create a many simple variables and then parsed to dll.  (This would be a pain)
How to deal with the handle or will wizard easy understand that?
I am really looking for a painless solution  
thanks for the help

Can you post the header file for the DLL?
Through a process of trial and error you could determine which functions causes problems with the wizard (comment out half the functions, attempt to import, repeat) and then manually create the LabVIEW VIs for the troublesome ones. If there aren't too many functions, you could do it all by hand, which isn't that hard if you have some understanding of C (and if you don't, you'll undoubtedly have other problems when the wizard doesn't do the right thing).

Similar Messages

  • Problem with the imported video clips

    Hi! I'm very new to Premiere Pro, so please don't scold me :)
    I have a video file (.AVI) that I want to remove the audio from, and insert a new audio track.
    Here's my problem: When I import the AVI file into Premiere, and double-click it to preview it, it is really glitchy. The video is 1 minute long. During ~5 seconds in the very beginning, the whole video's "video" track is played, extremely speeded up (It plays through it all). The rest of the video consists of a freezed frame, and the audio is played in normal pace.
    I do not know which codec the AVI-file is encoded with, is this relevant?
    When I restarted Premiere the first time, it told me that it had to download codecs. I pressed OK and the codecs was downloaded and installed okay, but the problem remains.
    I copied the .AVI-file directly from my camera (Canon IXUS 700 I believe).
    When I play the original AVI file with VLC, everything runs perfectly with audio and video.
    I'm totally clueless, anyone have a clue how I can solve this?
    Any help at all appreciated, thanks in advance!

    >I do not know which codec the AVI-file is encoded with, is this relevant?
    Very relevant. Please provide
    these details to help us help you.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Problem with the "import" command...

    Hi...I'm working with drivers and objects right now. My last class project was to create a Hi-Lo type of card game where a card would be drawn..then the user would have to guess if the next card would be higher or lower... We had to create an object called "PlayingCard." So in the driver..of course we had to use "import PlayingCard;"...Now this is where the problem is: when i try to compile the driver..i get the error "cannot resolve symbol" where the carrot is pointing under the "i" in "import PlayingCard;"... Also, in the driver program we had to create two cards "PlayingCard c1 = new PlayingCard();" and "PlayingCard c2 = new PlayingCard();"... When trying to compile there is also the same "cannot resolve symbol" error..with the carrot pointing under the "P" in the "PlayingCard ......."
    I already checked the obvious..case sensitives and all... The weird thing is that on my friends comp..he is able to successfully compile my driver and object. The same thing goes for when I use the computer at school. It works without changing anything. My friend has the same problem..he can't compile on his machine running XP..but he can on his machine running 2000. We thought it was an OS problem..but my machine is running XP (the one that works for him). So what could be the problem?? I tried reinstalling, tried 1.3 and 1.4, etc etc.
    If anyone has a solution..please help! Thanks in advance!!

    If PlayingCard is not in a package (ie doesn't begin with a package statement), then you don't need to import it.

  • Problems with the Setup Wizard for WRT54GC

    Hi…
    I just bought a WRT54GC router and while trying to install it I had some problems.
    I opened the Setup Wizard on the CD to install the router.
    When I reach step 6 the internet connection is being checked with the following result: “Unable to detect the internet connection. Please check your cable connections”.
    I’ve checked all the cables and everything is okay – I’m also able to access the internet which shows me that all cables are correctly connected.
    So why do I get this message?
    What do I have to do?
    The problem is that I’m not able to continue the Setup Wizard further than step 6.
    Thanks!

    well..if you have an internet connection through the router and the CD setup shows “Unable to detect the internet connection. Please check your cable connections”. I would recommend you to neglect it....discard the CD and configure the router manually
    you can access the router from the wired computer using http://192.168.1.1 .. the default password is admin

  • Extension of seeded page - problem with the import

    Hi
    I was extending a seeded page in SSHR. I found the relevant VO to be changed in order to get the desired functionality.But after I changed the VO and put it back into the server,imported the particular jpx file using jpx import,I am not able to open the pages in self service.
    Now what I want to do is to get the file which I imported to database deleted.But I am not able to do that as I dont know the path of the page.
    Import stmt wat i used is :
    jpximport D:\jDev\jdevhome\jdev\myprojects\LeaveProcess.jpx -userId 1 -username apps -password password -dbconnection "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = 172.26.149.198)(Port = 32019))) (ADDRESS = (PROTOCOL = TCP)(Host = 'Host Name')(Port = 'PortNUmber')) (CONNECT_DATA = (SID=SID)) (SOURCE_ROUTE = YES))"
    Pls let me know any method to find out the relevant page n delete the imported thing from the db.
    Regards,
    Preeti

    Hi
    Ya actually wat happened is after doing all the thing ,I mean import the jpx,move the classes zip file to server n all ,I am not able to open the self service page.I m getting the following error:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition aos.oracle.apps.per.selfservice.common.server.ExtendedAsgSummaryVO of type View Definition not found
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:985)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:210)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:679)
         at oracle.apps.per.selfservice.common.webui.SummaryContainerCO.processRequest(SummaryContainerCO.java:91)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Inlined Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.beans.layout.OATableLayoutBean.processRequest(OATableLayoutBean.java:349)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Inlined Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Inlined Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1095)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Inlined Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java(Inlined Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java(Compiled Code))
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2298)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1711)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._RF._jspService(_RF.java:102)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java(Compiled Code))
         at org.apache.jserv.JServConnection.run(JServConnection.java(Compiled Code))
         at java.lang.Thread.run(Thread.java(Compiled Code))
    Basically it says the VO definition is not found or watever... I m totally confused.
    Now wat I want is just to clean up the thing .Wanna delete eevrything related to that proj n make a fresh start but I am not able to.As I dont know the path of the file which I imported to database :-( n hence I am not able to delete that part n its erroring out !
    Pls let me know how can I get rid of that file !
    Regards,
    Preeti

  • Problem with the cfg-wizard - Service Registry and SLD Client

    Hi,
    I try to complete the initial activity for configuring the Registering Services Registry instance in SLD (http:
    localhost:port\nwa\cfg-wizard)  but when i start the wizard i found this error:
    Error: Getting WBEMClient failed: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.. Please check that destination SLD_Client is maintained correctly.
    I don't know what is that error. Anyone can help us?
    regard.

    Hi ,
    I am facing an issue while running  SLD configuration wizard in SAp NW 7.3.
    Find the error message below.
    com.sap.sldserv.exception.SldServiceRuntimeException: Getting WBEMClient failed: com.sap.sldserv.exception.SldServiceRuntimeException: Destination SLD_Client not found. Destinations are defined in the Destination service.. Please check that destination SLD_Client is maintained correctly.
    Can anyone guide on this issue.
    ~Viswanathan

  • Problem with the FOR statement.....again!

    Hi everyone,
    Well I'm still trying to do a car slideshow using external
    files and can't seem to see the end. The current movie is here:
    http://www.virtuallglab.com/projects.html
    I also attach the code. My problem is I had originally set up
    an animation with 2 pictures sliding in with some text, and then
    wait 4 seconds before sliding out, and then next pictures and text
    would slide in and so on, using a setInterval.
    The problem is the FOR loop seems to skip the setInterval and
    the function "wait", so it just loops quickly and jumps to last
    picture, so on the example above, it just slides the last picture
    (i=9) and that's it!
    Can you not include another function within a FOR statement.
    Or is there a way to tell the FOR loop to wait until all motion is
    finished?
    Any help greatly appreciated
    import mx.transitions.*;
    import mx.transitions.easing.*;
    for (i=0; i<10 ; i++) {
    var picLeft = "pics/"+i+".jpg";
    var picRight = "pics/"+i+"b.jpg";
    var txtToLoad = "text/"+i+".txt";
    this.createEmptyMovieClip("leftHolder",1);
    leftHolder.loadMovie(picLeft,i,leftHolder.getNextHighestDepth());
    leftHolder._x = -200;
    leftHolder._y = 15;
    var leftTween:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, 10, 2, true);
    this.createEmptyMovieClip("centerHolder",2);
    centerHolder.loadMovie(picRight,i+"b",centerHolder.getNextHighestDepth());
    centerHolder._x = 180;
    centerHolder._y = 250;
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 15, 2, true);
    text._x = 600;
    myData = new LoadVars();
    myData.onLoad = function(){
    text.carText.text = this.content;
    myData.load(txtToLoad);
    var textTween:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 420, 2, true);
    myInterval = setInterval(wait, 4000);
    function wait() {
    var leftTweenFinished:Tween = new Tween(leftHolder, "_x",
    Strong.easeOut, leftHolder._x, -200, 1, true);
    var centerTween:Tween = new Tween(centerHolder, "_y",
    Strong.easeOut, centerHolder._y, 250, 1, true);
    var textTween2:Tween = new Tween(text, "_x", Strong.easeOut,
    text._x, 600, 1, true);
    clearInterval(myInterval);
    ***************************************************************************************** ***

    There is no way to tell a for loop to wait. That is not what
    they do.
    The entire for loop will execute (if possible, and it doesn't
    enter some kind of continuous infinite loop) completely before each
    time the frame is rendered.
    If you want to spread things out over time you need to use
    the setInterval -- but not inside a for loop! If you do that you
    immediately set however many intervals as your loop has. In this
    case you will also assign the ids for those intervals to the same
    variable, effectively overwriting the value so you will never be
    able to clear most of those intervals.
    So you need to rethink you whole structure. Set up some kind
    of counter and limit like this:
    var slidesToShow:Number=10;
    var curSlide:Number=0;
    Then have your setInterval increment the curSlide each time
    it is called and check to see if it has shown all of them. That is
    where your "loop" comes in.
    As for the other part of your question -- yes you actually
    have two different issues going on -- again you cannot make a for
    loop wait for anything. So no there is no way to pause it while you
    wait for your tween to end. But you can be notified when a tween
    ends.
    Check out the documentation about the tween class in the help
    files. There you will find the onMotionFinished event. So you can
    set up one of those to start whatever needs to be started when the
    tween has finished.
    You should also use the MovieClipLoader class to load your
    images, because you have no idea how long it will take to load
    them. Using that class you get a nice event (onLoadInit) that tells
    you when the asset is ready to be used.
    Finally I'm thinking you might want to use setTimeout instead
    of setInterval. It only goes once, while setInterval repeats
    forever. So I would think your algorithm would be something like
    this.
    1. load external asset
    2. when ready animate in and set onMotionFinished handler
    3. when motion is finished start loading next asset and
    setTimeout for 4 seconds.
    4. when 4 seconds is up or the clip is loaded (which ever
    takes longer) go to 2 and repeat.
    If this is going to be run locally on a hard drive or CD you
    won't have any problem with the length of time it takes to load the
    external assets, but if it is over the web it will take time.

  • Problems with the Proxy Programme--Please help

    Hi All,
    I have written a simple proxy server in the form of a servlet. I changed the proxy config of my browser to connect to this servlet hosted on the default context(http://localhost:8080) of the Tomcat 5.0.25 . Well , this servlet internally connects to the proxy of the corporate LAN . The logic that I have applied is as follows. The servlet gets the request from the client (ie the browser in this case) , extracts the headers and contents from the request, sets them to a new request that it forms and finally send this new request to the proxy. When the proxy responds, the servlet collects the response headers and contents adn writes them in its response. To sum up , this servlet transparently carries the requests and responses between the client(browser) and the corporate LAN proxy. Now the problem is this. Let's say , now I am accessing http://www.google.com.The browser sends a request to my servlet with the following headers as they are extracted by my servlet.
    ProxyServer:::>posting request
    ProxyServer:::>headerValue::> headerName = accept : headerValue=*/*
    ProxyServer:::>headerValue::> headerName = referer : headerValue=http://www.google.com/
    ProxyServer:::>headerValue::> headerName = accept-language : headerValue=en-us
    ProxyServer:::>headerValue::> headerName = proxy-connection : headerValue=Keep-Alive
    ProxyServer:::>headerValue::> headerName = user-agent : headerValue=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; UB1.4_IE6.0_SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    ProxyServer:::>headerValue::> headerName = host : headerValue=www.google.com
    ProxyServer:::>headerValue::> headerName = cookie : headerValue=PREF=ID=1be27c0a74f198ca:TM=1082058853:LM=1082058853:S=bu6ORrygzm8AUkm8
    ProxyServer:::>postRequest
    I set these headers into a new connection opened to the proxy and post a fresh request to the proxy,which, in turn responds with the following headers.
    ProxyServer:::>posted request successfully
    ProxyServer:::>writing response
    ProxyServer:::>writeResponse-->headerName = Proxy-Connection : headerValue = [close]
    ProxyServer:::>writeResponse-->headerName = Content-Length : headerValue = [257]
    ProxyServer:::>writeResponse-->headerName = Date : headerValue = [Tue, 13 Jul 2004 14:01:40 GMT]
    ProxyServer:::>writeResponse-->headerName = Content-Type : headerValue = [text/html]
    ProxyServer:::>writeResponse-->headerName = Server : headerValue = [NetCache appliance (NetApp/5.5R2)]
    ProxyServer:::>writeResponse-->headerName = Proxy-Authenticate : headerValue = [Basic realm="Charlotte - napxyclt2"]
    ProxyServer:::>writeResponse-->headerName = null : headerValue = [HTTP/1.1 407 Proxy Authentication Required]
    ProxyServer:::>writeResponse exiting
    ProxyServer:::>wrote response successfully
    I write these headers back to the client. According to what I was thinking, the client ie the browser would open a new dialog box asking for username/password owing to the presence of the "Proxy-Authenticate " header. But it does not happen that way. Rather the browser stops responsding and displays a blank page. Does anyone know why it happens this way? I am pasting the server prog below for everybody's reference.
    package server.proxy;
    //import all servlet related classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import server.resources.*;
    //My Proxy server --->Currently it is very simplea and relies on
    //other proxy servers of an already connected network.
    public class ProxyServer extends HttpServlet
    //stores the resource bundle
    private ServerResBundle resBundle = null;
    //checks for the mode of operation
    private boolean proxySet = false;
    private String proxy = null;
    //storing the original System out/err etc
    private PrintStream sysOutOrig = null;
    private PrintStream sysErrOrig = null;
    private InputStream sysInOrig = null;
    //initialise certain features that are required later
    public void init() throws ServletException
    try
    //initialise the resource bundle
    this.initResBundle();
    System.out.println("ProxyServer:::>res bundle init");
    //set the mode of operation
    this.setMode();
    System.out.println("ProxyServer:::>mode set");
    //set the system out and err --System.setOut etc
    this.setSystemOutErr();
    System.out.println("ProxyServer:::>in/out/err set");
    }//End try
    catch(Exception e)
    System.out.println("Exception in init..."+(e.getMessage()));
    throw new ServletException(e);
    }//Edn
    catch(Throwable e)
    System.out.println("Irrecoverable Error...");
    throw new ServletException(e);
    }//End
    }//End init
    //method to init the resource bundle;
    private void initResBundle()
    this.resBundle = ServerResBundle.getBundle();
    }//End
    //method to set the mode of the server--proxy or direct
    private void setMode()
    //read the target proxy property from the bundle and
    //if it is set,take that URL
    String temp = (String)(this.resBundle.getResource(ResKeys.PROXY_SERVER));
    if ( (temp != null) && (temp.length() > 0) )
    this.proxySet = true;
    this.proxy = temp;
    temp = null;
    }//End
    }//End
    //method to set the system out and err etc
    private void setSystemOutErr() throws Exception
    //keep a copy of the original system out and error
    this.sysOutOrig = System.out;
    this.sysErrOrig = System.err;
    try
    //read the options adn if they are set, take the values directly
    String newOutStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_OUT));
    String newErrStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_ERR));
    if ((newOutStr != null) && (newOutStr.length() > 0))
    System.setOut(new PrintStream(new FileOutputStream(new File(newOutStr),true),true));
    }//End if
    if ((newErrStr != null) && (newErrStr.length() > 0))
    System.setErr(new PrintStream(new FileOutputStream(new File(newErrStr),true),true));
    }//End if
    }//End
    catch(Exception e)
    //restore the stuff
    System.setOut(this.sysOutOrig);
    System.setErr(this.sysErrOrig);
    }//End
    }//End
    //this is where the proxy functionalities will be embedded
    public void service(HttpServletRequest req,HttpServletResponse resp)
    throws ServletException,java.io.IOException
    //conenction URL
    URL target = null;
    //conenction to the remote object
    URLConnection targetConn = null;
    //stores the OOS and the OIS
    ObjectOutputStream oos = null;
    ObjectInputStream ois = null;
    try
    //check for the mode of operation
    if (proxySet)
    URLConnection objects go through two phases: first they are created, then they are connected.
    After being created, and before being connected, various options can be specified
    (e.g., doInput and UseCaches). After connecting, it is an error to try to set them.
    Operations that depend on being connected, like getContentLength, will implicitly perform the connection,
    if necessary.
    //for the URL to the proxy
    target=new URL(this.proxy);
    //conenct to the proxy
    targetConn = target.openConnection();
    //set the details of the connectuon
    targetConn.setDoInput(true);
    targetConn.setDoOutput(true);
    targetConn.setUseCaches(false);
    // If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. If false, then no user interaction is allowed
    targetConn.setAllowUserInteraction(true);
    //connect to the remote object
    // targetConn.connect();//call this only when all the request properties are set
    System.out.println("ProxyServer:::>posting request");
    //post the received request to the URL
    this.postRequest(targetConn,req);
    System.out.println("ProxyServer:::>posted request successfully");
    System.out.println("ProxyServer:::>writing response");
    //receive the response
    //write the received response to the client
    this.writeResponse(targetConn,resp);
    System.out.println("ProxyServer:::>wrote response successfully");
    }//End if
    else
    //currently this functionality is not supported
    throw new ServletException(
    (String)(this.resBundle.getResource(ResKeys.ERR_FUNC_NOTSUPPORTED)));
    }//End
    }//End try
    catch(Exception e)
    if(e instanceof ServletException)
    throw (ServletException)e;
    }//End
    if (e instanceof IOException)
    throw (IOException)e;
    }//End
    //wrap it up in ServletException
    throw new ServletException(e);
    }//End
    }//End
    //method to write the response back to the client
    private void writeResponse(URLConnection targetConn,HttpServletResponse resp)
    throws ServletException
    //get all the header fields from the response connection and set them to the
    //response of the servlet
    Map headerFields = null;
    Iterator headerFieldEntries = null;
    Map.Entry header = null;
    //stores the input stream to the conn
    BufferedReader brConn = null;
    //stores the writer to the response
    PrintWriter prResp = null;
    //checks if the proxy authentication needed or not
    boolean proxyAuthReqd = false;
    try
    //juste ensuring that the proxy authentication is reset
    proxyAuthReqd = false;
    if( (targetConn != null) && (resp != null) )
    //Returns an unmodifiable Map of the header fields.
    //The Map keys are Strings that represent the response-header field names.
    //Each Map value is an unmodifiable List of Strings that represents the corresponding
    //field values
    headerFields = targetConn.getHeaderFields();
    //Returns a set view of the mappings contained in this map
    Set temp = headerFields.entrySet();
    //Returns an iterator over the elements in this set
    headerFieldEntries = temp.iterator();
    if (headerFieldEntries != null)
    while (headerFieldEntries.hasNext())
    Object tempHeader = headerFieldEntries.next();
    if (tempHeader instanceof Map.Entry)
    header = (Map.Entry)tempHeader;
    Object headerName = header.getKey();
    Object headerValue=header.getValue();
    System.out.println("ProxyServer:::>writeResponse-->headerName = "+headerName+" : headerValue = "+headerValue);
    //do not select the key-value pair if both the key adn the value are null
    if ( ( headerName == null) && (headerValue == null) )
    continue;
    }//Enmd
    if (headerValue != null)
    List headerValList = null;
    if (headerValue instanceof List)
    headerValList = (List)headerValue;
    }//End
    if(headerValList != null)
    for (int i=0;i<headerValList.size();i++)
    Object headerValueStr = headerValList.get(i);
    if (headerValueStr instanceof String)
    //note that the header-key can not be null for addHeader
    //I have made this temporary provision to make the programme work.
    resp.addHeader(( (headerName==null)? ("null_header"+i) :(String)headerName),
    (String)headerValueStr);
    //check if the proxy authentication required or not
    if (((String)headerValueStr).
    indexOf(resp.SC_PROXY_AUTHENTICATION_REQUIRED+"") != -1)
    System.out.println("ProxyServer:::>writeResponse-->proxy auth needed");
    //proxy authentication is needed
    proxyAuthReqd = true;
    }//End
    }//Ednd of
    else if (headerValueStr == null)
    resp.addHeader(( (headerName==null)? null :(String)headerName),
    null);
    }//End
    }//End for
    }//End if
    }//End if
    }//End
    }//End while
    }//End if
    //get the writer to the client
    prResp = resp.getWriter();
    System.out.println("ProxyServer:::>writeResponse-->proxyAuthReqd="+proxyAuthReqd);
    //juste test a simple header
    System.out.println("Proxy-Authenticate = "+(resp.containsHeader("Proxy-Authenticate")));
    //if the proxy asks you for authentication,pass on the same to the client
    //from whom you have received the request.When this flag is true,the connection
    //is closed by the remotehost adn hence any attempt to open in input steram
    //results in an error ie IOException
    if (!proxyAuthReqd)
    //now get the content adn write it to the response too
    brConn = new BufferedReader(new InputStreamReader(
    targetConn.getInputStream()));
    String tempStr = null;
    while ((tempStr = brConn.readLine())!=null)
    prResp.println(tempStr);
    }//End while
    //close the connections
    brConn.close();
    }//End if
    else
    prResp.println("Proxy Authentication needed...");
    }//End
    //close the streams
    prResp.flush();
    prResp.close();
    }//End if
    System.out.println("ProxyServer:::>writeResponse exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    //method to post request to the internet
    private void postRequest(URLConnection targetConn,HttpServletRequest req)
    throws ServletException
    //extract the header parameters and the body content from the incoming request
    //and set them to the new connection
    Enumeration reqHeaders = null;
    //reads the incoming request's content
    BufferedReader brReqRd = null;
    PrintWriter prResWt = null;
    //stores temp header names and values
    String headerName = null;
    String headerValue = null;
    try
    if( (targetConn != null) && (req != null) )
    reqHeaders = req.getHeaderNames();
    //extract a header adn set it to the new connection
    while (reqHeaders.hasMoreElements())
    headerName = (String)(reqHeaders.nextElement());
    headerValue = req.getHeader(headerName);
    targetConn.setRequestProperty(headerName,headerValue);
    System.out.println("ProxyServer:::>headerValue::> headerName = "+headerName+" : headerValue="+headerValue);
    }//End
    System.out.println("ProxyServer:::>postRequest\n");
    //establis the actual connection
    //calling this method bfore the above loop results in IllegalStateException
    targetConn.connect();
    //NOTE : try reading from and writing into OIS and OOS respectively
    //now read the contents and write them to the connection
    // brReqRd = req.getReader(); //this hangs for some reason
    brReqRd = new BufferedReader(new InputStreamReader(req.getInputStream()));
    System.out.println("Got the reader..brReqRd = "+brReqRd);
    if (brReqRd != null)
    String temp = null;
    //establish the printwriter
    // prResWt = new PrintWriter(targetConn.getOutputStream(),true);
    prResWt = new PrintWriter(targetConn.getOutputStream());
    System.out.println("trying to read in a loop from brReqRd.. ready="+(brReqRd.ready()));
    while( (brReqRd.ready()) && ((temp=brReqRd.readLine()) != null) )
    System.out.println("In while::>temp = "+temp);
    prResWt.println(temp);
    }//Emd while
    //close the streams adn go back
    brReqRd.close();
    prResWt.flush();
    prResWt.close();
    }//End
    }//End outer if
    System.out.println("ProxyServer:::>postRequest exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    }//End

    Hi serlank ,
    Thanks for your reply. Well , I initially I thought of not pasting the code,as it was too long. But I could not help it,as I thought I must show in code what I exactly meant. That's why I followed a description of my problem with the code. You could probably have copied the code and pasted it in one of your favourite editors to take a look at it. Did you,by any chance, try to read it on the browser? And as regards reposting the same message, I can say that I did it as I felt the subject was not quite appropriate in the first posting and I was not sure as to how I could delete/alter the posting. I am not asking for a code-fix,but some suggestions from some one who might ever have come across such a thing.Anyway, lemme know if you have any idea on it. Thanks...

  • Problem with the hierarchial fields in a Purchase order xml report

    Hi,
    I am having a problem with the hierarchy problem. We are populating attribute 15 of a PO header. some times it can be null. FYI, we are using 11.5.10 instance where oracle supports direct PO template rather than having a rdf file.
    And now in the xml report, if attribute15 of po header is not null then it is fine.
    But if attribute15 is null, then the template is picking from the next available attribute15 that is from the po lines. As the line level group of "LINES" is between the "PO_DATA" (header group), hence the template is checking for next available attribute15.
    Can any one please suggest how to design the template where we can make the template to check only for that tag at the header level group rather than the line level group tag?
    Thank You in advance.
    Regards,
    Srinivas.

    Hi
    Incase you want to transfer attachements from SRM to R/3, then you try implementing the BADI in SRM side. The BADI which will help in this case is
    <b>BBP_CREATE_PO_BACK</b> BADI.
    <b>Please read the standard SAP documentation of this BADI using SE18 Transaction, before making any code changes.</b>
    <u>Few Important SAP OSS notes to refer in this case -></u>
    Note 989184 - Transferred shopping cart with internal attachments
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 916347 - Transfer shopping cart with internal attachments
    Note 1001130 - FAQ - Attachment questions (Buyside)
    <u>Few useful links -></u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/49/b32640632cea01e10000000a155106/frameset.htm
    Re: Attachments to backend
    Re: Document Attachments in Shopping Cart
    Re: Attachment in SRM
    Re: SRM Documents and Attachments
    Re: Limit in Attachments of an item in Shopping Cart
    Re: return delivery text from material document is not passed to SUS
    </b>
    Do let me know, incase you face any problems.
    Regards
    - Atul

  • There is a problem with the server's security certificate. The security certificate is not from a trusted certifying authority. SAP Business One is unable to connect to the server

    Hello,
    I have an issue with connecting client SB1H on Windows, the scenario is as follows:
    1.- Server:
         Suse Linux Enterprise Server 11.3 kernel version: 3.0.76-0.11 IBM
         NDB and Server are review 69 SP06
    2.- Client:
         Windows 8 Pro Virtual Machine on Microsoft Hyper-V
         SB1H PL 11 version 32bits    
         SAP HANA Studio version 1.0.60
    When I run SB1H the following message appears:
    There is a problem with the server's security certificate. The security certificate is not from a trusted certifying authority. SAP Business One is unable to connect to the server.
    Any idea what could be the solution?

    Hi,
    Please check SAP notes:
       1993392 - Server components setup wizard: New default values for certificates and single sign-on option
    1929288 - Do not configure SSL for XApp during installation or upgrade if XApp is installed on a different machine than the SAP HANA server
    Thanks & Regards,
    Nagarajan

  • Problem with the AF of my new 18-135mm EFS IS STM lens

    Hello,
    The lens came with the EOS Rebel T5i bundle.
    The auto focus is working incorrectly, focusing closer than the detected area. This is happening when I use the viewfinder. When a picture is taken using the “direct view” (LCD display) it focus correctly.
     I didn’t use the camera a lot since I bought it, now looking the first pictures I see that this problem is happening since I bought it.
    I changed the zoom lens with another Canon camera and then my new Rebel T5i works fine and the same problem happens with the other camera, therefore I’m sure that the problem is in the lens and not in the camera body.
    The out of focus is more noticeable when I'm taking pictures in 18mm position to an object farther than 2 meters but it is happening in any zoom position. It is clear when I compare the same picture taken with the viewfinder with one taken with the LCD Display.
    I updated the body firmware and the problem continues.
    Is it possible to update the lens firmaware? I couldn’t find them in the canon webpage.
    I will go into an important trip next week, therefore I will not have time to send the camera to repair.
    Any idea?
    Thanks!

    You may want to rent a lens for your trip and get this lens to service.
    You'll want to be sure it really is a problem with the lens (it sounds like it is from your description).  Test the lens against a "flat" target (such as a wall).  You can hang something on the wall with high-contrast (newspaper works great) and put the camera on a tripod.  The idea is that (a) the camera is definitely not moving, (b) the focus target is definitely not moving, and (c) the target is flat and there are no distracting objects in the field of view so it's not possible for the focus system to decide to lock focus on anything OTHER than your intended target.
    Next... deliberately turn the focus ring to put the camera out of focus (so that the camera HAS to move the focus).  This is mildly tricky with an STM lens since there's no mechanical link from the focus ring to the lens -- it's electronic.  The lens only accepts focus input when focus is active (e.g. half-press the shutter button, etc. to wake it up.)  I run focus all the way in and test several times, then run focus all the way out and test several times (that way it has to move focus in both directions.)
    If the lens is consistently focusing closer, then it will need service.  
    Tim Campbell
    5D II, 5D III, 60Da

  • Problems with the Fios 20/5 connection speed in my area dropping down to less than 3mbs.

    I have written out a flyer that I plan to go door to door with. Since I am under contract with Verizon, I am forced to honor my side of the contract. Even if they are allowed to make me pay for a service that I am not completely getting. I am very displeased and as soon as my contract is up, I will change back to My local cable companies all in one that does not require a contract and has no issue such as the one I am having.
    Do you have Verizon Fios Internet?
    Are you on the 20/5 connection?
    If so, you may not be getting the speed you are paying for. I am on a 20/5 connection and when my computer is on for longer than an hour the internet download speed with Verizon Fios starts to slow down until it is below 3mbs. It takes about 24 hours to get down to 3mbs but only about an hour or two to get down to about 6-7mbs when I am paying for 20mbs…
    I have 3 computers in my home that have Windows Vista, Windows XP home edition and Windows Media Edition 2005. All of the computers run into this same exact issue, I have tried every setting I could think of with my 24 years of computer technical experience. I finally took one machine with Windows XP and ran a full format on the hard drive and reinstalled a fresh Windows Xp Operating system onto the hard drive so it is a bare bones OS. This way there is no other software on the machine that could possibly be causing the problem and found that when I connected online through Verizon Fios the machine still ran into the same exact issue. This proves to me that the issue is not on any of my machines.
    Now all of this time my buddy that lives 1.2 miles away from my house has been having the same issue with three computers at his home also. He has Windows Vista on two machines and Windows XP Pro on one.
    When I concluded that it was a Verizon Fios issue, after a few months of trying to get by, researching, diagnosing and losing much information in order to verify it was on Verizon’s side, I contacted technical support at Verizon’s online website. The agent and I went through the regular procedure that anyone would have to go through and I patiently explained what I had done to try to diagnose the issue. The agent came to the conclusion that he could not figure out the problem so he guessed that the Verizon router/modem may be the issue and told me he would send me a new one by mail.
    I received the new Verizon router/modem, installed it and had to call to have it activated. Afterward it still had the same exact issue as the prior router/modem. So now we know it’s not my computers, it’s not the router/modem. My Verizon router/modem is connected right at the Optical Network Terminal (ONT), which is the box that connects the fiber-optics to your home, usually just inside or outside your garage wall. Mine is just outside…
    From here my buddy, who has been having this problem also the entire time, called the local office of Verizon Fios and an installer was setup to come over to his home and trouble shoot the issue. My buddy called me and told me when the installer was headed to his home and I met him at his home to see what the installer found and in hope that my issue would be fixed at the same time. The installer went through the system at his house and was frustrated about not finding the reason for the issue and ready to leave without fixing anything. I simply asked that he stay long enough to see the issue present itself within an hour-hour and a half.
    His laptop itself already showed the speed drop from 20mbs to between 16-17mbs, it was on its way down. He basically told us something that online tech support already stated to me, it is extremely difficult to prove it is on Verizon’s side. In other words it is extremely difficult to prove it, in a way that will convince Verizon to check its own servers, routers and software updates to their own systems. The installer, good guy, couldn’t/wouldn’t stay but we did convince him not to simply drop the issue. He called shop and they sent another installer out to take over the issue.
    The new installer, great guy, got up to speed on what was already done at my buddies home. The first installer, checked and replaced the Verizon router/modem, checked the wiring and splitters. Basically went through the entire system up to the Optical Network Terminal (ONT), the box that connects the fiber-optics to your home. He pulled and replaced the Optical Network Terminal (ONT), thinking that perhaps the unit was compromised. While he was doing this job a tech was called and asked to stop by for assistance with the issue. The tech checked the computers inside and tried to do some settings that the main office informed him to try. I explained to the tech that the same issue was happening at my house, that I went through every setting I could think of and find online to help alleviate the issue. After some shop talk about what I had tried, including the full format and reinstall of the operating system on one of my machines, he just as I came to the conclusion that it couldn’t be with the computers and since everything that had to do with the Verizon Fios system from the street to the end-user computer had been checked, verified and/or replaced, the issue had to be coming from Verizon’s main office.
    The installer had already checked the main at the road that has the 3x2 green service cover on it by the side walk. Everything was in good working order. The tech called the main office to see if my buddy and I were on the same hub, basically a big splitter that continues the service from the main office to the homes, we were not. So that was ruled out…
    My understanding of the system ends there. The only other components I know of are the Main branch’s routers, servers and software.
    Verizon had a new connection speed added to their system, 25/15 about the same time our issue began. So I am guessing that when they updated the system to include this new connection speed they corrupted the software for the 20/5 connection.
    We have been waiting to hear from the tech that was at my buddy’s house, to see if the issue will be dealt with. My buddy has called him a couple of times and he has mentioned that he is trying to get it addressed and to call back if we hadn’t heard from him. He remembered who he and I were and what the issue was, so I believe he is taking it seriously. How far he can move the issue is beyond me…
    I want to add that my buddy and I have been customers with the all in one package from Verizon Fios since their services have moved into our area, about a year and a half… It has only been since about June that this issue has presented itself, before then we were on 7th heaven with the speeds. We couldn’t have been more than happy with the services.
    This issue has caused that to all go afoul, not only do the speeds get down to less than 3mbs but the speed is not smooth at all. Rather the 3mbs speed is stop and go, freezing in between at times, very choppy. Barely usable at times, unless you restart the computers and start over.
    We are hoping that anyone with Verizon Fios Internet Services will keep an eye on their speeds by going to http://speedtest.net and doing tests to verify they are getting the speeds they are paying Verizon for.
    This is what it will take for Verizon to take this issue seriously is to gather everyone on the system that may be having the same issue. I believe it is everyone that is within the 1.2 miles from my house to my buddy’s and will distribute flyers to each and every house in between.
    If you find that your speed is not as fast as it should be please contact me and I will add you to the list, this way we can see exactly how far this problem covers and perhaps it will also help to show a pattern and understanding as to why the issue is present in the first place.
    My contact information,
    I have left this out here, you can contact me on these forums...

    Actually what this came down to was an issue between Windows Vista and an Ethernet Card on one of the machines in each of our local networks.
    Even though our two machines are 6 years apart, we both have the same ethernet adapter on our main desktops. A RealTek RTL8139/810x Family Fast Ethernet Nic. It seems that the adapter does not work at the 20mbs download speeds with Vista. For some reason the adapter does not shut down when the computer does? I don't understand why but it doesn't, it keeps the connection alive. I removed the ethernet cable and pulled the power cable and had my two other computers still connected to the network and found that the issue was resolved. The way I found out was that I used the connections on my main computer to hook up one I had laying around and through further testing found the problem no longer existed...
    Then I realized that my buddy and I installed Windows Vista at about the same time, a couple of months ago. Funny how you can forget an important detail like that. Then I remembered that he had the same identical ethernet adapter as I did, I had noticed that while trouble shooting his computer at his home but didn't think it was important at the time. Until the issue was narrowed down to the adapter, then it all seemed to all fall into line.
    Quite humbling... In the end, anyone who has Windows Vista and this NIC probably will have problems with the 20mbs download speed of the computers on their own networks. I tried the latest Vista driver from RealTek and also tried to roll back the driver, with no success....
    Back at the beginning when we first had fios installed in our homes there wasn't an issue when we had the 10/2 speeds and had Vista. Then we decided to change from Vista to XP because we both were having issues as to what programs you could use and which you could not, shortly after having fios installed. Then when verizon upgraded us to 20/5 we were amazed at the speed and still had no issue because we had XP on our main computers with the RealTek adapters...
    We reinstalled Vista because it seemed like we were having more issues with XP by getting hit with Antivirus2008 and its variants and thought it time for a change back...
    It didn't really hit us that Vista could be the culprit because we both have a laptop in our networks that have had Vista on them from the get go when there were no issues... We also didn't notice just how bad it was right away and over time kind of left the Vista install out of the equation.
    Just strange that one computer can effect all the other computers on the network, even when it is shut down...
    I allowed the other two computers to run 24hours and the issue did not present itself, when I added the main computer with the RealTek adapter back to the mix it reappeared. The Realtek adapter is the only real common denominator between his machine and mine.
    So now we have three choices,
    We can go back to Windows XP.
    We can buy a new NIC or a wireless card to replace the RealTek...
    Hopefully this post will help anyone else who runs into this problem, it has been very frustrating to say the least...
    Thanks to everyone for their help and I apologize for complaining about verizon when it was not a verizon issue. I came to the conclusion that the only part verizon really played was upgrading us to a 20/5 tier which I am thankful for...
    Would be nice if this card was on a list that Verizon support could use to troubleshoot , diagnose or eliminate for future support issues.
    Message Edited by keiser0619 on 08-06-2009 03:58 PM

  • Hi,  I'm having a problem with the stabilization all of a sudden. I did an analyze. The amount of shake isn't terrible but it's there. There are no squiggly lines in the clip I'm trying to stabilize. As you can see in the screenshot that it allows me to c

    Hi,
    I'm having a problem with the stabilization all of a sudden. I did an analyze. The amount of shake isn't terrible but it's there. There are no squiggly lines in the clip I'm trying to stabilize. As you can see in the screenshot that it allows me to click the "Smooth clip motion" but the slider is not there for zoom. Any ideas why this is happening all of a sudden? It happens on all clips in this event. The entire event was analyzed after importing.

    What program are you using for this editing?
    We can ask a Host should move your query over to that forum.

  • Problem with EXPORT IMPORT PROCESS in ApEx 3.1

    Hi all:
    I'm having a problem with the EXPORT IMPORT PROCESS in ApEx 3.1
    When I export an application, and try to import it again. I get this error message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 16, column 28: PLS-00103: Encountered the symbol &amp;quot;牃慥整㈰㈯⼴〲㐰〠㨷㐵㈺′䵐&amp;quot; when expecting one of the following: ( - + case mod new not null &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp in
    As a workaround, I check the exported file and found this
    wwv_flow_api.create_flow
    p_documentation_banner=> '牃慥整⠤㈰㈯⼴〲㠰〠㨷㠵㈺′äµ
    And when I replace with this
    p_documentation_banner=> ' ',
    I can import the application without the error.
    somebody knows why I have to do this??
    Thank you all.
    Nicolas.

    Hi,
    This issue seems to have been around for a while:
    Re: Error importing file
    I've had similar issues and made manual changes to the file to get it to install correctly. In my case, I got:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.<br>ORA-02047: cannot join the distributed transaction in progress<br>begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||'''';end;There are several suggestions, if you follow that thread, about character sets or reviewing some of the line breaks within pl/sql code within your processes etc. Not sure what would work for you.

  • Problem with the GridBagLayout Manager

    Hello i am new to Java Swing and i am facing a problem with the GridBagLayout layout manager . the code in question is attached. First compile and run the code. It will execute w/o probs . Then go to the "Console" tab. There the diff components (6 buttons and 1 text area) are haphazardly arranged where as all measures where taken to prevent it in the code. The GridBagLayout manager for this tab is not working properly please help.
    The code in question:-
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class MainForm extends JFrame{
         JTabbedPane jtp = new JTabbedPane();
         Container generalContainer; // container for the general pane
         Container consoleContainer; // container for the console pane
         GridBagLayout consoleLayout = new GridBagLayout(); // GridBagLayout for the console
         GridBagConstraints consoleConstraints;// GridBagConstraints for the console
         public MainForm()
              super("Welcome to Grey Griffin -- Network Simulator");
              setSize(700,600);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel generalPane = new JPanel();
              generalPane.setLayout(new BoxLayout(generalPane, BoxLayout.Y_AXIS));
              JPanel consolePane = new JPanel();
              consolePane.setLayout(new BoxLayout(consolePane, BoxLayout.Y_AXIS));
              JPanel designPane = new JPanel();
              designPane.setLayout(new BoxLayout(designPane, BoxLayout.Y_AXIS));
              JPanel outputPane = new JPanel();
              outputPane.setLayout(new BoxLayout(outputPane, BoxLayout.Y_AXIS));
              //Setting up Layout for all the tabs
               //for general tab
               FlowLayout layout= new FlowLayout();
               generalContainer = generalPane;
               layout.setAlignment(FlowLayout.CENTER);
               generalContainer.setLayout( layout );
               //for  console tab
               consoleContainer = consolePane;
               consoleConstraints = new GridBagConstraints();
               // *******Finished********
              //********** All buttons text areas are declared here**********
                //*******for the general tab**********
              JButton generalCreate = new JButton("Create a New Network");
              JButton generalOpen = new JButton("Open an Existing Network");
              JButton generalSave = new JButton("Save the Network");
              JButton generalSaveAs = new JButton("Save As..........");
              JButton generalExit = new JButton("Exit");
              //******END******
             //*******for the console tab
                 //text area          
              JTextArea consoleCode = new JTextArea();
              consoleCode.setEditable(true);
              consoleCode.setMaximumSize(new Dimension(700,400));
              consoleCode.setAlignmentX(0.0f);
                   //text area complete
                 //*******for the Console tab**********
              JButton consoleCompile = new JButton("Compile Code");
              JButton consoleSimulate = new JButton("Simulate Code");
              JButton consoleReset = new JButton("Reset");
              JButton consoleOpen = new JButton("Open script files");
              JButton consoleSave = new JButton("Save script files");
              JButton consoleConvert = new JButton("Convert Script files to graphical form");
              //***************END****************
         //Adding buttons and text areas to there respective tabs
              // for the general tab
              generalContainer.add(generalCreate);
              generalContainer.add(generalOpen);
              generalContainer.add(generalSave);
              generalContainer.add(generalSaveAs);
             generalContainer.add(generalExit);
             //****END****
              // for the console tab          
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleOpen,0,0,1,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleSave,1,1,1,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleConvert,1,2,1,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleCode,1,0,3,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleCompile,2,0,1,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleSimulate,2,1,1,1);
              consoleConstraints.fill = GridBagConstraints.BOTH;
              addComp(consoleReset,2,2,1,1);
              //****END****
              // adding the tabs
              jtp.addTab("General",null,generalPane,"Choose General Options");
              jtp.addTab("Design",null,designPane,"Design your own network!!");
              jtp.addTab("Console",null,consolePane,"Type commands in console for designing");
              jtp.addTab("Output",null,outputPane,"View output");
              getContentPane().add(jtp, BorderLayout.CENTER);
              //****END****
         //This method is used to ad the buttons in the GridBagLayout of the Console tab
         private void addComp( Component c,int row,int column,int width,int height)
            // set gridx and gridy
            consoleConstraints.gridx=column;
            consoleConstraints.gridy=row;
            //set gridwidth and grid height
            consoleConstraints.gridwidth=width;
            consoleConstraints.gridheight=height;
            //set constraints
            consoleLayout.setConstraints(c,consoleConstraints);
            consoleContainer.add(c);     
         class TabManager implements ItemListener
              Component tab;
              public TabManager(Component tabToManage)
                   tab = tabToManage;
         public void itemStateChanged(ItemEvent ie)
              int index=jtp.indexOfComponent(tab);
             if (index!=-1)
                  jtp.setEnabledAt(index,ie.getStateChange()== ItemEvent.SELECTED);
             MainForm.this.repaint();
    public static void main(String args[])
         MainForm form = new MainForm();
         form.setVisible(true);
    }

    Thanks for the suggestions. I did away with the GridBagLayout Altogether :-D
    and put all the buttons in a seperate JPanel and added that JPanel into the Console tabs container which was using a BorderLayout this time. Take a look
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class MainForm extends JFrame{
         JTabbedPane jtp = new JTabbedPane();
         public MainForm()
              super("Welcome to Grey Griffin -- Network Simulator");
              setSize(800,600);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              JPanel generalPane = new JPanel();
              generalPane.setLayout(new BoxLayout(generalPane, BoxLayout.Y_AXIS));
              JPanel consolePane = new JPanel();
              consolePane.setLayout(new BoxLayout(consolePane, BoxLayout.Y_AXIS));
              JPanel designPane = new JPanel();
              designPane.setLayout(new BoxLayout(designPane, BoxLayout.Y_AXIS));
              JPanel outputPane = new JPanel();
              outputPane.setLayout(new BoxLayout(outputPane, BoxLayout.Y_AXIS));
              //Setting up Layout for all the tabs
              //**for the general tab
               Container generalContainer;
               FlowLayout layoutGeneral= new FlowLayout();
               generalContainer = generalPane;
               layoutGeneral.setAlignment(FlowLayout.CENTER);
               generalContainer.setLayout( layoutGeneral );
               //**for the console tab
                Container consoleContainer;
                consoleContainer = consolePane;
                consoleContainer.setLayout(new BorderLayout() );
               //Creating buttonpanel for adding the buttons
                JPanel buttonPanel1 = new JPanel();
                buttonPanel1.setLayout(new GridLayout(1,3));
                JPanel buttonPanel2 = new JPanel();
                buttonPanel2.setLayout(new GridLayout(1,3));
              // All buttons / text areas / images are declared here
              //**Buttons for the general tab**//
              JButton generalCreate = new JButton("Create a New Network");
              JButton generalOpen = new JButton("Open an Existing Network");
              JButton generalSave = new JButton("Save the Network");
              JButton generalSaveAs = new JButton("Save As..........");
              JButton generalExit = new JButton("Exit");
              //declaring the buttons
              JButton consoleCompile = new JButton("Compile");
              JButton consoleRun = new JButton("Run");
              JButton consoleReset = new JButton("Reset");
              JButton consoleOpen = new JButton("Open script files");
              JButton consoleSave = new JButton("Save script files");
              JButton consoleConvert = new JButton("Convert Script files to graphical form");
              //declares the textarea where the code is written
              JTextArea consoleCode = new JTextArea();
              consoleCode.setEditable(true);
              consoleCode.setMaximumSize(new Dimension(500,600));
              consoleCode.setAlignmentX(0.0f);
              //Adding buttons and text areas to there respective tabs     
              //**Buttons and text pads for the general tab**
                   generalContainer.add(generalCreate);
              generalContainer.add(generalOpen);
              generalContainer.add(generalSave);
              generalContainer.add(generalSaveAs);
                 generalContainer.add(generalExit);
              //adding buttons to the button panel 1
              buttonPanel1.add(consoleOpen);
              buttonPanel1.add(consoleSave);
              buttonPanel1.add(consoleConvert);
              //adding buttons to the button panel2          
              buttonPanel2.add(consoleRun);
              buttonPanel2.add(consoleReset);
              buttonPanel2.add(consoleCompile);
              //adding button panels and textarea
              consoleContainer.add(buttonPanel1,BorderLayout.NORTH);
              consoleContainer.add(consoleCode,BorderLayout.CENTER);
              consoleContainer.add(new JScrollPane(consoleCode));
              consoleContainer.add(buttonPanel2,BorderLayout.SOUTH);
              //adding the tabs          
              jtp.addTab("General",null,generalPane,"Choose General Options");
              jtp.addTab("Design",null,designPane,"Design your own network!!");
              jtp.addTab("Console",null,consolePane,"Type commands in console for designing");
              jtp.addTab("Output",null,outputPane,"View output");
              getContentPane().add(jtp, BorderLayout.CENTER);
         class TabManager implements ItemListener
              Component tab;
              public TabManager(Component tabToManage)
                   tab = tabToManage;
         public void itemStateChanged(ItemEvent ie)
              int index=jtp.indexOfComponent(tab);
             if (index!=-1)
                  jtp.setEnabledAt(index,ie.getStateChange()== ItemEvent.SELECTED);
             MainForm.this.repaint();
    public static void main(String args[])
         MainForm form = new MainForm();
         form.setVisible(true);
    }

Maybe you are looking for

  • Function module/BAPI for executing VD51/VD52 transactions

    Hi Warm greetings to all, I require a function module/BAPI for executing VD51/VD52 transactions. Can anyone help on this Sreekanth

  • Report painter:- How to add new characteristics.

    We are creating the new report through report painter by copy from report : 1aip-001 , We require additional Characteristics i.e. not available in the available characteristics, So how we can add the require new characteristics. Please suggest Regard

  • How to make a custom transaction..?

    Hello gurus, I have been given the task to make a custom transaction ZVA02.One the first screen there will be a field Order Number and then once we enter the order number it searches and find out whether that order exists or not...if it does then mak

  • Countdown timer in FCE

    Hello there. I wonder if someone can help me. Is there a way in FCE that I can create a countdown timer (say from 5 minutes). I would like this over a still image or over a video clip? If not FCE is there any software that I may be able to use. Your

  • Why can't i gift books in the iBookstore

    i used to be able to gift books, seems like that feature has dissapeared recently, anyone know why.