POSTing .JPG from Applet

Hi,
Im trying to post a jpg from java to a php. My question is what would be the best type of stream to do this and also how do I convert my jpg (currently a BufferedImage type) to a format that can be writen to this stream?
Thanks for any pointers, Im struggling to do any more than post a string.
Tomm

ok - thanks very much for your help. Ive kinda got my brain in a twist over the order that buffered streams need to be chained together...
does the stream need to be initialised with the buffer or vice-versa? Im thinking along these lines:
BufferedImage image = ImageIO.read(new File("IMAGE TO PUT"));     
JPGimage = convert_to_jpg(image);   //assuming ive written this :P
String address ="WHERE THE PHP SCRIPT IS";
     //open connection to address
URL dataURL = new URL(address);
URLConnection connection = dataURL.openConnection();
     //set request to a POST of multipart data (eg image)
((HttpURLConnection)connection).setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "multipart/form-data");
     // no caching
connection.setUseCaches(false);
     // allow output
connection.setDoOutput(true);
     // instatiate buffered stream
ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
     // put picture in buffer
bytearrayoutputstream.write(image);
     // set content-length to size of whats in buffer
String length_of_data = String.valueOf(bytearrayoutputstream.size());
connection.setRequestProperty ("Content-Length", length_of_data);
     //close stream to buffer
bytearrayoutputstream.close();
     //open stream to address via connection
OutputStream outputstream = connection.getOutputStream();
     // write content of buffer to outputstream
outputstream.write(bytearrayoutputstream.toByteArray());
outputstream.flush();
outputstream.close();ive found lost of examples of buffered streams but they all seam to chain things differently so its hard to get a grasp on what the common elements are.
Thanks again
Tomm

