Java code to make connection to web server??

Hi,
we are looking at simple java code to connect to IIS Server and retrive a ZIPed file.
this zip file contains photos. all individual photos are stored in zip file under doc root of IIS server..
any sample code will be great

Here is some code on how to open an URL and read from it.
url = new URL("http://IIS_server/doc/Yourfile.zip");
URLConnection conn = url.openConnection();
conn.setDoInput(true);
in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
StringBuffer sbResponse = new StringBuffer();
int intChar = 0;
while ((intChar = in.read()) !=-1) {
     // got one byte as int from the server do something here to pass the byte from one stream to another (filestream)
     // there is a way to save to the local HD with an applet but you have to sign it and adjust some security policys
in.close();

Similar Messages

  • Can't parse xml file in jar file when  can't connect to web server

    My JNLP application throw ConnectException when trying to parse xml during web server offline.
    Steps,
    1. JNLP application has been launched once and all related jar and xml files are already downloaded to local cache.
    2. Then I close web server to test offline launch.I launch the JNLP application using shortcut with -offline parameter.
    3. However the JRE internal xml parser tries to connect to web server and report connection error as web server is down now.
    My concern is the file is already in the cache, why java still try to connect URL. This error happens in JRE 1.5, but it doesn't happen in JRE 1.6. It only happens when web server is down in JRE 1.5.
    I think it may be a bug of JRE, do any one can give me some hint about how to resolve?
    Thanks in advance!!
    I also moved the code piece to a simple web start example, following it the error and code pieces.
    Error Trace in Java console,
    ava.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
         at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
         at EntXmlUtil.buildDocument(EntXmlUtil.java:57)
         at Notepad.testParseXML(Notepad.java:870)
         at Notepad.main(Notepad.java:153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Notepad.java
    public void testParseXML() {
         URL xmlURL=Notepad.class.getClassLoader().getResource("xml/Login.xml");
         try {
                   org.w3c.dom.Document doc = EntXmlUtil.buildDocument(xmlURL);
                   System.out.println("Test"+doc);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    EntXMLUtil.java
    private static DocumentBuilderFactory dbf = null;
         static {
              dbf = DocumentBuilderFactory.newInstance();
              dbf.setNamespaceAware(true);
              dbf.setValidating(true);
              dbf.setIgnoringComments(true);
              dbf.setIgnoringElementContentWhitespace(true);
    public static DocumentBuilderFactory getDocBuilderFactory() {
              return EntXmlUtil.dbf;
    public static Document buildDocument(URL url, String systemId) throws Exception {
              DocumentBuilder db;
              Document doc;
              InputStream is;
              String sysId = null;
              if(systemId == null)
                   sysId = url.toExternalForm();
              else
                   sysId = systemId;
              db = EntXmlUtil.getDocBuilderFactory().newDocumentBuilder();
              is = url.openStream();
              doc = db.parse(is, sysId);
              is.close();
              return doc;
         }

    I finally got a temperary work around for this issue, using JRE5 version lower than update 16(not include update 16).
    i found Sun modify the URL which returned by XXX.class.getClassLoader().getResource("xml/Test.xml,") after update 15, previous it is related with the cache path, like C:\Users\epenwei\AppData\LocalLow\Sun\Java\Deployment\cache\javaws\http\Dlocalhost\P80\DMEntriView\DMapp\AMNotepad.jar!/xml/Test.xml, but after it changes to network path, like http://localhost/Notepad/app/notepad.jar!/xml/Test.xml. However, the latter address doesn't work in Sun's own class com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity if offline.It tried to create new URL then connect to web server. So exception is thrown since web server is down.
    if (reader == null) {
    stream = xmlInputSource.getByteStream();
    if(stream != null && encoding != null)
    declaredEncoding = true;
    if (stream == null) {
    URL location = new URL(expandedSystemId);
    URLConnection connect = location.openConnection();
    if (connect instanceof HttpURLConnection) {
         setHttpProperties(connect,xmlInputSource);
    I am not sure whether it is a Java new bug since I only read the codes and didn't debug Sun code. But I am very curious that I have already specify <j2se version="1.5.0_12" href="http://java.sun.com/products/autodl/j2se" /> to specify update 12 for my jws application. And I also see the Java console display like following
    Java Web Start 1.5.0_18
    Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
    Why java still uses my latest jre lib to run my application?
    Edited by: wei000 on May 22, 2009 5:32 AM

  • Connecting to web server

    I am hoping someone here can help with some suggestions...
    I am the back-up web master for my office. I connect to the web server using afp and the standard network connections using a Macbook Pro (all passwords stored in keychain). All worked well until today. I can no longer connect. I can ping the server, but I can't log in. The error I get says "cannot complete the operation because some data in "afp://XXX.XXX.XX.X" could not be read or written." Sorry for the Xs, but I didn't want to give away our web server's IP address.
    The regular web master uses a PC. He can connect to web server and ever make changes to the page, but he cannot create a new file or folder or delete a file or folder.
    To me it seems like a network privileges issue. Any other suggestions?

    I can't download the files and then use a text editor to make the changes, because there are too many of them!
    Even if I do that, the process of uploading them back to the server is going to be a headache.
    The files I'm talking about are footers of different sub sections of a website, so they are in different places/directories.
    I cant use a master footer for all the sub sections. They are very similiar but not exactly the same.
    and also there might be a problem with connecting, I use FrontPage to edit the website and thats how I access the server.
    I tried to use normal windows explorer to connect via FTP that did not work! any ideas?
    Thanks,

  • New Local Move Request - Error: MapiExceptionLogonFailed: Unable to make connection to the server.

    I am in the process of doing a migration from SBS 2003 std. edition to SBS 2011 std. I am at the point the migrating mailboxes from the Exch 03 server to the Exch 2010 server.  I initially received an error when selecting mailboxes that the mailbox
    db on the Exch03 server did not exist.  I followed the resolution steps from another forum post to add the Exch 2010 server to the "first administrative group" via the security tab and give full permissions.  This solved that issue and
    I was able to proceed through the wizard to actually create the local move request.  However, after processing the request, I get the following error...
    Summary: 1 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:03
    <username>
    Failed
    Error:
    Mailbox database '0180b88c-0cb2-4b2f-981a-6bdaecc10fcb' is offline.
    MapiExceptionLogonFailed: Unable to make connection to the server. (hr=0x80040111, ec=1010)
    Diagnostic context:
        Lid: 13720   dwParam: 0x6D9      Msg: EEInfo: Flags: 0
        Lid: 11672   dwParam: 0x6D9      Msg: EEInfo: NumberOfParameters: 4
        Lid: 8856    dwParam: 0x6D9      Msg: EEInfo: prm[0]: Unicode string: ncacn_ip_tcp
        Lid: 8856    dwParam: 0x6D9      Msg: EEInfo: prm[1]: Unicode string: <Exch03server>.<domainname>.local
        Lid: 12952   dwParam: 0x6D9      Msg: EEInfo: prm[2]: Long val: -545057711
        Lid: 12952   dwParam: 0x6D9      Msg: EEInfo: prm[3]: Long val: 382312662
        Lid: 45169   StoreEc: 0x824    
        Lid: 44273
        Lid: 59431   EMSMDB.EcDoConnectEx called [length=114]
        Lid: 34855   EMSMDB.EcDoConnectEx returned [ec=0x3F2][length=56][latency=4]
        Lid: 56945
        Lid: 59431   EMSMDB.EcDoConnectEx called [length=114]
        Lid: 34855   EMSMDB.EcDoConnectEx returned [ec=0x3F2][length=56][latency=4]
        Lid: 59505   StoreEc: 0x3F2    
        Lid: 52465   StoreEc: 0x3F2    
        Lid: 60065
        Lid: 33777   StoreEc: 0x3F2    
        Lid: 59805
        Lid: 52209   StoreEc: 0x3F2    
        Lid: 19778
        Lid: 27970   StoreEc: 0x3F2    
        Lid: 17730
        Lid: 25922   StoreEc: 0x3F2    
    Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.1.218.11&t=exchgf1&e=ms.exch.err.ExC2B9A8
    Exchange Management Shell command attempted:
    '<domainname>.local/MyBusiness/Users/SBSUsers/<username>' | New-MoveRequest -TargetDatabase 'Mailbox Database 2011012823'
    Elapsed Time: 00:00:03
    I have tested running the command from the EMS and get the following...
    Mailbox database '0180b88c-0cb2-4b2f-981a-6bdaecc10fcb' is offline.
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MoveRequest], RemoteTransientException
        + FullyQualifiedErrorId : AC277C79,Microsoft.Exchange.Management.RecipientTasks.NewMoveRequest
    On the Exch03 Server I have verified/tested/done the following:
    --Verified the Information Store Service is running
    --Tested restarting the service
    --Verified the Mailbox store is mounted
    --Tested Dismounting and mounting
    --Tested the Exch2010 mailbox db store is functioning properly by creating a test account and verifying w/ OWA.
    --Verified routing group b/w servers
    --verified network connectivity b/w servers
    --Verified DNS is functioning properly on both servers
    --Installed Exchange Server MAPI Client and CDO 1.2.1 on Exch2010 server.
    --Tested rebooting both severs
    I am at a loss.  Any ideas would be greatly appreciated.  I am unable to continue w/ the migration until I get past this step.

    Hi,
    Thank you for sharing the resolution.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks Gen Lin-MSFT

  • MapiExceptionMdbOffline: Unable to make connection to the server. (hr=0x80004005, ec=1142)

    Hello,
    We have 2 Exchange 2013 (build 712) servers in a DAG with distinct subnets. Cisco ASA in between was set to have no filtering between servers in subnet.
    We cannot add database copies nor move mailboxes.
    Tes-Mapiconnectivty fails with
    unspaceId  : e8a087f1-6197-48df-b094-d5c93a7b6070
    Server      : CLI-SRV01
    Database    : CLI-MDB01
    Mailbox     : SystemMailbox{376e8d54-7154-484a-a0a3-58f22d73236f}
    MailboxGuid :
    IsArchive   :
    Result      : *FAILURE*
    Latency     : 00:00:00
    Error       : [Microsoft.Exchange.Data.Storage.MailboxOfflineException]: Cannot open mailbox /o=First
                  Organization/ou=Exchange Administrative Group
                  (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=CLI-SRV01/cn=Microsoft System Attendant. Inner error
                  [Microsoft.Mapi.MapiExceptionMdbOffline]: MapiExceptionMdbOffline: Unable to make connection to the
                  server. (hr=0x80004005, ec=1142)
    In event log:
    The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database.
    Database: RDB
    Error: MapiExceptionRecoveryMDBMismatch: Unable to open message store. (hr=0x80004005, ec=1165)
    Diagnostic context:
        Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=132]
        Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=248][latency=0]
    Adding database copy fails with
    The seeding operation failed. Error: An error occurred while performing the seed operation. Error: Failed to open a log truncation context to source server 'CLI-SRV02.CLI.ch'. Hresult: 0xc7ff07d7. Error: Failed to open a log truncation context because the
    Microsoft Exchange Information Store service is not running. [Database: CLI-PFDB02, Server: CLI-SRV01.CLI.ch]
    How can I further verify communication from CLI-SRV02 to CLI-SRV01 ?
    Any help welcome
    /Patrice

    Hi,
    Let's begin with the following similar thread:
    http://social.technet.microsoft.com/Forums/en-US/b651d65c-92f3-460c-b555-247acb8e6fd7/recovered-exchange-2013-arbitration-system-mailboxes?forum=exchangesvravailabilityandisasterrecovery
    It is the same error in the event log with you when moving mailboxes. And it can be resolved by recreating the mailboxes.
    Additionally, to check the network connection between two servers, I recommend you use the network monitor to catch the package.
    Thanks,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Angela Shi
    TechNet Community Support

  • Need java code to make MySql Dump?

    Do anybody know how to write java code to make MySql Dump. I am badly need of this code very urgently!, do any body here to help me!
    Kindly help me out.

    Urgency means two things:
    - either your homework is late (do it yourself)
    - or you have a deadline on your job (ask a co-worker)
    Both isn't really making me want to answer your question. Your time isn't more valuable than that of the others.
    And the big question is probably not "how to write the Java code" but "how to make a MySQL dump", Java or not. RTFM for that, and then use either MySQL or Runtime.exec.

  • Java source which makes connection to IP printer on TCP/IP network. URGENT!

    I want to develop a Java application which makes connection to IP printer on TCP/IP network and sends data to be printed as string. The printer can be at other location or in other country but it should be able to print the data in the string. It should not be necessary to install printer on the machine, when you open your printer attached to your computer from control panel you will not find the printer. Programming should be in socket programming. When connection is been made between machine and the printer, what ever you write in your string gets printed automatically at printer. I don't want to use printer name just its IP address. Printer can be of any type postscript or pcl. Thank you.

    pour some money

  • # of Connections between Web Server (Tomcat) and Weblogic AppServer

    Hi guys,
              does anybody know how many connections are used between a TomCat WebServer and the Weblogic ApplicationServer?
              - One?
              - One per active browser-user?
              - Configurable? (freely, in some ranges, which values are recommandable?)
              Does anybody has some links to related documentation maybe?
              Answers would be very helpful.
              Thanx in advance!
              Markus
              

    Hi,
    While not an exact solution to your problem, I seem to recall a similar issue, not with this web server though, but similar still. As far as I recall, the problem was related to the loading order of the library files and overlapping class files within those libraries. I think it was an issue with j2ee.jar/javaee.jar and jbossall-client.jar.
    For the standalone test, you have probably checked the following, but check again :)
    - Exact same JDK
    - Libraries in the web server lib directory
    - Libraries in application/WEB-INF/lib
    - Loading order
    You might also want to check how war file class loading is done in the web server sp6.
    Other links of interest:
    [javax.xml.soap.SOAPException known versions|http://www.jarfinder.com/index.php/java/info/javax.xml.soap.SOAPException]
    Cheers,
    Øyvind

  • Make connection with j2ee server

    i am using j2me wireless toolkit. i installed j2ee also on my computer. i need to connect to this server using Generic Connection Framework(GCF) supported by j2me.
    When i write the relevant code and execute it , i am getting no response. I am new to this field so plz help me.

    Well, then show us the relevant code (and error print), like this, we can only guess what's wrong..

  • Allowing connections to web server

    Can anyone tell me if there is any difference really between natting my web server and port, rather than just natting the ip of the web server and using an access list to only allow http traffic to it ?

    PIX ignores subnet mask when natting using the global command. But when using access list subnet mash are not included.

  • Java client failing to connect to web service - help!!

    Hi
    I have created a Web service using ASP Web Matrix, which currently resides on my C drive in c:\Service6\HelloWorld.asmx.
    The service can be tested from a browser on my local machine by calling: http://localhost/Service6/HelloWorld.asmx. This works fine, i.e. it takes a string as a parameter and returns an amended string.
    When I try to access this from a Java client I created in Netbeans, however, I get the following error message:
    Server did not recognize the value of HTTP Header SOAPAction: sayHiya.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Can anyone advise what I am doing wrong?
    [nb. I have spent over a week trying to sort this, so I have tried!!)
    The code for the client follows:-
    // The Axis package is used to generate and handle the SOAP call
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    // The rpc package is used to create the RPC call
    import javax.xml.namespace.QName;
    import javax.xml.rpc.NamespaceConstants;
    // The java.net package gives a URL class
    import java.net.URL;
    public class HelloWorldClient {
        /** Creates a new instance of HiyaClient */
        public static void main(String[] args)
    try
    String endpoint = "http://localhost/Service6/HelloWorld.asmx";
    Service service = new Service();
    Call call = (Call) service.createCall();
    // Configure the call
    call.setTargetEndpointAddress(new URL(endpoint));
    call.setSOAPActionURI("sayHello");
    call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING);
    call.setOperationName(new QName("urn:HelloWorld", "sayHello"));
    //call.setReturnType(XMLType.XSD_STRING);
    System.out.println("**Works to here**");
    //Invoke the call
    String result = (String) call.invoke(new Object[] { "Diane" });
    System.out.println("Sent 'Diane', got '" + result + "'");
    catch(Exception e)
    System.err.println(e.toString());

    Hiya, did try that - tried
    "http://localhost:8080/HelloWorld.asmx" and
    "http://localhost:8080/Service6/HelloWorld.asmx" and it still didn't work.
    Thanks anyway.
    Anyone else got any bright ideas?

  • Connecting BI Web Server with SQL Server Express / Visual Studio Express for Report Development

    Hi,
    My company is using the Report Builder 3.0 to build the BI Reports ( I guess based on SQL Server 2008 R2). Our software vendor has provided us the web URL to access the BI Server. I want to generate the BI Reports with SQL Server Express or  Visual
    Studio Express instead of Report Builder 3.0. Need some guidance in this regard.
    regards, BI.Developer.

    Hi,
    Based on my research, if we want to open the report from report server to Business Intelligence Development Studio, we should download the report from report manager, then add this item in Business Intelligence Development Studio. For more details, please
    see the following steps:
    Type the URL in IE browser to access the repot manager.
    Browse to the RDL file folder or location.
    Hover over the report, and click the drop-down arrow near the RDL file.
    Click on download button, the download window will pop up now. Then save the rdl file.
    Click Manage option in the drop-down list, make a note of its Data Source Connection string.
    Create a Report Server Project in Business Intelligence Development Studio.
    Right-click the Reports folder to open the Add Existing Item dialog box, navigate to the location where you saved the .rdl file for the report, and then click Add.
    Right-click the Data Source to verify the connection string is correct.
    Besides, please make sure that software vendor had assigned ‘View reports’, ’Manage reports’, ‘Manage folder’ and ‘Manage data sources’ tasks for your account, so that you can download the report and view the data source.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Address book application in java using jdbc to connect to mySQL server

    hi there .....
    as clear from the topic i want to make an address book.....as above
    this is my first ever proper application of java
    i have this plan
    class GUI{* contains all components */}
    class links_GUI_to_db{* contains business logic simple enough from name */}
    then i make objects of both classes in "Main" class and all processes are done there
    as i am totally new to this thing , i would like some advice and an initial guideline on how to proceed
    i am NOT ASKING for code but advice on interaction of classes and how to proceed intitially
    thanks

    Hi,
    The answer depends pretty much on how ambitious you are, and several articels and books can be written on the topic, so it's unfortunately not something that can be fully answered in a short post.
    My best advice is that you google on MVC and on how to create layered applications. You can after that start reading e.g. JDBC tutorials and Swing tutorials (if that is the UI that you are going to use).
    Kaj
    Ps. I would probably not use MySQL as database for an address book. I would instead use a database that doesn't require installation. E.g. H2 or Derby.

  • Java add-in cannot connect to message server

    I'm installing a Java add-in to an ABAP system (NW 2004s). During the start of the Java Engine, the processes cannot be started. When I look al dev_jcontrol, I see this:
    Thr 2860] Sun Jul 30 19:59:45 2006
    [Thr 2860] ***LOG Q0I=> NiPConnect2: connect (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 2764]
    [Thr 2860] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 2 / sock 1740
         (SI_ECONN_REFUSE; I4; ST; <IP-ADDRESS>:36) [nixxi.cpp    2764]
    [Thr 2860] *** ERROR => MsIAttachEx: NiBufConnect to /36 failed (rc=NIECONN_REFUSED) [msxxi.c      652]
    [Thr 2860] *** WARNING => Can't attach to message server (/36) [rc = -100]-> reconnect [jcntrms.c    368]
    It seems that JControl tries to connect to the message server on port 36. Where can this be corrected?

    Discovering this thread when I had the same problem (with port number 36 not the 3901) I was frustrated to see no posted solution.  So now that I have solved it, here is  my solution:
    Cause
    =====
    The J2EE add in adds a number of parameters to the default profile - however it does not import these into the database version of the profiles in RZ10.  Hence if you modify a parameter in the DEFAULT.PFL using RZ10 and activate it without first doing a "Import Profiles of Active Servers" the parameters added by J2EE install dissappear.
    Solution
    ========
    In my case, I just compared the DEFAULT.PFL.BAK file to DEFAULT.PFL and readded the missing entries - incase people have lost there BAK file, here are the entries I needed to put back in (note your port numbers and instance numbers may differ):
    SAP Central Service Instance for J2EE
    j2ee/scs/host =
    j2ee/scs/system = 01
    j2ee/ms/port = 3901
    j2ee/dbtype = ora
    j2ee/dbname = BWP
    j2ee/dbhost =
    Restart the instance and magic! It works.
    Regards,
    Jason Currey

  • Java code to establish connection between 2 computers through phoneline

    Hi, We are working on a small project which transfers files through phonelines using modems. We are planning to use remote method invocation (RMI) technology. The file transfering code is working fine. But my problem is how to establish connection between two computers over phoneline using modems. If anyone having code to connect two computers through phoneline using modems, please send me urgent.. thanks in advance
    sridhar

    hello.im not experienced in computer .but i tried this method nd found it very funny.....i used a program in the window called hyper terminal ..you can reach to it through start up then programs then accessories then communication then hyperterminal .....throuh this program you can connect two compuers only by phone......you will adjust the sender computer to {call} and the reciever computer to {wait for call} these option is present inside the program.....
    in the sender computer you will choose the phone number of the receiving computer ...and vice versa {in the sender cmputer{client} you will type the phone number of the recieving computer {server} } excuse me .is this what you want...or im not understanding what is in your mind .....with best wishes for you

Maybe you are looking for