Socket oddities

Hi all,
I'm wondering if anybody has had any experience working with Sockets in Bridge and can explain some odd behaviour that I am seeing.
I am implementing a simple mechanism for retrieving a file from a remote server using HTTP (GET). With the request, I noticed that if the connection is opened using the default "ASCII" encoding, Socket.write does not send any CR characters. ie.
sock.write("GET /foo/bar HTTP/1.1\r\n");
sends the message "GET /foo/bar HTTP/1.1\n". With the "binary" encoding, everything goes through ok. Is the behaviour that I am seein for ASCII correct? I do not believe that \r should be dropped.
With respect to the response, I am trying to read the data line by line using Socket.readln. The first read will retrieve the status line
HTTP/1.1 200 OK
but I can't read anything else (regardless of connection encoding). After readln is called, socket.connected becomes false (expected - the server sends all data and a normal TCP connection shutdown occurs; I've verified this with a packet sniffer). The unexpected thing is that socket.eof is true! Somehow, the read buffer has become empty eventhough all data has been sent. Again, I've only called readln once. Is this a bug in Socket?
The code that I'm using to test retrieval of data is:
var sock = new Socket();
sock.open("myserver:80", "binary");
sock.write(request);
$.writeln("!socket error : " + sock.error);
$.writeln("!socket connected: " + sock.connected);
$.writeln("!socket eof : " + sock.eof);
var res = "";
while (sock.connected || !sock.eof)
var line = sock.readln();
res = res + "\r\n" + line;
$.writeln("!socket error : " + sock.error);
$.writeln("!socket connected: " + sock.connected);
$.writeln("!socket eof : " + sock.eof);
$.writeln("result: " + res);
Output looks like this:
!socket error :
!socket connected: true
!socket eof : false
!socket error :
!socket connected: false
!socket eof : true
result:
HTTP/1.1 200 OK
Cheers,
liam

How did you get socket to work with the bridge? I've only gotten it to work under after effects...
I've had luck sending GETs like this:
conn.write("GET /loginform.php HTTP/1.1\nHost: somewhere.somewhereelse.com:88\nConnection: Keep-Alive\n\n");
(without the wordwrap, of course...)
That being said, I've noticed similar things. readln() only reads one line, then it thinks there's nothing else. I haven't figured out how to stop it from doing that. Also, the data I'm reading in is chunked, so I have to do a loop until my read() comes up empty. Currently I'm messing with read(1) to just get a character at a time, but it stops after the first chunk and doesn't see any more. Not very helpful, I know, but at least you aren't crazy. :)
Have you tried sending binary data (jpegs, for instance)? Since read() puts all the data in a string, even though the open mode is set to "binary" my data is getting garbled. I'd love to know how to stop that from happening...
-Rich