Similar Messages

  • Posting html from applet

    Hello,
    I am developing an application which helps users to enter metadata of their resources offline. the user is supposed to download my application first and does not require to be online later. the html page intiates an applet where in the author has to enter the data. after submitting this data i want the applet to generate data using html code so that the user can copy it and place the html code on his document.
    if anybody has some example code or some suggestions please post them.
    regards,
    srujana

    Andrew
    Thanks for your speedy reply, but I am not sure if this is actually what I an looking for. I will do some tests and come back to you if it is working... Tyanks once again for your assistance...
    Kind Regards
    Manie

  • Passing values from applet using POST method to PHP page

    Hello there ;)
    I realy need a help here.. I`ve been working all day on sending mail from applet. I didn`t succeed bcs of the security restrictions.
    So I decided just to pass arguments into PHP page, which process them and send e-mail to me.
    So here is the problem.. I need to send String variables througth POST into my php page. Now I`m using GET method, but I need more than 4000 characters.
    My actual solution is:
      URL url = new URL("http://127.0.0.1/index.php?name=" + name + "&message=" + message);
    this.getAppletContext().showDocument(url,"_self");I really need to rewrite it into POST. Would you be so kind and write few lines example [applet + php code]? I`ve already searched, googled, etc.. Pls don`t copy links to other forums here, probably I`ve read it.
    Thanx in advance to all :)

    hi!
    i`ve got some news about my applet.. so take this applet code:
    public class Apletik extends JApplet {
        public void init() { }
        public void start()
        try
          String aLine; // only if reading response
          String  parametersAsString = "msg=ahoj&to=world";
          byte[] parameterAsBytes = parametersAsString.getBytes();
          // send parameters to server
          URL url = this.getCodeBase();
          url = new URL(url + "spracuj.php");
          URLConnection con = url.openConnection();
          con.setDoOutput(true);
          con.setDoInput(true); // only if reading response
          con.setUseCaches(false);
          con.setRequestProperty("Content=length", String.valueOf(parameterAsBytes.length));
          OutputStream oStream = con.getOutputStream();
          oStream.write(parameterAsBytes);
          oStream.flush();
          String line="";
          BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
          while ((aLine = in.readLine()) != null)
           JOptionPane.showMessageDialog(null, aLine);      
           if(aLine.equals("")) break;
          in.close();      
          oStream.close();
        catch (Exception ex)
          JOptionPane.showMessageDialog(null, ex.toString());
    }here is code of spracuj.php which is on server:
    <?php
      if(isset($_POST['msg']))
        echo('hurray!');
    ?>it has only 1 problem.. when i test it on my localhost, everything seems to be all right. but when i post it to my server, i got IOException HTTP 400 error code :( where is the problem? please help me, i`m so close :D thanx

  • Generate html post request from form9i applet

    I need to interact with a 3rd party credit card processing server form my form9i application.I need to create a html post request with all the input information encapsulated in it and also receive the http response and parse it and display an alert in the form(approved or rejected).Can I do that?
    any answer is going to help me greatly
    Sathi

    GET method may be the easier way. web.show_document('your_url?v1=123&v2=abc'); as of POST method, I guess you need JSP to do it, but how to do it from applet, I like to know too.
    getting back info, I used perl to read the html POST data on web server, then perl parses it and writes to a file on server, then use text_io or utl_file to read data into webform applet fields.
    The drawback I found that the cursor will not get back to webform applet from html pages. I tried to print every possible Javascript methods to wake up it, but it cannot get it.

  • IPhoto Won't Import JPGs from Photoshop CS2

    Hello,
    I find that if I save a JPG from PS CS2, it will open in Preview, and other applications, but will not import to iPhoto. I have read the other posts here on this topic, but they have not addressed my experience.
    For me, it does not matter whether ".jpg" is added or not. If I open the file in Preview, and simply re-save it, with no other changes, it will import to iPhoto as usual.
    Thoughts?
    Thanks!
    Michael Morrison

    Hello,
    Thanks for your thoughts.
    I do have color management turned on, and the profile is Adobe 1998, rather than sRGB. When I re-save the file in Preview, I am also saving it with Adobe 1998, so it does not appear to be the presence/absence of a profile, nor the type of profile (sRGB or Adobe 1998).
    Further, the article you suggested indicates that this is a problem related only to Power PCs, and I have this trouble on botht Power PCs and Intel machines.
    Further thoughts?
    Thanks again,
    Michael Morrison

  • Writing binary data to ASP file from applet through URLConnection

    Hi Everybody,
    I am facing a proble with HttpURLConnection.I want to write some binary data from applet to an ASP file.The other end ASP file read this binary data and process , Here problem is I have opened URLConnection to the page and Created OutputStream and writing byte by Write() method But other end we are not getting bytes...we are not getting error too at java side..can any body help me..do we need to set any property to URLConnection...here I am giving sample code...
    OutputStream os;
    URL uConnect2;
    HttpURLConnection hucConnect2;
    uConnect2= new URL("http://webserver/vnc/sendtoserver.asp?"); hucConnect2=(HttpURLConnection)uConnect2.openConnection();
    hucConnect2.setDoOutput(true);
    hucConnect2.setRequestMethod("POST")
    os=new DataOutputStream(hucConnect2.getOutputStream());
    os.writeBytes("Hello");
    Thanks in Advance
    Madhav

    Do you remember to flush() and close() the stream?

  • Finally.... Video captured from applet in Vista!!

    Hello!
    Hurray!! finally I can see myself smiling and waving back in browser in Vista.
    I mentioned in another thread just a day earlier that I will post a new topic if I succeed in capturing from applets in Vista, so thats what I am doing.... This thread is all about how achieved it.
    I have seen many posts mentioning problems in capturing from applets in vista. I was also one of the sufferer. And most people including me blamed that on restricted sandbox of Vista. But surprisingly it was all about classpath.
    I think I mentioned in some earlier thread that the 'Java console' shows the classpath to be *"{JREHOME}/classes"* instead of the classpath specified in CLASSPATH environment variable. You can check that by pressing 's' which *'dumps system and deployment properties'* in the Java Console. You can check the classpath by noting the value of *"java.class.path"* field which for my case was"C:\\PROGRA~1\\Java\\jre6\\classes". This turned out to be the main problem. The applet was not accessing any classes from the real CLASSPATH instead it was considering the classpath to be jrehome/classes. So, now I had enough hint what to do next. I simply created a folder 'classes' in {JREHOME} and copied the jmf registry files to that folder. By registry files I mean *'jmf.properties'* and *'jmf.properties.orig'* files in *'{JMF Install}/lib'* folder (actually i don't which among them has got some thing to do with the registry but I copied them both). So, after doing this, all my capture applets, whether signed or unsigned started running. Earlier they all were throwing *"java.lang.RuntimeException: No permission to capture from applets"* exception even after I have allowed capture from applets in JMF registry. That was perhaps not taking affect because of classpath issues. So, thats the story.... if someone faces the same problem he can use this workaround or you can say hack ;-)
    Some questions which can be asked from me would be:
    1- Did you set your CLASSPATH environment variable correctly?
    ans: Yes, infact all my jmf applications were running correctly, the problem was only with the applets.
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also.
    3- Is this problem really Vista specific?
    ans: Can't say... but it can be. It maybe the case that Vista does not allow access to real CLASSPATH, but this problem can easily be my system specific, it would be called a general vista problem if this happens on all Vista systems, I need volunteers for this test. captfoss, can you please test this on your system? :)
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific.
    Drawbacks of this work around:
    1- This can be a pain for ordinary users , copying registry files from JMF/lib to JRE/classes.
    2- Whatever you change in JMF registry would not be effective to the applets. As the old registry files are to be replaced with new registry files every time JMF registry is changed for changes to take effect in applets.
    The real big question:
    How can we force Vista to look in the real CLASSPATH? this is the real question, if this can be done just by changing some settings then all this workaround is useless :) I am looking forward to the answer of this question.....
    captfoss, I would highly appreciate your comments.
    Thanks for reading this rather long post.... :)
    Thanks!

    A couple of comments here...the answer is, in fact, no, you didn't set your classpath correctly. One, you're probably using a JAR file to run your applet from (I'm not an applet programmer but I do believe that a JAR is required) which do not use the environment's classpath, they use their manifest classpath. No, the applet was not jared.
    Second, I believe that the browser itself specifies its own classpath, which you cannot modify. I believe this would be considered a security feature...Both IE7 and firefox3 fail.
    "You have little control over the CLASSPATH used by a browser for an Applet"
    [http://mindprod.com/jgloss/classpath.html]
    Ok this maybe the reason, I will go through the link....
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also. There isn't a "real" CLASSPATH, there is just the classpath stored as an environmental variable. It's no more or less real than the one in the browser.Thats what I thought.... but I think {JREHOME}/classes is the default class path used by the jre whether we set any CLASSPATH variable or not it would be there, something of that sort.....
    Lots of possibilities, but my best guess is that Vista doesn't let code running in the browser read environmental variables.Yes, I fully agree with this. I think I should file a bug report.
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific. Definately not. It would apply to any code that wants to access something on the classpath. You are right... as I said I would test it, I tested by making a small library, added it to classpath, made an application and an applet. As expected, the aplication worked while the applet failed.
    Any application with a custom classpath would be affected.I don't understand what you mean here, do you mean 'Class-path' header in jar manifest?
    I like the "installation requirement" part. I'd suggest looking into that. Alternately, there may be something in the security settings to allow access to environmental variables.I will try to look into both.
    I just tried this statement in applet:
    System.out.println( System.getProperty( "java.class.path" ) );It threw this exception:
    Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
    I don't know what conclusion should I draw from this... this does mean applet has no right to know what the classpath is.... but this doesn't mean even jre plugin responsible for running applet does not know what the classpath is :)
    Finally, I want to say that due to some problems I could not post earlier, and I may not post for few more days. But I appreciate your comments and would appreciate more of them.
    Thanks!

  • Problem in sending image from applet to servlet

    dear friends,
    i have a need to send an image from applet to servlet via HttpConnection and getting back that image from applet.
    i am struggling with this sice many hours and got tired by searching any post that would help me but haven't got yet.
    i tried using this code but it dosent make any execution sit right. i got NPE at ImageIcon.getDescription() line;
    at applet side
          jf.setContentPane(getJContentPane());
                     FileDialog fd=new FileDialog(jf,"hi");
                     fd.setMode(FileDialog.LOAD);
                     fd.setVisible(true);   
                     v=new Vector();
                     try{                                                
                               FileInputStream fis=new FileInputStream(new File(fd.getDirectory()+fd.getFile()));      
                               byte[] imgbuffer=new byte[fis.available()];
                               fis.read(imgbuffer);
                               ImageIcon imgdata=new ImageIcon(imgbuffer);
                               v.add(0,imgicon);
                                String strwp ="/UASProject/Storeimage";              
                                URL servletURL = new URL(getCodeBase(),strwp);             
                                HttpURLConnection servletCon = (HttpURLConnection)servletURL.openConnection();       
                                servletCon.setDoInput(true); 
                                servletCon.setDoOutput(true);
                                servletCon.setUseCaches(false);
                                servletCon.setDefaultUseCaches(false);   
                                servletCon.setRequestMethod("POST");     
                                servletCon.setRequestProperty("Content-Type", "application/octet-stream");   
                                servletCon.connect();            
                                ObjectOutputStream oboutStream = new ObjectOutputStream(servletCon.getOutputStream());                     
                                oboutStream.writeObject(v);
                                v.remove(0);
                                oboutStream.flush();      
                                oboutStream.close();  
                                //read back from servlet
                                ObjectInputStream inputStream = new ObjectInputStream(servletCon.getInputStream());
                                 v= (Vector)inputStream.readObject();                     
                                 imgicon=(ImageIcon)v.get(1);
                                 showimg.setIcon(imgicon);
                                 this.getContentPane().validate();
                                 this.validate();  
                                inputStream.close();                                                        
                             //  repaint();
                     }catch(Exception e){e.printStackTrace();}  and this is at servlet side
            try {       
                         Vector v=new Vector();                    
                         ObjectInputStream inputFromjsp = new ObjectInputStream(request.getInputStream());                                      
                          v = (Vector)inputFromjsp.readObject();                                                                                                          
                          imgicon=(ImageIcon)v.get(0);                     
                          inputFromjsp.close();            
                          System.out.println(imgicon.getDescription());                                      
                          v.remove(0);
                          v.add(1,imgicon);
    //sending back to applet
                           response.setContentType("application/octet-stream");
                          ObjectOutputStream oboutstream=new ObjectOutputStream(response.getOutputStream());            
                          oboutstream.writeObject(v);
                          oboutstream.flush();
                          oboutstream.close();
                   } catch (Exception e) {e.printStackTrace();}  i really need your help. please let me out of this headche
    thanks
    Edited by: san_4u on Nov 24, 2007 1:00 PM

    BalusC wrote:
    san_4u wrote:
    how can i made a HttpClient PostMethod using java applets? as i have experience making request using HttpURLConnection.POST method. ok first of all i am going make a search of this only after i will tell. please be onlineOnce again, see link [3] in my first reply of your former topic.
    yeah! i got the related topic at http://www.theserverside.com/tt/articles/article.tss?l=HttpClient_FileUpload. please look it, i am reading it right now and expecting to be reliable for me.
    well what i got, when request made by html code(stated above) then all the form fields and file data mixed as binary data and available in HttpServletRequest.getinputstream. and at servlet side we have to use a mutipart parser of DiskFileItemFactory class that automatically parse the file data and return a FileItem object cotaing the actual file data,right?.You can also setup the MultipartFilter in your environment and don't >care about it further. Uploaded files will be available as request attributes in the servlet.is the multipartfilter class file available in jar files(that u suggested to add in yours article) so that i can use it directly? one more thing the import org.apache.commons.httpclient package is not available in these jar files, so where can got it from?
    one mere question..
    i looked somewhere that when we request for a file from webserver using web browser then there is a server that process our request and after retrieving that file from database it sends back as response.
    now i confused that, wheather these webservers are like apache tomcat, IBM's webspher etc those processes these request or there is a unique server that always turned on and process all the request?
    because, suppose in an orgnisation made it's website using its own server then, in fact, all the time it will not turned on its server or yes it will? and a user can make a search for kind of information about this orgnisation at any time.
    hopes, you will have understand my quary, then please let me know the actual process
    thanks
    Edited by: san_4u on Nov 25, 2007 11:25 AM

  • Cannot parse xml from applet

    I really hope that somebody can help me with this.....
    I'm trying to simply parse an xml document into an applet so that the info can be used later on. I just need the tag, attribute and value.
    So far, all that I can do is get the "access denied" java.util.propertypermission user.dir read error that I see tons of people complaining about. here's my code:
    public StageInfo getNextStage() throws Exception
            handler = new GameXMLHandler(m_imageGiver, m_codeBase);
            spf = SAXParserFactory.newInstance();
            parser = spf.newSAXParser();
            parser.parse("Loader.xml", handler);
            return handler.getStageInfo();
        }is there a way to parse an xml file in an applet? everywhere I look, somebody is saying that it can be done, but never have they done it. I'm starting to think that there is something beyond my control that is stopping this from working. Please help!!!!

    If I read your post correctly, your applet is trying to read xml file from the user's local drive? This must be done with a signed (trusted) applet. Otherwise normal run-of-the-mill applets can't access drives. Java security feature. You can use Frame, it can access local drives.

  • About Calling PHP from Applet

    I'm developing a web page which incorporate applet. Now i want to call php(server side) from applet. It's ruuning good when the client is working in Direct Internet Connection. If client accessing internet from proxy ...how can i call the php
    With Regards
    Santhosh

    got answer :)..if any one need help post ur queries in this question.

  • Open html file from Applet

    Hi,
    I need to open html file from applet, the html file is placed in my local system, it is not open. the code is below, please can u tell where i did wrong.
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    <applet code="Resource.class" width="400" height="400"></applet>
    public class Resource extends Applet implements ActionListener
    Button b = null;
    public void init(){
    b= new Button("Click");
    add(b);
    b.addActionListener(this);
    public void actionPerformed(ActionEvent ae){
    try
    URL adress = new URL(getDocumentBase(), "html_code.htm");
    getAppletContext().showDocument(adress, "_blank");
    System.out.println("Execut inside"+adress);
    }catch(MalformedURLException e){
    System.out.println("Eror in Display");
    }

    Don't cross post
    http://forum.java.sun.com/thread.jspa?threadID=633500

  • Calling EJB from applet

    Hi friends,
    I have a problem of caling EJB from applet.that too from browser.
    Through dos prompt,I am able to set the classpath and then open the applet and then call the EJB.but thru browser i am encontering two problems,
    First,The codebase of applet is not being set and i am unable to view the applet.
    Second,my Initial Context Factory is not being found it is giving error as
    Cannot instantiate class: com.evermind.server.rmi.RMIInitialContextFactory.I am using oracle app server Oc4j2.
    can any one help me out.
    i am able to get output thru dos prompt where i can set classpath

    kyren,
    he has used something called HTML ConvertersDepends on the version of the plug-in you are using.
    (I'm sorry, but I couldn't find that detail in any of your posts!)
    You have to use the (HTML) converter with java version 1.3 (for example), but you don't have to with java version 1.4.
    thru my jbuilder version i am able to solve my
    problem.
    but thru browser,i am first of all not able to
    display applet.That's because "JBuilder" uses the appletviewer to display the applet (and not a browser).
    I Think for normal displaying applet we don't need of
    signed or unsigned applet.when calling ejb we may
    require.As Anupama has stated, the "codebase" attribute of the applet tag must be relative to the directory where the HTML file (containing the "applet" tag) is located. Where I work, we also use the "archive" attribute that tells the applet where to download the JAR files from. In order to lookup your ejb from your applet, you need (at least) the "oc4jclient.jar" file.
    By the way, if you want your name to appear next to your posts (instead of your ID number), you need to update your profile. Click on the "Forum Settings" link at the top of the (Web) page.
    Good Luck,
    Avi.

  • Runtime Exception in Creating DataSink from Applet

    Hi All
    I am capturing screen and recording audio using JMF utilities. The application is working fine in applet viewer but as soon as I run the application from browser, a runtime exception is thrown while creating the datasink. The exact exception is "*create the DataSink: java.lang.RuntimeException: No permission to write files from applets*".
    Although I am able to create files and have set read/write permissions as well.
    The jar file I am using is self signed.
    Please suggest what should I do.
    Thanks in advance.
    Best Regards
    Kuldeep

    This post is made assuming that my earlier assertion is correct.
    user5450182 wrote:
    ..the thing is how would it help if someone else opens this application on his/her system from the browser. .. It Wouldn't. It would however, help the end user not to be 'spied on by web pages'. It is up to you to explain to the end user about the default option and convince them to change it.
    ..Would it be able to capture the user screen and.. No.
    ..generate the .mov file?Yes. No problem there.
    Can you please explain the root cause of this problem? Which part of my explanation are you having trouble with?
    .. I am newbie to applets and jmf .. That is a recipe for disaster. Applets are a PITA at the best of times. Now throw in an abandoned API on top of that, some 'high security' concerns & I can see much frustration for you.
    It might make it simpler if you abandon the applet and instead use a webstart launched (J)Frame.

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Error while posting data from SCM to XI

    Dear Expertise,
    I got a requirement where I need to post data from SCM to XI server. From SCM
    side it is an ABAP proxy. When I tested the scenario and checked in the MONI of
    SCM I got an error. But SCM is correctly configured pointing to XI under Tcode
    SM59 (SM59 --> Connection Type H (HTTP Connection to ABAP System) -->with
    correct user credentials and PIPE line URL of XI server).
    Please let me know is this the correct settings for ABAP proxy for connecting
    from SCM system to XI system.
    Error Dump in SXMB_MONI:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
    <SAP:AdditionalText><!DOCTYPE html PUBLIC"-//W3C//DTD HTML 4.01Transitional//EN">
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error while sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks in Advance,
    Gujjeti

    HI
    Check these
    For Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized
    Description: The request requires user authentication
    Possible Tips:
    • Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    • If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    • If the error is in Adapter Engine
    –then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    • May be wrong password for user XIISUSER
    • May be wrong password for user XIAFUSER
    – for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message

Maybe you are looking for

  • Workflow Error status in checking In records (Records still getting syndicated to Port)

    Hi Experts, I have syndication strencil step before stop (check in) step. After successfully syndication of records to respective ports when i see status of workflow it is going in Error state. When i checked history of workflow then in last check in

  • Cracking and popping on Inspire T2900 Speakers

    There was a message exactly like this one on the forums about a year ago, perhaps more, and there were no responses...hopefully this proves more fruitful. Yesterday my Inspire T2900 speakers began to pop and crack. The pops happen at regular interval

  • Trouble playing downloaded audiobooks with Window Media Player

    I can't get audible book downloads from Net Library to play on my computer. Microsoft Windows Media player v9 and above is required to listen to eAudiobooks. I have this version. When I try to launch a download I get the message: cannot open file; ve

  • Jslt +sql count

    Hi, i would be thanksfull fi anyone would tell me, how to get the value from the count sql-statement using jstl.. the tags should look sth like this: <sql:query var="getUser" > SELECT COUNT(Row) FROM table </sql:query> <c:set var="count" value="${get

  • Make page with multiple divs containing multiple images expand...

    Hello DW Masters, I am trying to get the following prototype page to expand to the width of the browser window and contract to a minimum width of 1024px while keeping the white div spacers that are seperating the images at the same proportions of 5px