Results 1 to 2 of 2
  1. #1

    Connection Exception - Server returned HTTP response code: 500 for URL

    When I try to subscribe to a Lightstreamer adapter, using a java client, I get the following error

    com.lightstreamer.ls_client.PushConnException: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/lightstreamer/control.txt

    at com.lightstreamer.ls_client.HttpProvider.connectAn dGetAnswer(HttpProvider.java:251)
    at com.lightstreamer.ls_client.HttpProvider.doPost(Ht tpProvider.java:219)
    at com.lightstreamer.ls_client.BatchManager.getNotBat chedAnswer(BatchManager.java:141)
    at com.lightstreamer.ls_client.BatchManager.getAnswer (BatchManager.java:122)
    at com.lightstreamer.ls_client.PushServerTranslator.d oControlRequest(PushServerTranslator.java:625)
    at com.lightstreamer.ls_client.PushServerTranslator.d oControlRequest(PushServerTranslator.java:615)
    at com.lightstreamer.ls_client.PushServerTranslator.c allTableRequest(PushServerTranslator.java:491)
    at com.lightstreamer.ls_client.PushServerProxy.reques tSubscr(PushServerProxy.java:302)
    at com.lightstreamer.ls_client.ServerManager.subscrTa ble(ServerManager.java:487)
    at com.lightstreamer.ls_client.LSClient.subscribeTabl e(LSClient.java:538)


    Can someone please tell me what I need to do to resolve this?

    The client code is as follows

    LSClient client = new LSClient();


    new ExtendedTableInfo(subscriptions, "MERGE", config.getString("ls.schema").split(" "), true) {
    {
    setDataAdapter(config.getString("ls.dataAdapter")) ;
    if (config.getBoolean("ls.unfiltered", false)) {
    logger.info("RT Unfiltered = true");
    requestUnfilteredDispatching();
    } else {
    logger.info("RT Unfiltered = false");
    }
    }
    }, new HandyTableListener() {
    @Override
    public void onUpdate(int itemPos, String itemName, UpdateInfo update) {
    logger.info(String.format("RT onUpdate, itemPos:%d itemName:%s snapshot:%s", itemPos,
    itemName, update.isSnapshot()));
    }


    .......
    .............

  2. #2
    Found the reason for the exception.
    There was a runtime Exception in my Metadata Adapter.

 

 

Similar Threads

  1. Replies: 0
    Last Post: December 22nd, 2006, 01:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:10 AM.