Similar Messages

  • XML query over a socket

    I can't seem to find any thing anywhere about doing this. I was want to be able to send a query:
    <?xml version="1.0"?>
    <query />
    to a remote server (which will return a bunch of results). I've created an in/out socket... but that's about it.

    Simple POST xml java client, takes URL and a number of terms as argument, constructs query document, sends it to server and echos response to standard output:import java.io.*;
    import java.net.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    public class PostXml {
      public static void main (String[] args) {
        try {
          final Document queryDocument = XmlUtils.createDocument("", "query");
          final Element root = queryDocument.getDocumentElement();
          for (int index = 1; index < args.length; index++) {
            XmlUtils.addTextElement(root, "", "term", args[index]);
          XmlUtils.echoXml(XmlUtils.parse(postXml(args[0], queryDocument)), System.out);
        } catch (Exception ex) {
          ex.printStackTrace(System.out);
      public static InputStream postXml (String targetURL, Document document ) throws IOException {
        final URLConnection connection = new URL(targetURL).openConnection();
        connection.setDoInput(true);
        connection.setDoOutput(true);
        connection.setRequestProperty("content-type", "application/xml");
        XmlUtils.echoXml(document, connection.getOutputStream());
        return connection.getInputStream();
    }Servlet parses xml input and returns xml document based on the content:import java.io.IOException;
    import java.io.Writer;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    public class QueryServlet extends HttpServlet {
      public void doPost (final HttpServletRequest request,
                          final HttpServletResponse response) throws IOException, ServletException {
        response.setContentType("application/xml");
        try {
          final Document queryDocument = XmlUtils.parse(request.getInputStream());
          final Element queryElement = queryDocument.getDocumentElement();
          final NodeList terms = queryElement.getElementsByTagName("term");
          final Document responseDocument = XmlUtils.createDocument("", "response");
          final Element responseElement = responseDocument.getDocumentElement();
          for (int index = 0; index < terms.getLength(); index++) {
            XmlUtils.addTextElement(responseElement, "", "recieved", XmlUtils.textValue(terms.item(index)));
          XmlUtils.echoXml(responseDocument, response.getOutputStream());
        } catch (XmlException xe) {
          XmlUtils.echoXml(XmlUtils.errorDocument(xe), response.getOutputStream());
      public void doGet (final HttpServletRequest request,
                         final HttpServletResponse response) throws IOException {
        response.setContentType("text/plain");
        final Writer out = response.getWriter();
        out.write("use POST");
    }Utilities to hide much DOM cruft and checked exception proliferation:import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.xml.sax.SAXException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMImplementation;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    * Some of this removes oddities in DOM; most is wrapping exceptions so
    * that the different toolkits throw the same exception for like operations.
    public class XmlUtils {
      static final DocumentBuilderFactory documentBuilderFactory;
      static final DOMImplementation domImplementation;
      static {
        DocumentBuilderFactory factory = null;
        DOMImplementation domI = null;
        try {
          factory = DocumentBuilderFactory.newInstance();
          domI = factory.newDocumentBuilder().getDOMImplementation();
        } catch (ParserConfigurationException pce) {
          // log it
        documentBuilderFactory = factory;
        domImplementation = domI;
      private static Transformer nullTransform;
      public static void echoXml (final Document document, final OutputStream out) throws IOException {
        try {
          if (nullTransform == null) {
            final TransformerFactory factory = TransformerFactory.newInstance();
            nullTransform = factory.newTransformer();
          nullTransform.transform(new DOMSource(document), new StreamResult(out));
        } catch (TransformerException te) {
          final IOException ioe = new IOException("failed to write document to stream");
          ioe.initCause(te);
          throw ioe;
      public static Document errorDocument (final Throwable error) {
        try {
          final Document errorDocument = createDocument();
          errorDocument.appendChild(errorElement(errorDocument, error));
          return errorDocument;
        } catch (XmlException xe) {
          // as this is called to provide a document representing an error
          // during error handling, throwing anything could cause a loop
          return null;
      static Element errorElement (final Document document, final Throwable error) {
        final Element errorElement = document.createElementNS("", "error");
        addTextElement(errorElement, "", "class", error.getClass().getName());
        final StackTraceElement[] stack = error.getStackTrace();
        for (int index = 0; index < stack.length; index++) {
          addTextElement(errorElement, "", "stack", stack[index].toString());
        if (error.getCause() != null) {
          final Element causedBy = document.createElementNS("", "caused-by");
          causedBy.appendChild(errorElement(document, error.getCause()));
          errorElement.appendChild(causedBy);
        return errorElement;
      public static Element addTextElement (final Element parent, final String url, final String qname, final String content) {
        final Document document = parent.getOwnerDocument();
        final Element child = document.createElementNS(url, qname);
        child.appendChild(document.createTextNode(content));
        parent.appendChild(child);
        return parent;
      public static String textValue (final Node node) {
        switch (node.getNodeType()) {
          case Node.CDATA_SECTION_NODE:
          case Node.TEXT_NODE : return node.getNodeValue();
          default: return concat(node.getChildNodes(), new StringBuffer()).toString();
      public static StringBuffer concat (final NodeList nodelist, final StringBuffer buffer) {
        for (int index = 0, length = nodelist.getLength(); index < length; index++) {
          final Node node = nodelist.item(index);
          switch (node.getNodeType()) {
            case Node.CDATA_SECTION_NODE:
            case Node.TEXT_NODE : {
              buffer.append(node.getNodeValue());
              break;
            case Node.ELEMENT_NODE: {
              concat(node.getChildNodes(), buffer);
              break;
        return buffer;
      public static Document parse (InputStream stream) throws XmlException, IOException {
        try {
          return documentBuilderFactory.newDocumentBuilder().parse(stream);
        } catch (SAXException saxe) {
          throw new XmlException(saxe);
        } catch (ParserConfigurationException pce) {
          throw new XmlException(pce);
      public static Document createDocument (String url, String qname) {
        return domImplementation.createDocument(url, qname, null);
      public static Document createDocument () throws XmlException {
        try {
          return documentBuilderFactory.newDocumentBuilder().newDocument();
        } catch (ParserConfigurationException pce) {
          throw new XmlException(pce);
    }

  • Problem with socket and Threads

    Hi,
    I have coded a package that sends an sms via a gateway.
    Here is what is happening:
    * I create a singleton of my SMSModule.
    * I create an sms object.
    * I put the object in a Queue.
    * I start a new Thread in my sms module that reads sms from queue.
    * I connect to sms gateway.
    * I send the sms.
    * I disconnect from socket! This is where things go wrong and I get the following error (see below).
    I have a zip file with the code so if you have time to take a look at it I would appreciate it.
    Anyway all hints are appreciated!
    //Mikael
    GOT: !LogoffConf:
    mSIP Kommando var: !LogoffConf
    CoolFlix log: MSIPProtocolHandler;setLoggedin(false)
    We got LogOffConf
    Waiting ......for thread to die
    java.net.SocketException: Socket operation on nonsocket: JVM_recv in
    socket input stream read
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:116)
    at
    sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:405)

    Off the top of my head, probably the garbage collector cleared your SMSModule coz all classes loaded through other classloaders will be unloaded when that classloader is unloaded.
    mail in the code if you want me to look at it with greater detail.

  • Can i use the same socket to connect to more than one servers

    hi,
    I'm new to java. I want to know whether a socket created using Socket() constructor can be used to connect to multiple servers, not necessarily at a particular point of time. ie, i want to connect to various servers using a single socket and register some info abt them, possible using a loop, one by one. I use connect() method to connect to particular server.
    In other words is Socket class is mutable.
    Edited by: itsraja on Feb 25, 2008 5:50 AM

    In short, I don't think so.
    Setting the server name for a socket is in the constructor.
    Socket s = new Socket("localhost", 501);I don't believe that there are any functions, such as:
    s.setHost("localhost");
    s.setPort(501);However, JavaDocs suggests that when you use the no-args constructor, your class becomes an automatic SocketImpl class, but you can't reach any of its variables unless you derive from the class, itself. But that's probably a bigger headache than it's worth.
    Now TECHNICALY, if you didn't want to create a new variable, you could use:
    Socket s = new Socket("localhost", 501);
    s.close();
    s = new Socket("remotehost", 502);
    s.close();However, this is still creating a new instance and thus a new object in memory.
    I hope this answers your question.
    Let us know exactly what you're trying to do for a more exact answer.
    ~Derek

  • My iPod Touch will no longer charge from a wall socket, only my computer. HELP!

    My 4th generation iPod Touch will no longer charge from a wall socket, only my computer. I tried buying a new cable and USB charging socket (and I bought one made by Apple), but that did not fix the problem. I restored it from iTunes, hoping that would work as well, but that failed. I am at my wit's end. Can anybody here help me? I've bought new equipment, tried rebooting, restoring, etc. but nothing so far has proven successful. If anyone's got a solution, please help!
    Thanks!
    Signed, a very frustrated iPod user in Ohio!
    <Edited By Host>

    All I can suggest is the standared fixes. It seems very strange
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Bring the cable and Apple wall charger too.
    Apple Retail Store - Genius Bar                                      

  • MSI K7N2 Delta-ILSR Nforce2 (Socket A) Motherboard (MB-003-MS) Features NF2 chip

    I tried to install 3 of the Crucial Ballistix Tracer (1 Gig Each) in this motherboard (MSI K7N2 Delta-ILSR Nforce2 (Socket A) Motherboard (MB-003-MS) Features NF2 chipset) and it will not run stabilly no matter what I tried. Is this a bios conflict with the memory? If so, are there any new bios updates? I have tried cas settings and voltage settings but nothing works. It will how ever run perfectly with only 2 sticks in single channel mode. It will not run same 2 sticks in dual channel mode. Anyone have any ideas? Anyone know of any new motherboards with maybe NFORCE 4 Chipset that support all 3 sticks of this memory and an AGP graphics card? Im thinking of a new motherboard but I still need to have AGP and SATA.
    Barton 3200 core proc.
    System has ran fine for a solid year until I tried new memory. Please help!

    Quote from: freakytiki4u on 07-November-06, 23:42:33
    Ok I tried to use relaxed FSB by -10 and relaxed mem timings but still unstable due to the motherboard trying to use dual channel memory. If you can modify the bios to where it will not have the capability of dual channel memory I truly believe it will work. Will u try this for me? I would greatly appreciate it as I am really not ready to spend all the money on new equipemtn when this suits my needs for now.
    sure but as i said before this is gona be experimental and risky. Here we go:
    MSI K7N2 Delta ILSR Experimental MOD E1(Disable Dual CH ability)
    Procedure is automated in best possible safest way to BIOS update.
    Prepare a blank diskette in a good condition(newest one etc.)
    ]execute file under XP will make bootdisk with automated BIOS update procedure. when diskette is ready, reboot PC and boot from FDD(floppy), wait a bit, then you will be asked for final confirmation about BIOS update process, press a key to proceed, after BIOS update is complete, ensure that you got successfully output message from flash program. then power down your PC, remove power cord from the PSU, hit power button several time to drain caps electrify, touch with hands some metal for ES discharge, and Clear CMOS.
    pull back power cord, power up your PC, when you see CMOS checksum error,(expected msg) hit F1 to continue to re-build DMI pool data, then reboot and enter in BIOS, LOAD BIOS DEFAULT, and SAFE AND EXIT.
    NOTE: Ensure your PC is stable before proceed with BIOS update.
    NOTE: Use it at own risk, chance of failure is big, cannot guarantee results and safest as provisional mode which can guarantee it will work stable with features. also cannot test it personally before give you. (don't have mobo anymore)
    Using it may end with dead mainboard (BIOS chip re-flash will be required, if somethink goes wrong)

  • When I try to log on to my ichat I get the error message "An undefined AIM socket error has occurred.". How do I resolve this?

    The error message "An undefined AIM socket error has occurred." comes up when I try and log on to ichat.

    I have the same issue. Does anybody know why this has happened

  • Assign unique id to client of socket server

    HI
    I am in the process of developing a xml socket server application and have hit on a problem. I have managed to create a server that listens for connections and once a request is recieved creates a new client on a seperate thread with the reference being stored in a vector in the server.
    However I want to be able to assign an id to a client when it is created so that I can broadcast messages to specific users.

    my apologies my question was poorly stated..
    When i meant unique i mean that they will have already been prdefined i.e for example the following users
    Name David
    UserId *(Unique) 0138868
    Name sarah
    UserId *(Unique) 4138868
    Name rob
    UserId *(Unique) 7138868
    what i want to be able to is when the users connect they can be refeneced by their Userid so that if rob wants to say something to sarah without david knowing. The problem I have is that I do not know how to provide the userid to the server such that the server can create a new client thread with a specified id.
    Hope that makes sense ;>

  • Data written to socket getting lost?  or perhaps out of order?

    I'm trying to fix a bug in Flashmog. The bug is described in more detail here.
    Basically what is happening is that my Flash client claims that it is calling functions that don't arrive at the server -- or they arrive, but the socket data is out of order and therefore is garbled.  I've stared at the source code for hours and tried a lot of trial-and-error type stuff and added trace statements to see if I can find the problem and I'm not having any luck.
    In particular, there's class I have called RPCSocket that extends the AS3 Socket class so I can serialize data structures before sending them across a socket.  At one point, this RPCSocket class calls super.writeBytes and super.Flush.  It is the point at which I send all data out of my client. The data is binary data in AMF3 format.
              public function executeRPC(serviceName:String, methodName:String, methodParams:Array):void {
                   if (!this.connected) {
                        log.write('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' + serviceName + ' while not connected', Log.HIGH);
                        throw new Error('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' + serviceName + ' while not connected.');
                        return;
                   var rpc:Array = new Array();
                   rpc[0] = serviceName;
                   rpc[1] = methodName;
                   rpc[2] = methodParams;
                   var serializedRPC:ByteArray = serialize(rpc);
                   if (!serializedRPC) {
                        log.write('RPCSocket.executeRPC failed.  Serialization failed for method ' + methodName + ' on service ' + serviceName, Log.HIGH);
                        dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, 'RPCSocket.executeRPC failed.  Serialization failed for method ' + methodName + ' on service ' + serviceName));
                   super.writeUnsignedInt(serializedRPC.length);
                   super.writeBytes(serializedRPC);
                   super.flush();
              } // executeRPC
    Can someone recommend a way for me to store without corruption, conversion, or filtering or translation of any kind *all* of the information sent across this socket? I'd like to write it to a file.  I'm guessing that keep a global ByteArray var and storing the info there might work, but I'm wondering how I might get the contents of that ByteArray into a file so I can inspect it.
    Also, I'm wondering if I might be able to inspect what flash actually sends out on the socket?  I have a sneaking suspicion that data I supply to super.writeBytes may be sent out of order or may not actually get sent across the socket.  This bug I'm talking about only seems to happen under high-stress situations when I'm sending dozens of messages per second across this one socket.

    oops...forgot link to bug description: http://flashmog.net/community/viewtopic.php?f=5&t=549

  • Socket connect slow in JDK 1.5?

    We recently began testing our Java Swing application with JDK 1.5, and we noticed that socket.connect()
    calls are taking several seconds to return, when before in 1.4 the calls returned immediately.
    Here is some sample code:
    Socket sock = new Socket();
    InetSocketAddress sockAddr = new InetSocketAddress(inAddress, portNum);
    sock.connect(sockAddr, 2000);
    What could be wrong? I've debugged the code and verified inAddress is an IP address,
    not a hostname.
    -Eric

    Here is the list of enhancements in JDK1.5.
    http://java.sun.com/j2se/1.5.0/docs/guide/net/enhancements-1.5.0.html
    I wonder if any of them are having some effect in the slow connection.
    There are some network properties that you can tweak with. Did you try them?
    Here is the list
    http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html

  • Iphone 4 headphone socket not working headphones won't go all the way in

    My iphone 4 headphone socket not working, the headphones won't go all the way in? any help, ideas?

    I bough a new ipad two a few feels ago and still haven't managed to used any headphones with it.
    It's very annoying as I'm currently in hospital and will be for a few more weeks and this being the reason I bought it!! Now I have to have it on very low volume and not use it in the evening  

  • IPhone 4 ear speaker not working after 2 restores and cleaning the headphone socket.

    Hi,
    I know this problem is not uncommon, but here goes...
    I have an iPhone 4 which was running iOS 5.1.1 a few days ago when the ear speaker stopped working.  I cant hear the other person when I make or recieve a call, but nothing else is wrong with the phone.  It is 18 months old.
    I've searched the discussions and seen some of the suggestions.  I tried cleaning out the headphone socket, with no luck.  I then tried a full restore and update to iOS 6.  This appeared to have worked.  I tried 2 calls and I could hear the other person.  I then left the phone alone for a couple of hours and when I tried it again, it had stopped working again.
    I have since done another full restore but the speaker is still not working at all.  The fact that it worked after the first restore suggests it's something simple or software related but I have no idea what else to try other than getting it repaired in a shop.  The problem is I am in Japan where my network (Softbank) and an independent repair shop have both quoted me the equivalent of $176 / £110 to fix it.
    Does anyone know anything else I can try before I give in and end up shelling out this ridiculous cost for something that is probably a 20 minute fix?
    Any help would be appreciated.
    Thanks

    I have the exact same problem with my ear speaker after my IOS 6 upgrade. My speakers work, bluetooth works, the earphones work, but the ear speaker doesn’t work. I noticed this IMMEDIATELY after the upgrade was completed. I also have the following problems:
    -Very slow call connect time. 30 - 45 seconds just to connect is typical. Signal strength is 5 bars (ATT)
    -Problems attaching to known networks
    -Very slow internet browsing with many timeouts on both the ATT 3G service and known Wi-Fi networks.
    - My camera was missing after the IOS 6 upgrade. I restored that from Restrictions inside of the Settings App
    - Music was so screwed up it was easier to just restore it
    I went to the Apple store hoping to get some support. Between my wife, my son, and myself we have purchased 4 iPhones and an iPad over the last few years with plans to purchase another iPad in a month or so. So it’s not like I' not familiar with Apple Technology and their typical level of support.
    The individual who waited on me was rude and condescending. He insisted that all of the problems were hardware related or ATT’s fault, or my fault. He further asserted that IOS 6 had NOTHING to do with any of the problems. I pointed out that it would be quite a coincidence for my hardware to break, for ATT to have network problems, and for me to suddenly forget how to use an iPhone at the same exact moment that IOS 6 had been installed. He maintained his position and offered to sell me another phone.
    I don’t expect the folks in the store to reprogram the OS. Mistakes happen. I’m going to guess that Apple’s OS programmers are already working on a fix for many of the IOS 6 complaints that are easy to find on Google. Assigning blame to the customer and denying any responsibility is not a model for success or customer service. I’m sure Apple wouldn’t accept that kind of excuse from their component manufacturers and don’t think it is how they should deal with their customers. Further, Apple wants to own the device. They want to control the apps, the OS, battery, the delivery channel. I’m good with that so long as when there is a problem, they own that as well.
    And BTW… I’m not including the maps in my list of issues with IOS 6 because I kind of like the new maps and am willing to give Apple the benefit of the doubt. I believe that their map service will get a lot better in a hurry.

  • K8neo 4 socket 939 cpu 3800 x2 amd what is the best hard disk

    k8neo 4 socket 939 cpu 3800 x2 amd what is the best hard disk
    for this confy
    i know maxtor has more problem
    so i ask to you
    what is the best hard disk 250 300 gb ?
    sata sata 2 ?
    i read about in some site but i can understand what is the best for this confy
    thank
    my english is Lol

    When we are talking about Quality and Performance the choice is:
    http://www.wdraptorx.com

  • If I copy the "lcds" folder, Tomcat starts with socket errors

    In the documentation it is said that when you create a new server-side application, you can start by copying the 'webapps/lcds' folder. I did that but then, Tomcat starts with some socket errors:
    [LCDS]SocketServer 'my-rtmp-SocketServer' failed to pre-validate desired socket settings for BindSocketAddress: 0.0.0.0:2038
    java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    [LCDS]SocketServer 'my-rtmp-SocketServer' failed to start.
    flex.messaging.LocalizedException: SocketServer 'my-rtmp-SocketServer' cannot bind to accept client connections on port '2038' because another process has already bound the port. Please ensure that multiple endpoints across all applications  are not configured to use this same port.
    Am I doing something wrong?
    Thanks,
    Borek

    What is happening is that you are getting a port conflict for the socket-based NIO and RTMP endpoints used in the channel definitions in the services-config.xml file of your new web app. The issue is that you have endpoints bound to the same port  in the LCDS web and in your new web app.
    You can deal with this one of two ways:
    Option 1: In that services-config.xml file, search on "RTMP" and "NIO" to find the channel definitions and change the port numbers to something slightly different than the ones used in the LCDS web app.
    Options 2: Move the LCDS web app out of the picture so it doesn't get loaded, and just use a template for future web apps. If you aren't using it for any of your development, there is really no reason you have to load it.
    I'll add a note about this to the documentation that talks about using the LCDS web app as a template.

  • Socket threads problem after SOA installation

    Hi all,
    I am getting below error after sending request to the server(after weblogic and SOA servers started properly.
    <Warning><Socket>'There are: '5' active sockets, but the maximum number of
    socket readers allowed by the configuration is: '4', you may want to alter
    your configuration.>'
    I am not able to deploy the application into the SOA Server(I am getting http response 502 error in my Jdeveloper's log).
    I have seen forums about this ,they told to change the socket threads in weblogic console(mine is weblogic 10.3.5 server) ,but I am not able to change in the console.It has already some value as 33 and when I change and save ,it is telling value can not be changed dynamically.
    I was told to change like below.But Where do I need to change like below and how
    java -Dweblogic.ThreadPoolSize=10 -Dweblogic.ThreadPoolPercentSocketReaders=60 ... your.client ...
    I am stuck(I am not able to deploy the applications into SOA server)
    Thanks in advance

    Hi
    1. What you are seeing is <Warning> and mostly you can ignore this. This may not be the root cause for your error.
    2. Can you access your soa server url from browser like http://soahost:soaport/bpm/workspace url should work. Try soahost with direct ip address or dns name of that machine.
    3. In Jdeveloper, when you configure this, I hope you Tested the connection and does it show success.
    4. One way to quickly test is, deploy the SOA Workflow JAR directly from EM Console. The .jar file should be under your soaproject/deploy folder. If you have EAR for TaskForms, deploy EAR also from Console or EM Console. If all this works, this means, JDeveloper is not able to connect to soa server. Search for Proxy settings forJDeveloper in this forum. I remember seeing some posts to enable/disable Proxy for Jdeveloper like that.
    5. Look in the log files for any errors while deployment. But if server itself is NOT accessible, you may not see any deployment errors at all.
    Thanks
    Ravi Jegga

Maybe you are looking for

  • How can I HIDE a web Page From the Index above?

    I sometimes would like to directly link one page to another instead of listing every single page in the INDEX. For instance, I have a "Renovations" page with two other renovation pages following.....Can this be done from page to page with Hyperlinks

  • Using an iMac as a 2nd display for another iMac?

    Hi all, is it possible to use an iMac as a 2nd display for another iMac? I guess it depends (if at all possible) on the models, right? Would it be possible with two of the currently available iMac 27" models? Is it just connecting the two video jacks

  • How to extract email address from Outlook friendly name cache

    Hi guys, A while ago, somebody wrote a little VBA utility to help us to log CRM events. Whenever a user sends an email to a customer, it logs the fact in our CRM database. This is the programmatic process: 1. Grab the email address from ActiveInspect

  • Transfer of Sales Order stock - MTO scenario

    Hi, We have a situation in a MTO scenario, in MMBE we see a Sales Order stock for a material. THe Sales order is archived from the system and he corresponding PP order is also in TECO status. We need ot use that Sales order stock and transferit unres

  • Automatic reorder point and safety stock caluclation- MRP type:V2

    Hi, I want the system to calculate reorder point and safety stock. To simulate this i created one material with MRP type:V2, service level as 97%, Forecast model:D,Hist. period:12,Forecast periods:12, and I entered the historical value for past 12 mo