Javacomm: problem with the receive data

Hello to all,
I have a problem on receiving data from a serial port.
As I figured out The port is obtained by the program I post
here bellow..but I can't receive data.
Do you have any hints?
Thanks in advance.
Mandy
import javax.comm.*;
import java.io.*;
public class SerialRead extends Thread implements SerialPortEventListener
     private InputStream in;
     public SerialRead(String port)
          try
               CommPortIdentifier id_porta;
               id_porta = CommPortIdentifier.getPortIdentifier(port);
               CommPort porta = id_porta.open("Read from serial porta", 200);
               in = porta.getInputStream();
               SerialPort porta_seriale = (SerialPort)porta;
               porta_seriale.setSerialPortParams(9600, SerialPort.DATABITS_8,
                    SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
               porta_seriale.addEventListener(this);
               this.start();
          catch (NoSuchPortException ne)
               System.out.println("The port " + port + "is not  present");
          catch (PortInUseException pe)
               System.out.println("The port " + port + "is used by " + pe.
                    currentOwner);
          catch (UnsupportedCommOperationException ue)
               System.out.println(
                    "The porta does not support the properties defined");
          catch (java.util.TooManyListenersException tme)
               System.out.println(
                    "Ther can be only one owner of the port");
          catch (IOException ioe)
               System.out.println("Error ofi IO");
     public void run()
          try
               Thread.sleep(10000);
          catch (InterruptedException e)
     public void serialEvent(SerialPortEvent event)
          System.out.println("1");
         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 :
                    byte[] readBuffer = new byte[20];
                    try
                         while ( in.available() > 0 )
                              int numBytes = in.read(readBuffer);
                         System.out.println(new String(readBuffer));
                    catch (IOException e)
                    break;
     public static void main(String[] args)
         System.out.println(args[0]);
         if ( args.length < 1 )
               System.out.println("Use java SerialRead <port name>");
          else
               SerialRead reading = new SerialRead(args[0]);
}

Hi Abdul,
Check if the data you are getting for the two fields in your data loading are correct. I think it has some illegal characters(I guess it has a trailing space). If possible try and correct it in the source system itself.
If you are doing full load for the master data, everytime the system is going to pull these values in and throw error. One other way of avoiding it will be to maintain routines to eliminate these.
The quickfix will be to correct it at the PSA level and load it again.
Regards.

