Unable to read data from previous calls...!

I am trying to capture data from the previous calls using the following code...
The program "/irm/sapliparm" has value in the variable "gs_ipar_infocus-x-arhdr-artyp" at runtime. I am able to see this value in debug mode. I need this value in a variable in my routine. Below is the code that I have written, but, this is not working. sy-subrc is 4 at the assign statement.
data: artyp type /irm/iparhdr-artyp,
         lv_artyp type /irm/iparhdr-artyp,
         g_iparhdr type /irm/iparhdr,
         objky type nast-objky,
         line type string,
         lv_var type string.
FIELD-SYMBOLS: <lv_artyp> type any. "/irm/iparhdr-artyp.
move '(/irm/sapliparm)gs_ipar_infocus-x-arhdr-artyp' to line.
lv_var = line .
assign (lv_var) to <lv_artyp>.
if <lv_artyp> is assigned.
   move <lv_artyp> to artyp.
   unassign <lv_artyp>.
endif.
I want to capture the value in variable "(/irm/sapliparm)gs_ipar_infocus-x-arhdr-artyp" inside my program.
Please let me know if you have an idea on how to capture the value.
Thank you in advance,
Srinath

Srinath,
The trick you are using seems OK to access standard program parameters which are not available in user-exits / BADIs.
I am also using similar code at some places and is working well for me.
Is gs_ipar_infocus-x-arhdr-artyp a single variable or a nested structure ?
Define <lv_artyp> as type of  /irm/iparhdr-artyp and try.
Define lv_var of chat type and try.
My sample code which works well is as below :
constants: prgwa(30) type c value '(SAPMV50A)XVBADR_SAV[]'.
  types: t_sadrvb type table of sadrvb.
  FIELD-SYMBOLS: <prgwa> type t_sadrvb ,
                               <watab> type SADRVB.
  assign (prgwa) to <prgwa>.
  if <prgwa> is assigned.
    loop at <prgwa> ASSIGNING <watab> .
    endloop.
  endif.
I hope it helps you find your problem.
Regards,
Diwakar

