Not able to read data in accept of SSLServerSocket

I have created a RMIServerSocketFactory and creating a SSLServerSocket.The code is mentioed below. The ABCServerSocket is an extended class of SSLServerSocket.The accept call is overriden in ABCServerSocket.
The ABCServerSocket will be listening on two ports . One is the request from RMISSLClient requestes as well as normal SSLClient requests.
At the client side I was just sending an integer and expecting to read the data in the accept call. But, I couldn't succeeded to read the data.
Everytime it returns me a junk value or sometimes the call was blocking. Please let me know how could I recieve the data from the client side.
Any inputs?
public class ServerSocketFactory implements RMIServerSocketFactory,Serializable
public ServerSocket createServerSocket(int port) throws IOException
try
SSLServerSocket sslSocket=new ABCServerSocket(port);
catch(Exception e){
e.printStackTrace();
public class ABCServerSocket extends SSLServerSocket
SSLSocketFactory defaultSSF;
SSLServerSocket serversocket;
public ABCServerSocket(int port) throws IOException
defaultSSF =(SSLSocketFactory)SSLSocketFactory.getDefault();
SSLServerSocketFactory sslSSF = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
serversocket=(SSLServerSocket)sslSSF.createServerSocket(port);
serversocket.setNeedClientAuth(true);
public Socket accept() throws IOException
SSLSocket sslsocket=null;
sslsocket=(SSLSocket)serversocket.accept();
InputStream in=sslsocket.getInputStream();
BufferedInputStream bin=new BufferedInputStream(in);
bin.mark(8);
DataInputStream din=new DataInputStream(bin);
try
{//The Blocking call
int data=din.readInt();
catch(Exception e){
e.printStackTrace();
}

Why are you doing all this?
Why is the ABCServerSocket listening on two ports?
When and how do you accept from the other port?
How and when is the client sending the integer?

Similar Messages

  • Not able to see data in 0FIGL_V30 & 0FIGL_V31

    Hi,
    I've activated / installed standard business content for EpH3 i.e Mutltiprovider 0FIGL_M30 and entire data flow which includes reports and virtual providers 0FIGL_V30 & 0FIGL_V31.
    I'm able to see data in cubes where above virtual providers read data from. here is the link from help.sap.com
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/6b/fdc62d9e0b444cb14b7f424d9f9cb7/frameset.htm
    Issue is i'm not able to see data in Virtual providers 0FIGL_V30 & 0FIGL_V31 and hence in reports.
    Can anyone advice please. thanks
    SD

    Hi All,
    Yes I've checked data in underlying cubes.
    Mulitprovider is fine.
    I've added Master Data for both 0GL_ACCTP  and 0ACCESSTP
    RFC connection is fine.
    No DTP & Transformation since this is Virtual Provider based on Functional Module.
    However when I debug FM for 0FIGL_V30 & 0FIGL_V31 - I see no data and thought there might be master data issue b/w 0GL_ACCOUNT & 0GLACCEXT but MD is fine.
    It just not pulling data.
    Is there some setting I'm missing?
    FM's used for Virtual Providers are
    0FIGL_V30  - RS_BCT_FIGL_SREP_DATA_GET_V30
    0FIGL_V31 - RS_BCT_FIGL_SREP_DATA_GET_V31
    SD

  • Not able pass the data from component to other component.

    Hello All
    I am not able pass the data from component to other component.
    I have done like this.
    1 Main Component (Parent component ) having below  two child components.Embeded as used components.
    2)     Search Component  and Details Component
    3)     In the Search Component having buttons,  Say : Button u201CXu201D on click of button I am navigating to Details component view through FPM.
    4)     When I am clicking above button u201CXu201D raising the event to call the parent   business logic method, there I am getting  Structure with values and binded this structure to the node and Mapped this node to the Details component  interface node. FYI : I kept the debugging point Structure is having data , I had set static attributes table to node instance.
    5)     In the Details component node data is not coming mean empty.
    Thanks in Advance.
    Br-
    CW
    Edited by: CarlinWilliams on Jul 4, 2011 9:21 AM

    Hi,
    When you use input Ext. check that the parent component should not be used as used component in child component.
    Only in the parent component the child components should be used as used components and the usage has to be created for the
    Child Components and the binding of the Node should be done from comp. controller of parent component to child node
    by which you will be able to see double arrow against the node.This should work
    Thanks,
    Shailaja Ainala.

  • Not able insert ,query data from forms

    hi,
    I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
    should i do anything to insert record.please help

    the block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
    There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
    Craig...

  • Not able to query data from View

    Hi,
    I am not able to fetch data from views even while running simple select statements. I am using SQL Developer Version 3.0.04,
    Same query is fetching data on other computers running SQL Developer or Toad.
    Has anyone faced this issue??

    Is that the first version ever you installed? You unzipped in a clean directory, right?
    What OS/JDK/DB versions?
    So do you get an error or what?
    K.

  • Not able to post data

    hello there..
    i m not able to send data from an applet(embedded in a jsp) to another jsp even though i got successed making connection between these two.
    i m using following code at applet sede(embedded in jsp)...
         URL appletURL = getCodeBase();
            String strHost = appletURL.getHost();
            String strPort = String.valueOf(appletURL.getPort());
            String strProtocol = appletURL.getProtocol();
            int portNumber = Integer.parseInt(strPort);
            String strwp ="/UASProject/faces/feedbackform.jsp";       
            URL jspURL = new URL(strProtocol,strHost,portNumber,strwp); 
            URLConnection jspCon = jspURL.openConnection();       
            jspCon.setUseCaches(false);
            jspCon.setDoOutput(true);
            jspCon.setDoInput(true);      
            OutputStream outstream= jspCon.getOutputStream(); 
            ObjectOutputStream oboutStream = new ObjectOutputStream(outstream);             
            oboutStream.writeObject(std_details);         
            oboutStream.flush();        
           // oboutStream.close();        
            URL tempURL = new URL(String.valueOf(jspURL));       
            getAppletContext().showDocument(tempURL,"_self"); 
    //from server
        InputStream instr = jspCon.getInputStream();      
            ObjectInputStream inputFromjsp = new ObjectInputStream(instr);      
            Properties results = (Properties)inputFromjsp.readObject();
            inputFromjsp.close();
            instr.close();and this is at server side
       ObjectInputStream inputFromjsp = new ObjectInputStream(request.getInputStream());
           std_details = (Properties)inputFromjsp.readObject();
    //to applet
         response.setContentType("application/x-java-serialized-object");
        OutputStream outstr = response.getOutputStream();
           ObjectOutputStream oos = new ObjectOutputStream(outstr);
           oos.writeObject(ce);
           oos.flush();
           oos.close();
         but when i use std_details object for further implementation the i gets
    java.lang.NullPointerException
    here std_details is an properties object contains few key/value sets
    any help would be much appriciated

    /POSDW/BAPI_POSTR_CREATE will only import the data into ibound queue.
    To update data into TLog, you need to run /POSDW/QDIS (or /POSDW/QMON).
    There's another FM /POSDW/CREATE_TRANSACTIONS could update TLog straightly.

  • In 4.1 BO Client Tools not able to find data source  for BVM

    Hi All,
    In 4.1 BO Client Tools not able to find data source  for BVM
    Its creating issue .
    So if any body have any solution please let me know.
    Regards,
    Abhishek

    java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String;
         at customertree.XmlLoader.readData(XmlLoader.java:127)
         at customertree.XmlLoader.<init>(XmlLoader.java:69)
         at customertree.CustomerTreeFinal.jbInit(CustomerTreeFinal.java:240)
         at customertree.CustomerTreeFinal.init(CustomerTreeFinal.java:858)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source
         at java.lang.Thread.run(Unknown Source)and then inside the code... this is where i get my first error
    clients.setRowId(list2.item(i).getTextContent());

  • Not able to open data file in a rule file

    Hi,
    We have a rule file which has 140 columns. We are trying to add two new columns at the end (i.e. 141 & 142). We have added those columns in input text file and opened that text file in rule file. So automatically two columns are added at the end of rule file. Mapping is done properly. After that we saved that rule file.
    But next time when we opened that rule file and clicked "Open data file" option nothing is happening. We are not able to open data file in that rule file. But that rule file is working fine when we are running it.
    Can you please give any hint why it is not working?
    Thanks.

    Just a thought about your data file -- maybe 142 columns is too much? Yes, I know, if this is loading to a BSO database, and the columns represent a dense dimension, you are super duper efficient, but is the game worth the candle?
    What happens if you drop one of the members? Mark the column as Ignore During Data Load? Several columns? And then you need to add in new ones? KABOOM!
    FWIW, to keep the process as flexible and maintenance free as possible, I make every record one data value if I have any say in the matter. Yes, it is not efficient. But at least I don't get calls at o-dark-thirty telling me my process blew up and I need to fix it right away.
    NB -- I suppose these are two extremes and the right answer is somewhere in middle, but I will note that you likely won't have issues with reading and writing a data load rule with my approach.
    Regards,
    Cameron Lackpour

  • Not able to select data using DB link.

    Hi ,
    I have created the database link in oracle 8.1.7.0.0 to oracle 8.1.7.4.0
    But I am not able to select data using DB link.
    The error is = ORA 12154 : TNS: could not resolve service name.
    I have created the DB link with the same command in oracle 9.2.0.4.0 to oracle 8.1.7.4.0. I can select data using this link.
    Please suggest me the solution.
    Thanks,
    Shailesh

    If the service name is different on the 8i machine than on the 9i machine, you'll need to modify the service name when creating the link from 8i. Can you see the DB link in ALL_DB_LINKS in the 8i database?

  • Not able to View data in .CSV file

    Hi,
    I am using some java script to display data conditionall, for color coding purpose but when i try to download the data to an spread sheet i am not able to do that please suggest me how to export fix this bug
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCLthen
    '<span style="background-color:lightgreen">'|| TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || '</span>'
    else
    '<span style="background-color:red">'|| TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || '</span>'
    end "Effort"
    from actuals Z
    If i try to extract actuals it shows blank not able to extract data please suggest me how to fix this issue.
    Thanks
    Sudhir

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Not Able To View Data in Web Service Model

    Hi ,
       I m trying to view a table using web service model.
       When i write the same code for binding it to context , i m able to view its data.
       But not so while using Web Service Model(not adaptive web service model).
       The code is: 
             Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT object1 =new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
       wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(object1);
       object1.setResponse(new Response_ZMANAGE_MAKT_ZMANAGE_ZMAKT());
      CAn anybody plz solve my problem.
    Thanks..
    Regards,
    Ankita

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Not able to see data in Pivot table

    Hi,
    I have a issue with pivot table i have a column which displays values 0 and 1 and another column called month when i am placing this month column as a section and values column as a measure i am not seeing any values means i can see the month as header but instead showing 0 or 1 its showing blank columns. previously i created similar kind of table it worked but at that time values column data type is number this time its char. can anybody help me out how i can see the data in the pivot table. i already tried converting this column to number but still i am not able to see data in that values column.
    Thanks

    Hi copter,
    Place the month column in rows and value column in measure section and check if results are coming.If still it doesnt come i suppose you dint apply aggregation rules to value column.In pivot view click values column and aggregate by /select min or max or either server complex and check your results.
    (I suppose your aggregation rules is default)....Correct this one and you can place it in sections as per your requirement.
    Cheers,
    KK

  • Not able to access data in Query

    Hi,
    I have loaded data using DTP from 2 different source systems.
    One is 3.x emulated datasource and the other is New 7.0 datasource.I have loaded data sucessfully in to DSO.Built a query on same.
    But when iam executing the query by material as selection criteria.Iam not able to found data in query from one source system.The same data is available in DSO.Please needed in this regard.

    Hi Venkat,
    After extracting data into DSO check the request whether active or not.
    Check data in DSO in contents.
    If is there any restrictions on info providers in Queries.
    Let us know status clearly.......
    Reg
    Pra

  • Not able to see Data in Xcelsius 2008

    Hi everyone,
    My question is I am not able to see data in Xcelsius spreadsheet although I am able to connect to SAP BW and also able to see and select query but when I select Cross Tab Data in output Values it is not displaying in Xcelsius spreadsheet
    System Info
    Xcelsius 2008 Enterprise Trial Version SP 3.0
    SAP BW 7.1 SP 6 ABAP and JAVA
    Any help would be appreciated

    Hi Rashid,
    When you are using the BW conenction in Xcelsius you will not see any data in the spreadsheet at design time or at preview time.
    To see the data you need to go SAP > Publish, then SAP > Launch to test the dashboard in the NetWeaver Portal as that is the only place where the data can be viewed.
    Regards
    Matt

  • Not able to save data in pa30 action infotype in production

    Hi,
    In my organization users are not able to save data in SAP HR  pa30 action info type in production.
    It is gets hanged and throws run time error after run long time .
    in ST22 it will give below error:
    Runtime Errors   TSV_TNEW_PAGE_ALLOC_FAILED
    Information on where terminated
        Termination occurred in the ABAP program  "SAPLRHAS"   in "FILL_STRU_TURBO"
        The main program was "MP000000 ".
        In the source code you have the terminated point in line 759
        of the (Include) program "LRHASF00".
    Thanks and regards,
    Tarun

    Hi,
         Pls check your relationship of reporting postions and set up relationship A002 and also check organization relationship
        otherwise take help form ABPERs and debug and partiuclar prorgram and where and witch object its throwing
        error found out.
    Regrads,
    Tarun

Maybe you are looking for

  • Xorg 1.8 Intel framebuffer bug

    I'm running into this bug in the current version of Xorg; not sure if it's from intel-dri, xorg-server, libdrm, etc.  Just wondering if there might be an update to the Arch package in the cards since the freedesktop team already has a fix. Bug 28515

  • Photoshop CS4 quits when saving

    When I save a document, Photoshop unexpectantly quits. I'm running Mavericks on a late 2009 iMac. 8Gb of RAM. 300+Gb of hard drive available. I've ran DiskWarrior, Apple's Disc Utilities, Restarted the iMac. I've held-down Command, Option, Shift when

  • Redirect users to page when we take system in maintenance mode.

    I would like to redirect users to page when we take system in maintenance mode. We are on 12.1.3 application. please provide me document which have these details

  • Audit tablespace issue

    i have converted all tablespaces to local managed including "system", but i missed audit tablespace. now this tablspace is read only and dictionary managed. so i can't change it to online. can i drop it and recreate it? thanks

  • How to give page break in SSRS

    I am making a very simple report in SSRS (SQL Server 2012). I am trying to do the following: On page 1 display following text THIS IS PAGE 1 On page 2 display following text THIS IS PAGE 2 I added "Text" field in my report in which I have set the val