Similar Messages

  • How can I debug a problem with the 3g data connection on my iPhone 4s?

    This question didn't get any answers in the "Using iPhone" forum. Thought I would re-ask here. Note, I had to reset the network again today 2 days after the last reset:
    I've been having intermittent problems with my 3g data connection on my iPhone 4s on ATT. Whenever this happens I see full bars etc, but can't browse from safari or get any data in other apps. My wife's iPhone 4 right next to me has no issues at all. Switching on/off airplane mode and turning off/on Cellular Data does not help. The only thing that helps is resetting the Network Settings or hard restarting the phone.
    I figured my problems were hardware related so I took my phone in for a replacement the other day. Things started out fine but after I upgraded it to 5.01 and restored my backup and now I am back to having the same issue today. I assume the issue is with something coming from my backup / restore but is there any way for me to pinpoint what could be causing the issue. I have a lot of apps, I'd rather not have to reinstall and set them all backup manually, but I would if I knew that would fix the problem... but for all I know one of the apps could be causing it.
    Anyone have any logs I can check or testing I can do on my end?
    Thanks!

    Unfortunately, Apple does not make any logs available to the average schmoe (like us) for networking, kernel dumps, or anything else (assuming, of course, it is not jailbroken).
    Your best bet is to take it back into the store. Ask them to look at the notes in GCRM regarding the last time this occured, then explain after upgrading to 5.01 it is occuring again. Then ask them for a phone swap since it is a reoccuring issue and doesn't sound like an OS/SW issue. Good luck!

  • Problems with the receiver

    Hello,
    I've just got my Nike + iPod today. I inserted the receiver to my iPod Nano and nothing happened...
    When I go to Setting>About, there's no mention to the nike + ipod. The only place it shows in my iPod is under Settings>Main Menu. There I can find an on/off option, but it does nothing.
    Do I have a broke one here?
    Thanks,
    Pedro

    I would make sure both your iTunes and iPod software are fully up to date. If that is already so, try resetting your iPod with the receiver in it, by holding down your menu button and the center button at the same time for at least 3 seconds. This should shut off your iPod and give you the Apple trademark logo. Once that happens, you are ready to push the menu button and center button at the same time again and this should restart you iPod and hopefully Nike+ will then show up in our main menu (of course, you'll have to make sure that you still have Nike+ set to show on your main menu in your settings as you already played with).

  • Problem with the SQL Data Source (Essbase server in Unix Env)

    I too have the same problem.
    I have setup the Datasource for an Oracle db in the Essbase Server (which is on a Unix Box) using the Oracle Wire Protocol.I tested the ODBC connection in the Server and it connect with the credentials.
    But if i choose the same DSN in the EAS and try to connect i get the below error
    Error: 1021001 Failed to Establish Connection With SQL Database Server.
    I even downloaded a document from the Oracle site.. on the SQL interface in Essbase but i could not find the inst-sql.sh file to enable Essbase SQL Interface on the server. Is this required??
    I tried with both the User & System DSN on the server but no luck.
    Any help on this will be highly appreciated. Thanks in advance.
    Posting in a new thread since the old one is answered and no points available to score.

    It can depend on the version, it is different for version 11, further information :- How to define a relational data source in (odbc.ini) V11 Essbase?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • HT201699 I'm using an iPhone 4 which i purchased last month, there seems to be some kind of problem with the mobile data network

    Hi,
    I bought a new iPhone 4 last month, totally fell in love with it untill there was this problem regarding the apn disappearing. I manually added the apn info and it worked fine for some time but soon after I disabled the mobile data/3g connection and enabled it later I always use to get a msg saying "Could not activate mobile data network" even after it being active( 3g symbol always used to be poped up at the top). Though the apn is filled with a valid data it shows me the same msg over and over again. It some times works on rebooting but the rebooting the handset everytime i want to use the connection sounds very pestering. Please suggest me with somehting to get rid of this problem...

    https://discussions.apple.com/message/21946322#21946322

  • Problem with the master data loads

    Hi Guys,
                 I am trying to load 0MATERIAL_ATTR in QA,but it is throwing error(Record 2 :0MATERIAL : Data record 2 ('000000000000000012 '): Version '000000000000000012 ' is not va ) and also similar error is coming when i load for 0VERSION(Record 1 :0VERSION : Data record 1 ('000E '): Version '000 ' is not valid ).
    but for the same master data object in development with the same R/3 data the loads are successful,only in QA it is giving the problem.

    Hi Abdul,
    Check if the data you are getting for the two fields in your data loading are correct. I think it has some illegal characters(I guess it has a trailing space). If possible try and correct it in the source system itself.
    If you are doing full load for the master data, everytime the system is going to pull these values in and throw error. One other way of avoiding it will be to maintain routines to eliminate these.
    The quickfix will be to correct it at the PSA level and load it again.
    Regards.

  • My ipod classic crashes after about 2-3 days of being attached to my Kenwood KDC-248U receiver in Pickup.  There are 2700  songs but only get through the first 200   Apple has replaced the Ipod 3x and Kenwood says it is not a problem with the receiver.

    My ipod classic crashes after about 2-3 days of being attached to my Kenwood KDC-248C receiver in my Pickup.  There are about 2700+ songs on the Ipod, but only get through the first 200 to 300 songs.  The screen fades, but there is still power and a charge.  Does anyone have a clue because I don't.?

    There seem to be compatibilty isuue with KDC receiver and Ipod Classic firmware 1.1.2.
    Here is an earlier post on the same problem.
    https://discussions.apple.com/message/12471279#12471279
    Good Luck on getting an earlier version ipod firmware. (Google it)

  • Problem with the master data restriction

    Hi All,
    I have a master data 0EMPLOYEE. The requirement is such that we need to restrict the future dated records i.e BEGINNING DATE <= SYSTEM -DATE. This we need to do at the extractor level which was done successfully. Now even after refreshing the master data 0EMPLOYEE in BW, I see the future dated records. May be these are the earlier records which were pulled.
    I don't want to see these records in the cube. Obviously I need to put the same logic in cube. But I need to know where should I write this code. I want to know the BEGINING DATE field is assigned to what field in the cube?
    Every where the assignment is of type "Master Data Attribute of".
    Thanks,
    Srinivas

    Hi,
    after doing at the extractot level,you need to replicate and then activate the DS.
    Then run the InfoPackage with repair full req and then run delta DTP. It should solve ur data issue.
    For Cube logic,
    You need to declare the data declaration and select stmt in start routine and then write the code in indiv level routine.
    check which field have u mapped for the masterdata and i think you can use cal day for beginning date but i'm not sure on this.
    Wait for other's suggestion.
    Cheers,
    shana
    assign pts if it is useful

  • Problem with the Posting Date of Goods Receipt or Invoice Receipt for PO

    Hi All,
    I am working on 2LIS_02_SCL - Purchasing Data (Schedule Line Level),
    For our report, we should get the scheduled PO quantity,actual PO qty, Scheduled date and actual date in the report.
    we are getting all these fields from the above extractor...
    For a PO which is opened (Delivery Completion indicator not set) - we where getting all field as in ECC(ME23N)
    But for a PO which is finished(Delivery completion indicator is set) - we where are getting actual GR qty,planned qty,planned or scheduled date at schedule line level.But we are not getting the Posting Date of Goods Receipt or Invoice Receipt for PO from history EKBE for all the schedule line.
    ex:
    for open PO
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    02/10/2011       1 day          100             100             0
                                                     2              02/10/2011    04/10/2011       2 days        200             400            200
                                                     3              03/10/2011    07/10/2011       4 days         300            300              0
    For the same PO when it is Finished or completed(Delivery completion indicator is set)
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    07/10/2011       6 day          100             100             0
                                                     2              02/10/2011    07/10/2011       5 days        200             400            200
                                                                    03/10/2011    07/10/2011       4 days         300            300              0
    for all the schedule line its displaying the last posting date(i think its taking from EKKO table)
    Is there any possibility to get that posting date history ....

    You can have multiple receipts against a PO schedule line, but this extractor is not meant to go to that level of granularity.  Please try to use 2lis_02_sgr instead which provides goods receipts per PO schedule line.

  • Performance problem with the bulk data

    Hi,
    I have created the mapping to load the fact table and succesfully deployed.
    When i tried to do the Initial load with the 12 million records,it is taking arround 90 hours.
    To reduce this time ,what performance measures we can take.
    Following is the little brief about the fact table.
    I am doing the outer join of two source tables.While loading the fact table ,i am doing a lookup into 4 dimension tables.For two dimension tables i am passing 17 fields to get the keys.We dont have indexes on the sources.
    I would be thankful if you can help me out.
    Thanks
    Vinay

    Hi Jean,
    One point,i have not mentioned correctly.I am giving below the the answers to your questions again.
    1.I am using SET based fail over to row based.
    2.Yes,i can expect a decent load times on the unix.
    3.I am not loading in parallel inserts.
    4.Yes, i am disabling the constraints/indexes on the fact table when loading.
    5.On the execution plan of the query, the joins being done are using NESTED_LOOPS and HASH_JOINS?
    6.There is only one not null key in the 2 dimension table.To get this key , i am passing 17 fields from the source tables.I dont have the primary key/Foriegn key references betweeen the fact table and the dimension tables.
    Hope i have given the complete information to you.
    Thanks
    Vinay

  • Problem with the Catalog Data

    Hi All,
    It has been observed that the Catalog Data object sometimes goes for a toss and doesnt fetch any data anymore. In that case, we used to simply logout and login again. But now we have moved to IConnector Services and can't logout and login again. As the same Ctalog data gets used by some other application, even the other application fails. Was just wondering if it was possible to reset or refersh the Catalog Data object so that it starts functioning normally again.
    Regards,
    Tanveer.

    1. Selecting and renaming each section would take me just as long as copy/pasting each section as well.
    Dinesh - Please note down the "cell range"  which you want to import from excel document. In Excel import dialog mention this cell range and ID will import the specified cell range only.
    2. When selecting file>place, I can't have the excel workbook open, which I still need to reference information.
    Dinesh - While placing you won't be able to open the Excel file simultaneously because ID is reading information from this file. But once you have placed the file in InDesign then you should be able to open it.

  • Problem with the ECC6 Data sources after migration

    Dear All.
    I transfer all the data source which is required for sales overview cube 0SD_C03.
    lets take two senairos.
    for example take 2LIS_11_VAHDR to BI 7 and then i migrate this data source with Export option after that i activate the data source and then i initialize the delta request with data.
    the request successfully generated in BI to R/3 but in monitor it shows in yellow for long period of time and no data arrive i wait for 30 min but nothing happen.
    in second one i initialize the delta process for data source 2LIS_12_VCHDR this data source i did't migrate but face the same situation.
    can you please explain what will be the cause of this and how i can manage to fetch the data from ECC6 client through Business content data source.
    i did not migrate the update rules into transformations.
    any help will be highly appreciated.
    kind regards,
    Zeeshan

    yes that is what exactly happen i did not do any thing as in the previous update rules there are written complex abap routine.
    please let me know how to generate the update rules as was there previously or if i have to revert the datasource back to the previous position what i have to do.
    i have figure out that why the data is not coming from SAP just need steps that how to revert the data source or make the new transformations with generated update rules or transformation.
    any help will be highly appreciated.
    Kind Regards,
    Zeeshan
    Edited by: Zeeshan haider on Jun 2, 2009 6:02 PM

  • Problem in the receiver JDBC channel

    hi,
    I am facing some problem with the receiver JDBC channel which is trying to insert some data in ORACLE DB.  My sample input XML file is,
    <root>
    <statement>
    <table>EBILL_CUST_STATE_AGE_HDR2</table>
    <CUST_CODE>BA001</CUST_CODE>
    <CUST_ADDR>Rental Customer Name 1+Name 2street01+TEL: 0331694100
                           FAX:0331694103</CUST_ADDR>
    <CRD_LMT>1000000.00</CRD_LMT>
    <BG_AMT>1000000.00</BG_AMT>
    </statement>
    </root>
    Error stack is,
    Exception caught when executing statement for table/stored proc. 'EBILL_CUST_STATE_AGE_HDR2' (structure 'Statement_CUST_STATE_AGE_HDR2'):
    java.sql.SQLException: ORA-00917: missing comma
    Please help me in solving the issue ASAP.
    Thanks,
    Soorya

    Hi,
    It works like this
    <ROOT>
    <STATEMENT>
    <TABLENAME ACTION="INSERT">
    <TABLE>EBILL_CUST_STATE_AGE_HDR2</TABLE>
    <ACCESS>
    <CUST_CODE>BA001</CUST_CODE>
    <CUST_ADDR>Rental Customer Name 1+Name 2street01+TEL: 0331694100
    FAX:0331694103</CUST_ADDR>
    <CRD_LMT>1000000.00</CRD_LMT>
    <BG_AMT>1000000.00</BG_AMT>
    </ACCESS>
    </TABLENAME>
    </STATEMENT>
    </ROOT>
    Please refer the link.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Abid Mazhar

  • Problems with the O2 blackberry data package on my Curve 3G.

    I have already informed O2 about this but they claim that I should be used the blackberry support services, but nothing there helps me!
    I got my Blackberry Curve 3G on September 9th this year and I put on the Blackberry Data Package bolt-on onto my phone on September 16th. I then received a text to say they've taken £5 from my credit and it will be up and running in the next 24 hours. Its now September 19th and my BBM is not working at all and I am extremely upset with the services and behaviour I have received from both O2 and Blackberry.
    Is there any way you can help? If this fails, I shall be forced to go back to the shop from where I got my Blackberry from and ask for their help.
    Many thanks, Jade.

    Can a bubble whistle Problems with the O2 blackberry data package on my Curve 3G.? The seat matures in your oar. The lad ices the pursuing method inside a resident. A judge spins against the vendor! The rose wows the hello. 
    filipina heart

  • 502 - Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream cont

    I am getting error while accessing url of lyncweb.domain.com, dialin.domain.com and meet.domain.com pointing to RP server.
    502 - Web server received an invalid response while acting as a gateway or proxy server.
    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    When i try with https://lyncfrontend.domain.local:4443 and https://lyncfrontend.domain.com:4443 both opens but when i open the external domain name i get certificate .
    ARR version installed is 3.0
    To throw more light on the configuration:
    Lync 2013 implemented, internal domain name is : domain.local and external domain name is : domain.com
    All servers in VMs are with 4 core processor, 24gb ram, 1TB drive.
    Frontend : Windows 2012r2 with Lync 2012 Standard Edition - 1 No (192.168.10.100)
    Edge : Windows 2012 with Lync 2012 Std - 1 No 
    (192.168.11.101 DMZ) in workgroup
    ISS ARR Reverse Proxy 3.0 : Windows 2012 with ARR and IIS configured. (192.168.11.102)
    Certificate : Internal Domain root CA for internal and External (Digicert).
    Internal Network : 192.168.10.x /24
    External Network (DMZ) : 192.168.11.x /24
    Public Firewall NAT to DMZ ip for firewall and RP server. So having two public IP facing external network.
    Edge has : sip.domain.com, webconf.domain.com, av.domain.com
    IIS ARR RP server has : lyncdiscover.domain.com, lyncweb.domain.com, meet.domain.com, dialin.domain.com
    Have created SRV record in public : _sip.tls.domain.com >5061>sip.domain.com, _sipfederationtls._tcp.domain.com>5061>sip.domain.com, _xmpp-server._tcp.domain.com>5269>sip.domain.com
    Installed frontend server using MS Lync server 2013 step by step for anyone by Matt Landis, Lync MVP.
    Internal AD Integrated DNS pointing Front-end
    Type of Record FQDN
    IP Description 
    A sip.domain.com
    192.168.10.100 Address internal Front End  or Director for internal network clients 
    A admin.domain.com
    192.168.10.100 URL Administration pool
    A DialIn.domain.com
    192.168.10.100 URL Access to Dial In 
    A meet.domain.com
    192.168.10.100 URL of Web services meeting
    A lyncdiscoverinternal.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to internal users
    A lyncdiscover.domain.com
    192.168.10.100 Register for Lync AutoDiscover service to external users  
    SRV Service: _sipinternaltls Protocol: _tcp Port: 5061
    sip.domain.com Record pointer services to internal customer connections using TLS 
    External DNS pointing Edge & Proxy
    Type of Record FQDN
    IP Endpoint
    A sip.domain.com
    x.x.x.100 Edge
    A webconf.domain.com
    x.x.x.100 Edge
    A av.domain.com
    x.x.x.100 Edge
    SRV _sip._tls.domain.com
    sip.domain.com: 443 Edge
    SRV _sipfederationtls._tcp.domain.com
    sip.domain.com:5061 Edge
    A Meet.domain.com
    x.x.x.110 Reverse Proxy
    A Dialin.domain.com
    x.x.x.110 Reverse Proxy
    A lyncdiscover.domain.com
    x.x.x.110 Reverse Proxy
    A lyncweb.domain.com
    x.x.x.110 Reverse Proxy
    In IIS ARR proxy server following server farms are added and configured as per link ttp://y0av.me/2013/07/22/lync2013_iisarr/
    In proxy server had setup only following server farm : While running remote connectivity web service test : meet, dialin, lyncdiscover and lyncweb.
    The client inside works fine internally and through vpn. Login with external client also working fine. But we are getting error in MRCA as follows.
    a) While testing remote connectivity for lync getting error : The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    Certificate was installed properly.
    b) For remote web test under Lync throws error : A Web exception occurred because an HTTP 502 - BadGateway response was received from IIS7.
    HTTP Response Headers:
    Content-Length: 1477
    Content-Type: text/html
    Date: Wed, 14 May 2014 10:03:40 GMT
    Server: Microsoft-IIS/8.0
    Elapsed Time: 1300 ms.
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • My new icloud acct on my imac is duplicating entries in calendar from my ipad; how do I get rid of the duplicates and how do I get one calendar to be the main one to start with

    I've just installed Mavericks on my iMac and now my calendar has duplicate and now sometimes tripled events by syncing with my ipad mini regardless of whether the item already existed in the iMac calendar already. How do I remove the duplicates? It w

  • Refresh document call in RESTful workflow is taking long time.

    Hi, I am facing an issue with the Refresh Document step, in Raylight Workflow using RESTful API. We are using this Refresh Document call, To make the dataprovider mappings formed. For few WEBI documents, this Refresh document step is taking much time

  • Backup strategy in FRA

    Hi Experts, BANNER Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production PL/SQL Release 11.1.0.6.0 - Production CORE     11.1.0.6.0     Production TNS for HPUX: Version 11.1.0.6.0 - Production NLSRTL Version 11.1.0.6.0 - Produc

  • Revel in Lightroom 4

    Hi! Just downloaded Lightroom 4 and signed up for Revel. But is it possible to view the Revel pictures in Lightroom? I know you can export to revel but i cant view pictures in Revel uploaded from other devices, is this something Adobe i working on? K

  • Vibration!

    Hi! I'm finally starting to dig into our Sound and Vibration toolkit and I love it! Doing sound pressure level, 1/3 octave, everything looks great. Trying to do vibration. I put in a 1g (9.8 m/s^2) 250 HZ standard signal from a vibration calibrator,