Similar Messages

  • TcpListener not working on Azure: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

    Hi Everybody,
    i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
    I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
    Here the ServiceDefinition.csdef file content:
    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
    <WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    </Imports>
    <Endpoints>
    <InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
    </Endpoints>
    </WorkerRole>
    </ServiceDefinition>
    This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
    namespace TcpListenerWorkerRole
    using System;
    using System.Net;
    using Microsoft.WindowsAzure.ServiceRuntime;
    using System.Net.Sockets;
    using System.Text;
    using Roche.Emac.Infrastructure;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.WindowsAzure.Diagnostics;
    using System.Linq;
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
    TcpListener listener = null;
    try
    listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
    catch (SocketException ex)
    LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
    return;
    while (true)
    Task.Run(async () =>
    TcpClient client = await listener.AcceptTcpClientAsync();
    LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
    NetworkStream networkStream = client.GetStream();
    StreamReader reader = new StreamReader(networkStream);
    StreamWriter writer = new StreamWriter(networkStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    while (true)
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    break;
    catch (Exception ex)
    LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    break;
    }).Wait();
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
    RoleEnvironment.Changing += RoleEnvironment_Changing;
    return base.OnStart();
    private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
    // If a configuration setting is changing
    LoggingProvider.Logger.Info("RoleEnvironment is changing....");
    if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
    // Set e.Cancel to true to restart this role instance
    e.Cancel = true;
    As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
    Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
    2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
    2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
    2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
    I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
    As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
    For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
    I'm using Windows Azure SDK 2.3
    Any help will be very very welcome!
    Thanks in advance!
    Javier
    En caso de que la respuesta te sirva, porfavor, márcala como válida
    Muchas gracias y suerte!
    Javier Jiménez Roda
    Blog: http://jimenezroda.wordpress.com

    hi Javier,
    I changed your code like this:
    private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
    public override void Run()
    TcpListener listener = null;
    try
    listener = new TcpListener(
    RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    catch (SocketException se)
    return;
    while (true)
    IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
    connectionWaitHandle.WaitOne();
    The HandleAsync method is your "While (true)" code:
    private void HandleAsyncConnection(IAsyncResult result)
    TcpListener listener = (TcpListener)result.AsyncState;
    TcpClient client = listener.EndAcceptTcpClient(result);
    connectionWaitHandle.Set();
    NetworkStream netStream = client.GetStream();
    StreamReader reader = new StreamReader(netStream);
    StreamWriter writer = new StreamWriter(netStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    // LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    // LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    // LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    catch (Exception ex)
    //LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
    ) and this post (http://stackoverflow.com/a/5420788).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to read data from the SAP marketplace

    Hi All,
        These days, certain packages in my download basketball cannot be downloaded, while others can be downloaded normally.
         After serveral redirecting, the SAP download manager keeps informing me that "Unable to read data from the SAP marketplace, check your settings and try again".
         Anyone knows how to solve it?
    Thanks,
    Yining

    Hi Yining,
    You user on SAP MarketPlace is locked.
    You have to unlock it but I do not know the way.
    Check in user data maintenance on SAP MarketPlace who is your responsible and perhaps he wwill be able to solve to unlock our user.
    Regards,
    Ronan

  • Unable to read data from the SAP Service Marketplace issue

    Good morning, experts.
    I´ve just installed the SAP Download Manager, but I can´t get connected to Marketplace.
    First I tried downloading a file I could see in my Basket Download. Then I deleted it from the basket so I could test only the connection. In both situations I got the same error message: "Unable to read data from the SAP Service Marketplace (...)".
    It is probably due to wrong settings, but I can´t figure it out. My settings are:
    Address: https://websmp205.sap-ag.de/
    User name: S0005951541
    Password: (my password)
    Proxy (my proxy settings)
    Any ideas?

    Thanks for your answer.
    I can see my download basket online. I realize I didn´t delete the items so I could test purely the connection. I am going to do it again.
    I found out I dind´t have permission to download those items, and with the right permission I could download them directly online.
    As long as I have more information I am going to repost this issue on a new forum.
    Thanks.

  • Unable to read data from Analog Devices 6b11 module - error code 1240

    Hi everyone,
    I'm trying to read data from a thermocouple with an AD 6B11 module in an AD 6BP16-1 backplane using RS232 serial. I've been following this guide:
    http://digital.ni.com/public.nsf/allkb/8C77E5E52B4A27968625611600559421
    Everything seems to work out well until step 13, where I call the "AD6B Input Module - Read Data.VI". I get an error code 1240 stating something like "invalid parameter or unable to read instrument".
    Has anyone got any experience with this error or suggestions to fixing it?
    Thanks in advance!

    That user guide is 20+ years old. The serial functions from that day used 0 for com 1, 1 for com 2, etc. Make sure you have the correct one selected. Please provide the exact error message instead of 'something like'.

  • Table unable to read data from CSV file

    Dear All,
    I have created a table which have to read data from external CSV file. The table is giving error if the file is not there at the specified location,but when i put the file at that location there is no error but no rows are returned.
    Please suggest what should i do???
    Thanks in advance.

    No version.
    No operating system information.
    No DDL.
    No help is possible.
    I want to drive home the point here to the many people that write posts similar to yours.
    "My car won't start please tell me why" is insuffiicent information. Perhaps it is out of gas. Perhaps the battery is dead. Perhaps you didn't turn the key in the ignition.

  • Unable to read data from Temporary table

    Hello
    Iam calling a stored procedure in java which populates data into a temporary table. This temporary table is reset for each session. The issue is that the procedure is executed successfully but when I run a select query on the temp table, it shows 0 rows.
    When i execute the same procedure from TOAD or MSSQL, the temp table is populated successfully.
    Any Suggestion on what is the possible error
    tnx
    -S-

    Temp table exists for duration of session.
    Make sure you are using the same session.

  • NE for Windows caches data from previous call.

    Hi all,I am experiencing a very strange problem.I wrote a native extenion in C++ .This extension wrapps another C++ class which performs some math operation.THe extension itself
    gets std vectors of result from that math class and I convert them to AS3 Vector.<Vector<Vector3D>>   2 dimensional vector and return it to flash .
    THe problem is that on first call the returned vector contains the correct data.
    But on the next call (just after the first one) when I pass a new data for the extension to return another set of new data what is happening that it return a vector with both the old and new data.
    Inside the DLL I clean everything including vectors and deallocating all the pointer.Still nothing helps.It is as if the DLL just keeps the old data inside itself.
    Any help will be greatly appreciated!

    Hi Chris.Well sorry for that ,I live in Israel.So here the first day of the week is Sunday    .  Look the current .PDF doc gives only the overall API archtecture explanation and describes its core methods and variables in a really brief way.
    And for many developers that is a real problem.Most of us here are not seasoned C++ developer. While I have been coding C++ occasionaly ,I got stuck here because in fact I have never wrote C++ DLLs which are wrapped with C.Only after reading many posts in StackOverflow.com about setting up C++ to C sources and also digging into the sources of the NE apps you have at one of Adobe pages I managed to figure out the problem.But many other dev could just have faild on it if they had very little or no C++ coding experience. So I suggest you to add some practical examples to that doc and put a better description on how C++ sources should be integrated with NE C API .
    Thanks.

  • Unable to read data from an excel document of 365*24 values ( all rounded to 4 decimal points)

    I have an excel sheet containing data of hourly loads in MW( rounded to 4 decimals) of one year.  So, I have 365*24 values that I want to import to Labview using Read from spreadsheet.vi. However what i get in the output array is 0's and randomly some unit values at very few places. I have checked the array size of the output array and it shows different array sizes for different yearly data.
    I am attaching the four excel spreadsheets .
    Plz help me with the issue I am facing.
    Attachments:
    Load-2012.xlsx ‏95 KB
    Load-2013.xlsx ‏94 KB
    Load-2014.xlsx ‏59 KB

    If you are using LabVIEW 2014, it includes the Report Generation Toolkit (which is also available as an add-on in earlier LabVIEW Versions).  This can read native Excel files, including .xlsx.  With a few functions (3 or 4, I think), you should be able to get the entire Table into a 2D array.
    Bob Schor

  • Unable to read data from AQ

    Hi
    I am new to BAM and struggling with getting data out of JMS queue into BAM reports.
    Followed the steps as mentioned here
    The EMS has started successfully, there are messages that are enqueued in the AQ (as a result of inserts into the table) but the final report shows no data, basically the data is NOT pulled out of the JMS Topic.
    Am I missing on some steps??
    Please Help
    Thanks in advance for your time.
    -Lalit

    Hi,
    I have forgot to mention one more thing in the above description.
    I have followed all the steps mentioned here. but one exception is that I have not compiled the three mentioned sql files in the sysdba level. I have compiled them as an apps user.
    Please tell me if there is any other steps to be followed.
    Thanks,
    -lalit

  • VISUAL STUDIO ONLINE Unable to read data from the transport connection: The connection was closed.

    Can anyone explain why I've suddenly started getting this error on one file in my projects?
    Visual Studio is 2013 Premium Update 4 
    The file that's failing ins 14,140KB in size.

    Hi s6521d,
    For this problem, you can try the following methods to check if the issue can be resolved. And elaborate more details if the issue still exist.
    1. Do a get latest and then have a check if your team project works fine
    2. Clean team foundation cache and sign out your credentials then reconnect to the team project
    3. Have a try on other machines to see if it only occurs on your environment
    4. Confrm whether the workspace you're using is server workspace and the file is locked. If yes, unlock the file. If the file was changed, you can also revert to a former changeset to check if the error still exist
    5. Check event logs to see if there any useful information
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to read data from SAP Service Marketplace.Check your settings.

    Hi,
    When im trying to download from SAP Marketplace using SAP DOWNLOAD MANAGER.it shows the following error.Please let me know how to go about it.
    Thanks,
    Bhargav

    I guess this could be an authorization issue. The S-Id you are using might not be authorized to download.
    Regards
    San

  • Read data from a Stored Procedure in Android

    I have a Stored Procedure say CustOrdersDetail. I have created a MBO for it in the workspace and deployed it on SAP Mobile Server. I am unable to read data from the stored procedure in code of the Android Application. If I pass a default load argument, then I am able to read data using findAll method. How to get the data from the stored procedure by passing it an argument in the Android Code ?
    Message was edited by: Abhijit Kadam

    Currently I am trying to call the stored procedure and retrieve the results. The stored procedure accepts 'orderId' as an argument and fetches the Product and Order Details.

  • Unable to read WSDL from URL

    This is my first web service. I thought I read that the
    service registers itself when first run, but it's just not jumping
    for me. I'd try registering it, but I'm not sure how to fill in all
    the blanks in the CF Administrator's Register Web Service form.
    I believe I'm doing this pretty plain and simple. Any ideas
    why this won't work? Tried both methods, both give the same error
    -- "Unable to read WSDL from URL"
    Calling URL:
    http://prod.trollsoftware.com/echotest.cfm
    Is looking at:
    http://prod.trollsoftware.com/trollws.cfc?wsdl
    which looks fine to me, but what do I know? This is my
    first....
    RLS

    I found this wonderful forum post
    {HERE}">http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=881689[/S
    and have been tyring to get it to run without removing the "/"
    mapping in case that would "break" something on my production
    server. I've tried hard to get Approach #2 to work as listed in
    that item, but to no avail. I can almost always see the XML code,
    but CF never wants to find it as an object reference.
    To answer your questions -- and thank you for your help on
    this! --
    1. Yes. I can see the XML code just fine.
    2. No. I get unknown host, connection failure, status not
    available.
    3. Doesn't work with IP, but that was expected as there are
    many domains on this server, not just this one.
    So, to continue, I thought I'd back up and try it on my CF7
    server. The program runs from here [
    http://www.saphea.com/echotest.cfm
    against the WSDL/CFC file here [
    http://components.findaportal.com/wsdl/trollws.cfc?wsdl
    I can see the XML file just fine, but the echotest does not work
    (code attached).
    I created a mapping of "/wsdl" to
    "d:\clients\components\wsdl" in trying to emulate Approach #2, and
    created a web subdomain of
    http://components.findaportal.com
    to "d:\clients\components", but no dice. Approach #2 may have to be
    abandoned.
    Why would it work for you and not me? That's the weird part.
    RLS

  • Problem while reading data from Serial Port

    Hi All,
    I am facing some problem while reading data from Serial Port.
    As per the requirement I am writing the data on Serial Port and waiting for response of that data.
    Notification for data availabilty is checked with method public void serialEvent(SerialPortEvent event) of javax.comm.SerialPortEventListener.
    When we are writing data on the port one thread i.e. "main" thread is generated and when data availability event occures another thread "Win32SerialPort Notification thread" is generated. This creates problem for me as we can't control thread processing.
    So can anybody pls explain me how to overcome this problem?
    Regards,
    Neha

    My Problem is:-
    I am simoultaneouly wrting data on port & reading data from port.
    First I write data on port using outputStream.write() method. Now when target side sends me response back for the request on serial port DATA_AVAILABLE of SerialPortEventListner event occured,we are reading data from serial port.Now till the time we didn't get the response from target next command can't be written on the serial port. When we are writing data on port main thread is executed.Now my problem starts when DATA_AVAILABLE event occured.At this point another thread is created.Due to this my program writes data of next command without reading response of previous command.To solve this prob. I have used wait() & notify() methods as follows.But again due to this my pc hangs after execution of 2 commands. (PC hang in while loop in a code provided below.)
    From SOPs I could figure it out that after 2 commands we are not able to write data on serial port so DATA_AVAILABLE event doesn't occure n pro. goes in wait state.
    Can anybody help me to solve this issue.
    Neha.
    Code:
    public void serialEvent(SerialPortEvent event)
              switch (event.getEventType())
                   case SerialPortEvent.BI:
                   case SerialPortEvent.OE:
                   case SerialPortEvent.FE:
                   case SerialPortEvent.PE:
                   case SerialPortEvent.CD:
                   case SerialPortEvent.CTS:
                   case SerialPortEvent.DSR:
                   case SerialPortEvent.RI:
                   case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
                                 break;
                   case SerialPortEvent.DATA_AVAILABLE:
                        try
                             dataThread = Thread.currentThread();
                             dataThread.setPriority(10);
                             dataAvailable = true;
                                                                                    byte[] tempArray=new byte[availableBytes];
                                        inputStream.read(tempArray);
                                                                       catch (IOException io)
                             SOP(io, "Error in serialEvent callback call for event DATA_AVAILABLE");
    public void  writetoPort(byte[] data) throws IOException
                             outputStream.write(data);
                              while(finalTimeOut >= actualTime)
                            if( ! dataAvailable)
                                    actualTime = System.currentTimeMillis();
                           else
              synchronized (mainThread)
                   mainThread = Thread.currentThread();
                   mainThread.wait();
    public  void sendDatatoUser(byte[] b) throws Exception, HWCCSystemFailure
              obj.returnData(b);
              synchronized(mainThread)
                   mainThread.notify();
                                                           

Maybe you are looking for

  • Cisco ip phone 9971 registration failed with CME 8.5

    Good day! I have voice bundle 2951 with 15.1.3(T) IOS version and  a few 9971 ip phones. In addition to it I've downloaded current SIP firmware for these phones (sip9971.9-2-1) and configured my CME as follows: voice register global mode cme source-a

  • Drag and drop object in other object

    Greetings! I'm asking myself this question: I have this graph in my application and a panel. The graph is draggable. How can I drag and drop the graph into the panel so that the graph becomes a child of the panel? Thanks!

  • Bridge CS5 preview / slideshow not working on 27" Apple Cinema Display

    I'm using my 2009 (black key) MacBookPro and Mac OS X 10.6.7 running Snow Leopard. 2.4 GHz Intel Core 2 Duo 4 GB 1067 MHz DDR3 Adobe Bridge CS5 works beautifully on my MBP, my photography workflow depends on Bridge. However, when I attach my 27" Appl

  • Is this effect possible in IMovie? (and what is it called?)

    Hello, I have no knowledge, but I imagine it is some extreme filter or anamorphic lens.  I love it and want to be able to do it! http://www.youtube.com/watch?v=ZSkeQkb8NMo   From a "spaghetti western" i believe... Thank you

  • Regarding Tcode VA01

    Hi,      I have a requirement in VA01 Tcode. I enter a sold-to-party value if it is blocked means knkk-crblb value is X it is giving message" Order receipt/delivery not possible, credit customer blocked" , instead of this message i have to display a