HTTP STatus 400: WebiView was requested

Hi All
I install BOE to my ZCM 11 Primary server(SLES11), and it install successfully.
I click reporting service from ZCC, and generate anyone report,it's fail.
The web shaow "HTTP Status 400 - Invalid path /AnalyticalReporting/WebiView was requested"
Type: Status report
Message: Invalid path /AnalyticalReporting/WebiView was requested
Description: The request sent by the client was syntactically incorrect (Invalid path /AnalyticalReporting/WebiView was requested).
Do I have patch for fix it ?
wyld

Originally Posted by wyld
Hi All
I install BOE to my ZCM 11 Primary server(SLES11), and it install successfully.
I click reporting service from ZCC, and generate anyone report,it's fail.
The web shaow "HTTP Status 400 - Invalid path /AnalyticalReporting/WebiView was requested"
Type: Status report
Message: Invalid path /AnalyticalReporting/WebiView was requested
Description: The request sent by the client was syntactically incorrect (Invalid path /AnalyticalReporting/WebiView was requested).
Do I have patch for fix it ?
wyld
What browser and version are you using?
Thomas

Similar Messages

  • HTTP Status 400 - Invalid path /AnalyticalReporting/WebiCreate was requeste

    Hi,
    I have a  BusinessObject Enterprise XI 3.1 installed on a Linux server.
    When I try to create a New Web Intelligence Document, I get the following error.
    HTTP Status 400 - Invalid path /AnalyticalReporting/WebiCreate was requeste
    Do I need to install another module to activate this feature?
    Thanks
    /Yannick

    Hello Yannick
    Have a look at the following SAP note 1431655
    https://bosap-support.wdf.sap.corp/sap/support/notes/1431655
    Basically, you have to use the wdeploy command.
    Another information: When you install a Service Pack or a Fix Pack, the war files need to be redeployed.
    The installation program asks you if you want to do it manually or automatically.
    Regards,
    Philippe

  • "The request failed with HTTP Status 400: Bad Request." when running reports

    Hi,
    I installed reporting services and the install went fine.  The Reporting Services are located on a different server.  I can see all the reports in SCCM but when I try to run them I get the "400" error with the following details:
    System.Net.WebException
    The request failed with HTTP status 400: Bad Request.
    Stack Trace:
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.ReportExecutionService.LoadReport2(String Report, String HistoryID)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.<>c__DisplayClass2.<LoadReport>b__0()
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
       at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
       at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
       at Microsoft.Reporting.WinForms.ServerReport.SetParameters(IEnumerable`1 parameters)
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerWindowsForms.SetParameterValues_DoWork(Object sender, DoWorkEventArgs e)
    I can open the URL from the SCCM server but when I select a report I am unable to select any report options if available.  If no options are availble the report just doesn't run,  I don't get and error if I select "View Report" mutiple
    times.
    If I connect to the Reporting Services site on the computer where it is installed all the reports run fine.
    One thing I have noticed is that when I try to change or add a role assignment for Reporting Services the edited account always reverts back to the default settings and the added Domain user is dropped.
    Thanks

    I reviewed the topic and found a couple of steps I missed the first time around.  I had to "Configure Reports to Use Report Builder 3.0 and setting the "Log on Locally" permission. 
    I then uninstalled the role and reinstalled it.  I am still getting the 400 error.
    When I inspected the SmsAdminUI.log I noticed the Error on the last line 2151811598 (it repeats in the log).  I couldn't find anything specific related to it.  By reading a few "related" Internet posts I came accross a intial setup
    blog that noted some WMI firewall execptions (Async-in, DCOM-in and WMI-in) as require so I checked and they were not allowed on the SCCM server so I allowed them and tested with the same result.  I turned them off again. 
    Here is the tail end of the SmsAdminUI.log
    [19, PID:2684][01/24/2013 16:08:29] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [4, PID:2684][01/24/2013 16:08:30] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [15, PID:2684][01/24/2013 16:08:30] :[ReportProxy] - User-specified default Reporting Point [INC-SQL42.deccoinc.net] could not be found, [] is now the default Reporting Point.
    [1, PID:2684][01/24/2013 19:06:02] :System.Management.ManagementException\r\nNot found \r\n   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.Initialize(Boolean getObject)
       at System.Management.ManagementBaseObject.get_wbemObject()
       at System.Management.PropertyData.RefreshPropertyInfo()
       at System.Management.PropertyDataCollection.get_Item(String propertyName)
       at System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
       at System.Management.ManagementBaseObject.get_Item(String propertyName)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.GetInstance(String objectPath)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Error retrieving object FileType=2";
     ErrorCode = 2151811598;
     File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\SspInterface.h";
     Line = 1208;
     Operation = "GetObject";
     ParameterInfo = "SMS_SCI_SysResUse.FileType=2,ItemName=\"[\\\"Display=\\\\\\\\INC-SQL42.deccoinc.net\\\\\\\"]MSWNET:[\\\"SMS_SITE=INC\\\"]\\\\\\\\INC-SQL42.deccoinc.net\\\\,SMS SRS Reporting Point\",ItemType=\"System Resource Usage\",SiteCode=\"INC\"";
     ProviderName = "ExtnProv";
     StatusCode = 2147749890;
    \r\n
    [1, PID:2684][01/24/2013 23:39:14] :System.NullReferenceException\r\nObject reference not set to an instance of an object.\r\n   at Microsoft.ConfigurationManagement.AdminConsole.SmsCustomDialog.get_LocaleIndependentIdentifier()
       at Microsoft.ConfigurationManagement.AdminConsole.ShowDialogTaskHandler.DoTask(NavigationModelNodeBase node, SccmTaskConfiguration sccmTask, PropertyDataUpdated dataUpdatedDelegate, Boolean readOnly)\r\n
    [1, PID:5008][01/25/2013 20:48:00] :System.Management.ManagementException\r\nNot found \r\n   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
       at System.Management.ManagementObject.Initialize(Boolean getObject)
       at System.Management.ManagementBaseObject.get_wbemObject()
       at System.Management.PropertyData.RefreshPropertyInfo()
       at System.Management.PropertyDataCollection.get_Item(String propertyName)
       at System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
       at System.Management.ManagementBaseObject.get_Item(String propertyName)
       at Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.GetInstance(String objectPath)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Error retrieving object FileType=2";
     ErrorCode = 2151811598;
     File = "e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\SspInterface.h";
     Line = 1208;
     Operation = "GetObject";
     ParameterInfo = "SMS_SCI_SysResUse.FileType=2,ItemName=\"[\\\"Display=\\\\\\\\INC-SQL42.deccoinc.net\\\\\\\"]MSWNET:[\\\"SMS_SITE=INC\\\"]\\\\\\\\INC-SQL42.deccoinc.net\\\\,SMS SRS Reporting Point\",ItemType=\"System Resource Usage\",SiteCode=\"INC\"";
     ProviderName = "ExtnProv";
     StatusCode = 2147749890;
    \r\n

  • BPC NW 7.5 - Request failed with HTTP status 400:  Bad Request

    Dear Experts,
    I am trying to upload a flat file to BPC server. I am getting the following error.
    " Request to transfer a file to the server failed (ERROR): The request failed with HTTP status 400: Bad Request"
    Could any of you please help?
    I am selecting BPC for excel >manage data > upload data file > selection for source file > selection of destination file > ok
    Thanks in advance
    Vipin Jain

    Hi Vipin,
    Glad to know that you have heard good about me.
    Can you try to upload the same file from some other system. If it doesnt work from any system, there might be some problem with the flat file. In that case, you can try to create a small and simple file and try to upload that.
    You might also get this error if there is a blank line at the end of the file.
    Hope this helps.

  • Business Objects XI 3.1 SP4 Infoview and IE9 HTTP Status 400 - Invalid path

    Hi There,
    When I working in Infoview with IE9 32Bit or 64Bit and I right click on any object i.e Crystal Report, Folder, Webi Report etc. and select properties I get the following Error
    HTTP Status 400 - Invalid path /PlatformServices/properties was requested
    Has any one got a workaround or a solution for this problem.
    Server - BOE XI 3.1 with SP4 running on a Windows Server 2008 R2 64 bit.
    Client PC`s\Laptops  - Windows 7 64 bit
    Kind Regards,
    Frikkie

    Dear all,
    Seems the issue is browser compatibility ans the below solution may work in your case
    HTTP 400 occurs because of URL difference between IE9 and older versions of supported IE. To resolve this issue, this error in Tomcat will be redirected to a HTML script that applies new URL format. Please follow this 3 steps process:
    STEP ONE: Solution in InfoViewAppActions Folder:
    1) Go to “D:\Business Objects\Tomcat55\webapps\InfoViewAppActions” folder. This folder already has httperror_404.htm and httperror_500.jsp by default.  Rename httperror_404.htm to httperror_404_backup.htm.
    2) Copy and paste the attached file from InfoViewAppActions folder (httperror_400.htm and httperror_404.htm) into “D:\Business Objects\Tomcat55\webapps\InfoViewAppActions” folder. Go to “D:\Business Objects\Tomcat55\webapps\InfoViewAppActions\WEB-INF”
    3) Take a backup of web.xml file and name it as web_backup.xml
    4) Open the file and paste the following script after the Error 404 error handling and save.
    Before:
    <error-page>
            <error-code>404</error-code>
    <location>/httperror_404.htm</location>
        </error-page>
    After:
    <error-page>
    <error-code>404</error-code>
    <location>/httperror_404.htm</location>
        </error-page>
        <error-page>
    <error-code>400</error-code>
    <location>/httperror_400.htm</location>
        </error-page>
    STEP TWO: Solution in AnalyticalReporting Folder:
    1) Go to “D:\Business Objects\Tomcat55\webapps\ AnalyticalReporting” folder. This folder already has httperror_404.htm and httperror_500.jsp by default.  Rename httperror_404.htm to httperror_404_backup.htm.
    2) Copy and paste the attached file from AnalyticalReporting folder (httperror_400.htm and httperror_404.htm) into “D:\Business Objects\Tomcat55\webapps\ AnalyticalReporting” folder. Go to “D:\Business Objects\Tomcat55\webapps\ AnalyticalReporting \WEB-INF”
    3) Take a backup of web.xml file and name it as web_backup.xml
    4) Open the file and paste the following script after the Error 404 error handling and save.
    Before:
    <error-page>
    <error-code>404</error-code>
    <location>/httperror_404.htm</location>
        </error-page>
    After:
    <error-page>
    <error-code>404</error-code>
    <location>/httperror_404.htm</location>
        </error-page>
        <error-page>
    <error-code>400</error-code>
    <location>/httperror_400.htm</location>
        </error-page>

  • Http Status 400

    Hi.
    First of all, If this is in the wrong part of the forum.
    A user is running windows 7, Since her PC was upgraded from XP she is unable to run any infoview reports. They reports are created in crystal reports. Other users are able to run the same report, She is the only person who has been upgraded to windows 7.
    She receives an error when running the report as below;
    https status 400 - invalid path \ crystalreports\view was requested
    Type : Status Report
    Message : invalid path\crystalreports\view was requested
    Description : The request sent by the client was syntactically incorrect (invalid path \ crystalreports\view was requested
    Does anyone have any idea how to resolve this error ?
    Thank you
    Leigh

    Hello and thanks for the reply and sorry for the delay responding.
    Installing chrome has worked for the users that this affects. Does anyone know what the problem with IE 9 is ? Our IT dept are rolling out IE 9 as part of the windows 7 upgrade. We have approx 60-70 business objects users and we can't install chrome as a seperate browser to use with buiness objects on each PC.
    Thanks
    Leigh

  • GetItemsRequest failed with HTTP status 400

    At one of our customers we've got a strange error.
    The Login/Logout request works fine, but the getItemsRequest fails with status 400.
    Here is the soap request:
    ------- SoapRequest at 13:29:22 -------
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><session xmlns="http://schemas.novell.com/2005/01/GroupWise/types">BbOOBFebTkAxSffn</session></soap:Header><soap:Body><getItemsRequest xmlns="http://schemas.novell.com/2005/01/GroupWise/methods"><view>default id container @type message subject startDate endDate attachments recipients status</view><filter><element xsi:type="FilterGroup" xmlns="http://schemas.novell.com/2005/01/GroupWise/types"><op>and</op><element xsi:type="FilterEntry"><op>contains</op><field>subject</field><value>*</value></element></element></filter><items><item xmlns="http://schemas.novell.com/2005/01/GroupWise/types">4ECE5BEE.GWDOMNM.GWPOSTNM.100.1333466.1.16E BA.1</item></items><count>-1</count></getItemsRequest></soap:Body></soap:Envelope>
    POA is 8.0.2, any suggestions?

    There is not enough information.
    You could check the POA log file.
    You can turn on logging the soap requests in the POA log file
    to see if that shows the error around the time on the soap
    request.
    If you get an 8.0.x build after 98083, we put the engine
    error in an HTTP header line:
    X-GWError-Code: xxxx
    Preston
    >>> On Wednesday, January 04, 2012 at 6:26 AM,
    hkunze<[email protected]> wrote:
    > At one of our customers we've got a strange error.
    > The Login/Logout request works fine, but the getItemsRequest fails with
    > status 400.
    >
    > Here is the soap request:
    >
    > ‑‑‑‑‑‑‑ SoapRequest at 13:29:22 ‑‑‑‑‑‑‑
    >
    > <?xml version="1.0" encoding="utf‑8"?>
    > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    > xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
    > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><session
    > xmlns="http://schemas.novell.com/2005/01/GroupWise/types">BbOOBFebTkAxSff
    > n</session></soap:Header><soap:Body><getItemsRequest
    > xmlns="http://schemas.novell.com/2005/01/GroupWise/methods"><view>default
    > id container @type message subject startDate endDate attachments
    > recipients status</view><filter><element xsi:type="FilterGroup"
    >
    xmlns="http://schemas.novell.com/2005/01/GroupWise/types"><op>and</op><eleme
    nt
    >
    xsi:type="FilterEntry"><op>contains</op><field>subject</field><value>*</valu
    e></elemen
    > t></element></filter><items><item
    > xmlns="http://schemas.novell.com/2005/01/GroupWise/types">4ECE5BEE.GWDOMN
    >
    M.GWPOSTNM.100.1333466.1.16EBA.1</item></items><count>‑1</count></getItems
    Request></s
    > oap:Body></soap:Envelope>
    >
    > POA is 8.0.2, any suggestions?

  • HTTP Status 401. This request requires HTTP  authentication ()

    Hi!
    Could you please help me with the following problem: i go to Infoview login page using the link: http://mostro-bo-web:8082/InfoViewApp/logon.jsp. When i use the IE there is no problem, i go to login page, but when i use Mozilla browser i have the following error:
    HTTP Status 401 - type Status report
    description This request requires HTTP authentication ().
    Apache Tomcat/5.5.20
    We use SSO for Infoview for domen users, but when i go to login page (http://mostro-bo-web:8082/InfoViewApp/logon.jsp) i'm not in domain (my computer isn't in domain) and when i use IE i go to login page of InfoView, but when i use Firefox i have error above.
    What's the problem?
    Thanks, Viktor

    Hi,
    try the following URL:
    http://YOUR_BO_SERVER:8080/InfoViewApp/logonNoSso.jsp
    Check also SAP Note 1326266 and 1263764
    Regards
    -Seb.

  • Http status 400 error in the emulator

    I successfully have run the servlet (ImageAdapter.java). The servlet is suposed to convert GIF images into PNG images according to the clients display settings by using Sun's Jimi packages. It displays both gif and png type images in IE. Now, I am trying to run the midlet (ImageClient.java) in the J2ME toolkit 2.2. It displays the gif image in the emulator. But, when I try to display a png image it gives me a http 400 error. Why is this ? Can anyone help ?
    servlet code: ImageAdapter.java
    import com.sun.jimi.core.*;
    import com.sun.jimi.core.util.*;
    //import com.sun.jimi.util.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * A simple example of a servlet that reads the image from
    * a given URL and uses Jimi to convert it to PNG format,
    * scaling it and recoloring it appropriately for the device.
    * Can be called using either GET or POST.  If GET, then the
    * request parameters are used to determine the URL of the
    * image to fetch and the scaling and color attributes.
    * If POST, the data is sent as UTF-encoded string pairs in the
    * request body.
    public class ImageAdapter extends HttpServlet {
        // The PNG MIME type
        static final String PNG_MIME = "image/png";
        // Convenience method
        static boolean getBooleanProperty( Properties p,
                                           String key,
                                           boolean def ){
            String  sval = p.getProperty( key );
            boolean bval = def;
            if( sval != null ){
                bval = ( sval.equalsIgnoreCase( "true" ) ||
                         sval.equals( "1" ) );
            return bval;
        // Convenience method
        static int getIntegerProperty( Properties p,
                                       String key,
                                       int def ){
            String sval = p.getProperty( key );
            int    ival = def;
            if( sval != null ){
                try {
                    ival = Integer.parseInt( sval );
                catch( NumberFormatException e ){
            return ival;
        // Process GET requests.  Sets up some defaults and then
        // overrides them with the request parameters.
        public void doGet( HttpServletRequest request,
                            HttpServletResponse response )
                throws IOException, ServletException {
            // Put in some defaults for testing with a browser
            Properties props = new Properties();
            props.put( "url",
                 "http://localhost:8080/img/Availability.png" );
            props.put( "colors", "256" );
            props.put( "minwidth", "200" );
            props.put( "maxwidth", "200" );
            props.put( "minheight", "200" );
            props.put( "maxheight", "200" );
            // Overwrite the default with any request parameters...
            Enumeration names = request.getParameterNames();
            while( names.hasMoreElements() ){
                String key = (String) names.nextElement();
                props.put( key, request.getParameter( key ) );
            // Now send back the image...
            adaptImage( props, response );
        // Process POST request.  Parameters are extracted from
        // the request body.
        public void doPost( HttpServletRequest request,
                            HttpServletResponse response )
                throws IOException, ServletException {
            // Get the input stream and read the data...
            ServletInputStream in = request.getInputStream();
            DataInputStream    din = new DataInputStream( in );
            Properties         props = new Properties();
            // Read in properties as sent by client.
            while( true ){
                try {
                    String key = din.readUTF();
                    if( key.length() == 0 ) break;
                    props.put( key, din.readUTF() );
                catch( IOException e ){
                    break;
            din.close();
            adaptImage( props, response );
        // Use Jimi to grab the original image and
        // then scale it and reduce its colors
        // based on the requested settings.
        private void adaptImage( Properties props,
                                 HttpServletResponse response )
                    throws IOException, ServletException {
            // Read in the parameters, with appropriate
            // defaults.
            String imageURL = props.getProperty( "url" );
            if( imageURL == null ){
                response.sendError( response.SC_BAD_REQUEST,
                                   "No 'url' specified" );
                return;
            int minWidth = getIntegerProperty( props,
                                               "minwidth",
                                               0 );
            int maxWidth = getIntegerProperty( props,
                                               "maxwidth",
                                               96 );
            int minHeight = getIntegerProperty( props,
                                                "minheight",
                                                0 );
            int maxHeight = getIntegerProperty( props,
                                                "maxheight",
                                                0 );
            int colors = getIntegerProperty( props,
                                             "colors", 2 );
            boolean dither = getBooleanProperty( props,
                                                 "dither",
                                                 true );
            boolean reduce = getBooleanProperty( props,
                                                 "reduce",
                                                 false );
            // Now read in the image using Jimi...
            URL url;
            try {
                url = new URL( imageURL );
            catch( MalformedURLException e ){
                response.sendError( response.SC_BAD_REQUEST,
                                    "Invalid image URL" );
                return;
            Image img = Jimi.getImage( url, Jimi.SYNCHRONOUS |
                                            Jimi.IN_MEMORY );
            if( img == null ){
                response.sendError( response.SC_BAD_REQUEST,
                                    "Bad image format" );
                return;
            // Now adjust the image, first by
            // scaling it if necessary....
            int     width = img.getWidth( null );
            int     height = img.getHeight( null );
            boolean scale = false;
            if( width < minWidth ){
                width = minWidth;
                scale = true;
            } else if( width > maxWidth){
                width = maxWidth;
                scale = true;
            if( height < minHeight ){
                height = minHeight;
                scale = true;
            } else if( height > maxHeight ){
                height = maxHeight;
                scale = true;
            if( scale ){
                img = img.getScaledInstance( width, height,
                           Image.SCALE_SMOOTH );
                GraphicsUtils.waitForImage( img );
            // Now adjust the color depth...
            if( reduce ){
                ColorReducer reducer = new ColorReducer( colors,
                                                         dither );
                try {
                    img = reducer.getColorReducedImage( img );
                catch( Exception e ){
                    response.sendError( response.SC_BAD_REQUEST,
                                        "Error reducing image" );
                    return;
                GraphicsUtils.waitForImage( img );
            // Convert it to PNG format
            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            try {
                Jimi.putImage( PNG_MIME, img, bout );
            catch( Exception e ){
                response.sendError( response.SC_BAD_REQUEST,
                                    "Error converting image" );
                return;
            byte[] data = bout.toByteArray();
            // Send it out!
            response.setContentType( PNG_MIME );
            response.setContentLength( data.length );
            response.setStatus( response.SC_OK );
            OutputStream out = response.getOutputStream();
            out.write( data );
            out.close();
    }MIDlet code: ImageClient.java
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * A MIDP application that fetches and displays an arbitrary
    * image from the Web using the ImageAdapter servlet.
    * This class depends on HttpConnectionHelper, described
    * in an earlier J2ME Tech Tip.
    public class ImageClient extends MIDlet
                             implements CommandListener {
        // Adjust this URL appropriately for the adapter...
        private static String adapterURL =
         "http://localhost:8080/img/image";
        // A default image to display...
        private static String defaultURL =
         "http://localhost:8080/img/Availability.png";
    //http://www.w3schools.com/images/ie.gif
        private Display display;
        private Command exitCommand = new Command( "Exit",
                                                   Command.EXIT, 1 );
        private Command okCommand   = new Command( "OK", Command.OK, 1 );
        private Command sendCommand = new Command( "Get",
                                                   Command.OK, 1 );
        private TextBox entryForm;
        private int     screenHeight;
        private int     screenWidth;
        private int     numColors;
        public ImageClient(){
        protected void destroyApp( boolean unconditional )
                           throws MIDletStateChangeException {
            exitMIDlet();
        protected void pauseApp(){
        protected void startApp()
                          throws MIDletStateChangeException {
            if( display == null ){ // first time called...
                initMIDlet();
        // First we display the dummy canvas so we can
        // get information about the display
        private void initMIDlet(){
            display = Display.getDisplay( this );
            entryForm = new EntryForm();
            display.setCurrent( new DummyCanvas() );
        public void exitMIDlet(){
            notifyDestroyed();
        public void commandAction( Command c, Displayable d ){
            if( c == sendCommand ){
                StatusForm f =
                    new StatusForm( entryForm.getString() );
                display.setCurrent( f );
                f.start();
            } else if( c == okCommand ){
                display.setCurrent( entryForm );
            } else {
                exitMIDlet();
        // A dummy canvas to get the size of the screen
        class DummyCanvas extends Canvas {
            protected void paint( Graphics g ){
                screenHeight = getHeight();
                screenWidth  = getWidth();
                numColors    = display.numColors();
                // Go directly to the main screen
                display.setCurrent( entryForm );
        // The text entry form...
        class EntryForm extends TextBox {
            EntryForm(){
                super( "Enter a URL", defaultURL, 80, 0 );
                addCommand( exitCommand );
                addCommand( sendCommand );
                setCommandListener( ImageClient.this );
        // Show the image...
        class ShowImage extends Canvas {
            ShowImage( byte[] imageData ){
                image = Image.createImage( imageData, 0,
                                           imageData.length );
                display.setCurrent( this );
                addCommand( okCommand );
                setCommandListener( ImageClient.this );
            protected void paint( Graphics g ){
                g.drawImage( image, 0, 0,
                             g.TOP | g.LEFT );
            private Image image;
        // A status for for displaying messages as the data is sent...
        class StatusForm extends Form
                     implements Runnable,
                                HttpConnectionHelper.Callback {
            StatusForm( String url ){
                super( "Status" );
                try {
                    ByteArrayOutputStream bout =
                                new ByteArrayOutputStream();
                    DataOutputStream      dout =
                                new DataOutputStream( bout );
                    // Write info about the image and the
                    // display settings for this device
                    dout.writeUTF( "url" );
                    dout.writeUTF( url );
                    writeInt( dout, "minwidth", screenWidth );
                    writeInt( dout, "maxwidth", screenWidth );
                    writeInt( dout, "minheight", screenHeight );
                    writeInt( dout, "maxheight", screenHeight );
                    writeInt( dout, "colors", numColors );
                    writeInt( dout, "reduce", 1 );
                    writeInt( dout, "dither", 1 );
                    dout.writeUTF( "" );
                    data = bout.toByteArray();
                    dout.close();
                catch( IOException e ){
                    // should handle this....
            void writeInt( DataOutputStream dout, String key,
                           int value ) throws IOException {
                dout.writeUTF( key );
                dout.writeUTF( Integer.toString( value ) );
            // Updates the display.
            void display( String text ){
                if( message == null ){
                    message = new StringItem( null, text );
                    append( message );
                } else {
                    message.setText( text );
            // We're done.
            void done( String msg ){
                display( msg != null ? msg : "Done." );
                addCommand( okCommand );
                setCommandListener( ImageClient.this );
            // Callback for making the HTTP connection.
            public void prepareRequest( String originalURL,
                           HttpConnection conn ) throws IOException
                conn.setRequestMethod( HttpConnection.POST );
                conn.setRequestProperty( "User-Agent",
                  "Profile/MIDP-2.0 Configuration/CLDC-1.1" );
                conn.setRequestProperty( "Content-Language",
                  "en-US" );
                conn.setRequestProperty( "Accept", "image/png" );
                conn.setRequestProperty( "Connection", "close" );
                conn.setRequestProperty( "Content-Length",
                  Integer.toString( data.length ) );
                OutputStream os = conn.openOutputStream();
                os.write( data );
                os.close();
            // Do the connection on a separate thread to keep the UI
            // responsive...
            public void run(){
                HttpConnection conn = null;
                display( "Obtaining HttpConnection object..." );
                try {
                    conn =
                      HttpConnectionHelper.connect( adapterURL,
                                                    this );
                    display( "Connecting to the server..." );
                    int rc = conn.getResponseCode();
                    if( rc == HttpConnection.HTTP_OK ){
                        try {
                            DataInputStream din = new DataInputStream(
                                                conn.openInputStream() );
                            data = new byte[ (int) conn.getLength() ];
                            din.readFully( data );
                            din.close();
                        catch( IOException e ){
                        done( "Image received" );
                        new ShowImage( data );
                    } else {
                        done( "Unexpected return code: " + rc );
                    conn.close();
                catch( IOException e ){
                    done( "Exception " + e +
                          " trying to connect." );
            // Starts the upload in the background...
            void start(){
                display( "Starting..." );
                Thread t = new Thread( this );
                try {
                    t.start();
                catch( Exception e ){
                    done( "Exception " + e +
                          " trying to start thread." );
            private StringItem message;
            private byte[]     data;
    }Regards,
    Ship.

    I have the same problem and I don`t found info about this. How do you solved this problem.

  • HTTP Status 400 error

    Every time I try to send an email with an attachment I get the above error message. Also with the message I get "The request sent by the client was syntactically incorrect (The parameter "nimlet" was not found in the HTTP request to the HttpNimletDriver").
    What the heck does this all mean, please help.
    Thanks
    David

    I have the same problem and I don`t found info about this. How do you solved this problem.

  • HTTP Status 404  error -- The requested resource  is not available.

    Hi ,
    i am trying to run a sample struts2 program using java1.5 , tomcat5.5 but getting the error ...
    * The requested resource (/Struts2Sample/) is not available.*
    i am listing my files below.. kindly help...
    web.xml -----------------
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Struts2Sample</display-name>
    <filter>
    <filter-name>struts</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
         <servlet-name>home</servlet-name>
         <jsp-file>HelloWorld.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>home</servlet-name>
         <url-pattern>/home</url-pattern>
    </servlet-mapping>
    </web-app>
    struts.xml ---------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
    <package name="example" extends="struts-default" namespace="/">
    <action name="HelloWorld" class="example.HelloWorld">
    <result>/HelloWorld.jsp</result>
    </action>
    </package>
    </struts>
    HelloWorld.jsp ----------------------
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <html>
    <head>
    <title>Struts 2 Hello World Application!</title>
    </head>
    <body>
    <h2><s:property value="message" /></h2>
    <p>Current date and time is: <b><s:property value="currentTime" /></b>
    </body>
    </html>
    ExampleSupport.java ---------------------------
    package example;
    import com.opensymphony.xwork2.ActionSupport;
    * Base Action class for the Tutorial package.
    public class ExampleSupport extends ActionSupport {
    HelloWorld.java --------------------
    package example;
    public class HelloWorld extends ExampleSupport {
    public String execute() throws Exception {
    setMessage(getText(MESSAGE));
    return SUCCESS;
    * Provide default valuie for Message property.
    public static final String MESSAGE = "HelloWorld.message";
    * Field for Message property.
    private String message;
    * Return Message property.
    * @return Message property
    public String getMessage() {
    return message;
    * Set Message property.
    * @param message Text to display on HelloWorld page.
    public void setMessage(String message) {
    this.message = message;
    My directory structure ....
    D:\tomcat5.5\webapps\Struts2Sample ---- this has my jsp file.
    D:\tomcat5.5\webapps\Struts2Sample\src\example ---- this has both java source files..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes\example ---- this has compiled class files
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes ---- this has my struts.xml file
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\lib ---- this has all my jars..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF --- this has my web.xml file
    kindly let me know i am making mistakes if any...
    i am using url as : http://localhost:8080/Struts2Sample/
    Thanks,
    Nads

    Hi ,
    when iam trying to deploy struts 2 application iam getting 404 error. in tomcat 5.5.23
    if u got the solution pls help me
    regards
    srini

  • I get "HTTP Error 400. The request is badly formed." when trying to access a URL that I have accessed previously in the day and works OK with IE.

    Hi
    I accessed the site earlier in the day but when I came back to it I got the above message. Tried to access the site in IE and all worked fine. Tried disabling DNS prefetch and clearing out history but to no avail. I ran a virus scan but with no threat detected.

    That issue can be caused by corrupted cookies.
    *http://kb.mozillazine.org/Cookies
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • HTTP Status 404 - / description The requested resource (/) is not available

    hi all,
    i am new to java and i have installed "eclipse-jee-helios-SR2-win32" on my system.
    I have installed Tomcat ,and i have done with all the primary settings and i have added the server.
    when i start tomcat from eclipse it starts sucessfully but the home page of Tomcat is not appearing.
    when i start tomcat manually(not from eclipse), it start and i get the home page too,
    but at the same time i try to start it from eclipse i get below error.
    Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use.*
    The server may already be running in another process, or a system process may be using the port.*
    To start this server you will need to stop the other process or change the port number(s).*
    please let me know how to come out of this problem.
    let me know if you need more information to work on this issue.
    thanks.

    varun4dba wrote:
    i get the home page when i start tomcat from outside which cant find my project, i need to start it from eclipse and then the home page should come.
    please let me know if you can help me.Well, you should create a .war of your project and deploy it on tomcat. Now you're relying too much on Eclipse's functionality, being completely helpless when Eclipse suddenly fails to start tomcat for you.

  • "HTTP Status 400 - exception looking up trusted root"

    I see people have been having this problem for years, right back from version 2, on different websites, doesn't anyone know how to fix it?
    When I try to login on the syfy forums, I get that error message - when I use Firefox, not if i use other browsers, say Chrome...

    I have the same problem and I don`t found info about this. How do you solved this problem.

  • I get the error: HTTP Error 400. The request is badly formed.

    I am running Windows XP Professional. This seems to happen on most websites with the exception of search engines and Firefox Support sites.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    <br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />

Maybe you are looking for

  • Solved: Problem downloading 4.1 update for Mac in Safari 5.1.7: Try Firefox.

    The download worked in Firefox (don't know which version, since the auto update just jumped to version 13.0), having the correct file size.  But it did not have the correct download size in Safari 5.1.7.  The file also appears for download on the Ado

  • How do i get apps and music back !!!

    im sure some body has an answer for this and its been done many times by alot of people lol.. how do i get my music and apps back i recently did a complete new in stall on my computer and to top it of soon as i plugged in my itouch i deleted it like

  • BPM - Background Job for Reorganization = Not Scheduled

    Good afternoon, first of all thank you very much for the support they can provide. I have developed a JDBC interface -> BPM (Multimapping) which works well. Modify a Message Mapping in the BPM that I use for an RFC Lookup, I have added the Configurab

  • Image capture from itunes movie/ tv show purchases and rentals ?

    I'd like to get screen grabs (preferably high quality images) from itunes movies for personal use. Is there any way to do this with Lion ? I have tried Snapz Pro already and just get the chequered grey and white image. My macbook pro does not have a

  • FA-101 difficulties

    My new Edirol FA-101 is exhibiting some strange behaviour. In device listings (eg sound prefs) it shows as 'EDIROL FA-101 (0755)', and in some applications it doesn't get listed at all. in AM setup in has several channels recognised but inactive/grey