Help!!!  Problem about CDC porting

Hi all:
I'm porting CDC to a ARM based target board, the development environment is:
gcc 3.4.5; uClibc; uclinux 2.4.27
now the problem is:
I compiled the cvm executable file using static link, but when the
cvm run, it failed because it called "dlopen" routine in its' call path and the routine always returned NULL.
Is it necessary for the cvm to be linked dynamiclly to run correctly? It's difficult to use dynamic link in embeded environment.
Any information or advice is very appreciated!

besides, i found that:
this works:
"AND a.block LIKE '%' + 'a' + '%'"
but these don't work:
"AND a.block LIKE '%' + 'a' + '' + '%'"
or
"AND a.block LIKE '' + '%' + 'cp' + '%'"
or
"AND a.block LIKE '%' + 'cp' + '%' + ''"
it seems '' is the casue of error... so strange, anyone has idea?
micheal

Similar Messages

  • Solution and problem about USB port shutdown in thunderbolt

    Problem:
    Recently, i find that all USB port, audio in my thunderbolt have been disabled and when i restart computer, it will work for a while, i play a song, the audio go through display for a while, then go to Internal Speakers. In System Preferences -> Sound -> Output, i find that Display Audio disappeared. i googled online, i find that USB ports are disable as same time. I went to Apple Store, changed logical board, it DOES'T work. I called them, THEY DO NOT KNOW WHAT HAPPENED.
    What i do:
    To my knowledge, the thunderbolt display connect to my Macmini by thunderbolt port, the OS recognize thunderbolt as two logical ports, one is video and another is USB ports(just like usb hub). the audio is belong to USB ports. Therefore, i guess that the problem is software, not hardware.
    Solution:
    If you have this prolbem, please do not apply any update after 4 april 2012, the files include Java update for OS X 2012-001 to 003, also a flash play update( it is maybe the flashback virus). I am not sure which one cause the problem. Because my work, i have to use time machine every half day to backup my computer, so i restore my OS and find the solution.
    I hope it help you.
    Readman

    For most users I don't agree with the above recommendation.  The latest Java updates address the security holes being utilized by the current strains for the flashback trojan and also attempt to remove it if you are infected.  So here's yiour choices:
    1. Must you have sound coming out of your display's not-so-good speakers vs. alternative better sound systems?  If so take your chances, or,
    2. Install the updates to at least check for the trojans (or at least use F_Secure's Flashback Removal Tool) but turn Java off.  Turning Java off is the general recommandation anyhow, no matter whether you update or not.
    3. If you must use Java, and don't update it, risk the possibility of getting one of the flashback trojans and possibility compromising your on-line security.  Here too turn Java off in at least the browsers you use.

  • Problem about midp porting

    Hi,
    I port midp currently and I encounter one problem.
    all tools and midp.exe is ok(my platform is win 2k).
    but when I run midp.exe, the main window can display.
    but cannot work. when I debug the code, i found that
    midp cannot found com.sun.midp.main.Main.
    I am confuse now because the ROMizer step is ok
    and ROMjavaWin.c is genrated also.
    who can help me to solve this problem?

    It works now.
    I have updated web.xml to below:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          version="2.4">
      <servlet>
        <servlet-name>controller</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
    </web-app>

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Dear Apple I buy a refurbish iPhone 5s the IMEI ******* and ICCID ******** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.  Best regard

    Dear Apple
    I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
    Best regard
    <Edited by Host>

    This is a user forum. You aren't talking to Apple here.
    Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
    <Edited by Host>

  • Help! problem about jstl sql with "LIKE?" in query

    Hi All,
    I have a problem about getting data by using "LIKE" in my sql statment.
    here is my case:
    <sql:query var="tmp">
    SELECT ...... FROM ...
    WHERE a LIKE ?
    <sql:param value="%${param.a}%"/>
    </sql:query>
    Once I used "LIKE" keyword, the query failed to use this critica.
    and couldn't find any match cases
    thx or help
    Micheal

    besides, i found that:
    this works:
    "AND a.block LIKE '%' + 'a' + '%'"
    but these don't work:
    "AND a.block LIKE '%' + 'a' + '' + '%'"
    or
    "AND a.block LIKE '' + '%' + 'cp' + '%'"
    or
    "AND a.block LIKE '%' + 'cp' + '%' + ''"
    it seems '' is the casue of error... so strange, anyone has idea?
    micheal

  • My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    My apple ID was hacked and a game by GodGame Inc was bought and installed. When I try to report a problem about this transaction, the link automatically sends me to the apple store support. The application is bugged. Please help.

    thanks for your response roaminggnome. I changed my password immediately after it happened and I have contacted i tunes to let them know of this dillemma.
    The I-tunes credit was a promotional thing by Apple to buy their laptop. So I didn't pay for the i-tunes credit in the first place. Do you think my bank will be able to reinburse Itunes credit then? I will ask support when they get back to me.

  • Problem about enabling GL Drawing.Any help,please?

    Installed PhotoshopCS5 trial on laptop Vaio , XP Pro, service pack 3.
    When setting preferences found that in Performance window, section GPU is dimmed and can not activate Enable GL Drawing .
    The message in Description area is that Graphics hardware is not available and I need to upgrade video driver, possibly card.
    Did try to find what video card is present in the laptop but the  only info  found in Search is that DirectX is installed plus number of files with odd names (I am not a techie).
    So, I have no idea what video card is installed and what needs to be updated…
    Is there any solution  to this problem about enabling GL Drawing and what is it?
    My trial time is running out and any simple to understand advise is appreciated!
    Thanks in advance!
    Gloria

    Zeno is probably right in that your igp is too weak to support openGL, but if such is not the case, have a read here: http://kb2.adobe.com/cps/406/kb406921.html

  • I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    I have Power Mac G5 1.8 single. I have a problem with ethernet port, before it was working with the internet, but now i shows it is connected even the cable is disconnected. I'm running Leopard 10.5. any help

    Reset the PRAM.
    http://support.apple.com/kb/HT1379
    If that fails, reset the PMU.
    Scroll down the following page and click the G5 link for instructions:
    http://support.apple.com/kb/ht1939

  • Problems with USB port and song transferring;

    Hi! I just got an iPod and I am having problems with it. My computer doesn't have a Hi-Speed USB port, even if it's 9 months old. Some of my friends don't have it either but they still are able to transfer songs onto their iPod. For mine, it keeps saying "Do Not Disconnect." I waited for 5 hours last time I got it and it still isn't working.
    I also updated my iPod software today and the iPod icon isn't appearing on the bar to the left in iTunes. I'd really appreciate any help on this! As well as if I really need to do something about the ports or if it could function like this normally.

    Quote from: Svet on 08-December-10, 00:48:07
    Install chipset drivers from MSI web:
    http://eu.msi.com/index.php?func=driverfile&dno=2427&i=0
    +
    NEC USB 3.0 Drivers:
    http://eu.msi.com/index.php?func=driverfile&dno=11189&i=0
    are these the same driver provided with the disc driver? as i already installed both of these..

  • Problem about Cups!

    Hey AF.
    I just got a Keycera FS3800 Laser printer - And want to setup this for networking printing!
    I have my server where I have installed Cups and edited along the wikiguide to cups.
    But each time I want to print a testpage - it stops the printer.
    I have installed the following packages:
    cups - ghostscript - foomatic-filters and downloaded the ppd and copied into models. BUT nothing makes me able to print to the printer (Using network) - so that I able to set this printer up for anybody in my house no matter OS ??
    Or know if this is a special driver or anything else ???
    Have anybody any ideas or can help me getting further?

    peque wrote:
    Of course.
    The printer is connected using rj45 and nothing else.
    My network is made with a LAN zone(where the printer is)  with a IPTABLES firewall to the outside.
    I have swith 24ports connected to the firewall and thats where allo PC´s are connected to unless they are using the wireless - buit still they are connected using this switch.
    I have 1 PC (laptop) connected directly to the printer - works just fine.
    But I would´like to use a cups-server, for alle PC in the house. So no matter what they have to go via the cups-server.
    I have copying the ppd file that I got to work on the laptop - and using the exactly same settings about the printer. But when I try to print a test page - THe cups server returns with the printer stopped. After from what I can see - there´s no problem about the network - I can ping, telnet and everything else - But the only problem is that the machine I want to use as cups server will not print with the printer.
    The laptop prints just fine (I used the kde guide to install the printer on this - and another laptop wioth windows also prints fine directly on the port)
    Hoefully this was some more info - Or write me which details you want!
    Sorry, beyond my skill level. I print to a network printer which is attached to a router with a standard ethernet cable. The printer is just a device on the network. The router is the "firewall" to the outside world and the gateway to the Internet for the PCs on the network.
    Good luck, jimbo

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • PI7.0: Problem about openning alert configuration in RWB

    Hi experts,
       I encounter a problem about alert configuration.
       I have defined the alert catogory in WAS ABAP and use the report RSALERTTEST to test it. It's OK. Then I logon RWB and click u201CAlert configurationu201D,system popup a login window. I input my user account and confirm it. But the logon window popup again and again.I don't kown how to resolve it. BTW, my user account has the roles SAP_ALM_ADMINISTRATOR and SAP_ALM_CUSTOMIZER.And I have resolved the problem "Alert configuration does not start" according to note 750287.
       Anyone has idea??Could you please give me some advice???
    Thanks a lot in advance.
    BR Villy.L

    Hi Villy,
    Although i have not faced this issue but one workaround fix that can help you to address your problem would be....
    Please add below 'actions' to 'everyone' role using NWA->Identity Management
    UME keystore-view.TicketKeystore entry-actions.all.all
    UME keystore-view.TicketKeystore property-actions.all.all
    UME keystore-view.TicketKeystore view-actions.all.all
    Then, Initiate RWB using URL - http://<j2ee-host>:<http-port>/rwb/rtc?op=init
    I hope this fixes your issue.
    Regards
    Sekhar

  • Debug infor about FXO port

    I have a debug information showed by command"debug vpm all"about FXO port.I can't distinguish the error in the information. who can tell me how to find out the error?
    Thanks.
    debug infor:
    3d18h: ccIFShowState (vdbPtr=0x62F47D14, summary)
    3d18h: ccIFShowState (vdbPtr=0x62F49994, summary)
    3d18h: htsp_dsp_message: SEND/RESP_SIG_STATUS: state=0x0 timestamp=48919 systim8
    3d18h: htsp_process_event: [3/0/0, FXOLS_ONHOOK, E_DSP_SIG_0000]fxols_onhook_rig
    3d18h: [3/0/0] htsp_start_caller_id_rx
    3d18h: [3/0/0] htsp_set_caller_id_rx:BELLCORE
    3d18h: htsp_timer - 125 msec
    3d18h: htsp_process_event: [3/0/0, FXOLS_WAIT_RING_MIN, E_HTSP_EVENT_TIMER]fxolr
    3d18h: htsp_timer - 10000 msec
    3d18h: htsp_dsp_message: SEND/RESP_SIG_STATUS: state=0x4 timestamp=49519 systim8
    3d18h: htsp_process_event: [3/0/0, FXOLS_RINGING, E_DSP_SIG_0100]
    3d18h: fxols_ringing_not
    3d18h: htsp_timer_stop
    3d18h: htsp_timer - 10000 msec
    3d18h: [3/0/0] htsp_stop_caller_id_rx
    3d18h: hdsprm_close_cleanup
    3d18h: htsp_dsp_message: SEND/RESP_SIG_STATUS: state=0x0 timestamp=51819 systim8
    3d18h: htsp_process_event: [3/0/0, FXOLS_RINGING, E_DSP_SIG_0000]
    3d18h: htsp_dsp_message: SEND/RESP_SIG_STATUS: state=0x4 timestamp=52819 systim8
    3d18h: htsp_process_event: [3/0/0, FXOLS_RINGING, E_DSP_SIG_0100]
    3d18h: fxols_ringing_not
    3d18h: htsp_timer_stop htsp_setup_ind
    3d18h: [3/0/0] get_fxo_caller_id:Caller ID received. Message type=4 length=18 c3
    3d18h: [3/0/0] Caller ID String 04 0F 30 37 31 38 31 35 35 31 35 32 36 33 39 33
    3d18h: [3/0/0] get_fxo_caller_id calling num=5263932 calling name= calling time
    3d18h: cc_api_call_setup_ind (vdbPtr=0x62F47D14, callInfo={called=8059,called_o)
    3d18h: cc_api_call_setup_ind type 2 , prot 0
    3d18h: cc_insert_call_entry: Increment call volume counter
    3d18h: cc_insert_call_entry: current call volume: 1
    3d18h: cc_insert_call_entry: entry's incoming TRUE. is_incoming is TRUE
    3d18h: cc_incr_if_call_volume: not the VoIP or MMoIP
    3d18h: htsp_process_event: [3/0/0, FXOLS_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]
    3d18h: fxols_wait_setup_ack:
    3d18h: [3/0/0] set signal state = 0xC timestamp = 0
    3d18h: dsp_set_sig_state: [3/0/0] packet_len=12 channel_id=128 packet_id=39 sta0
    3d18h: dsp_soutput: [3/0/0]fxols_check_auto_call
    3d18h: cc_process_call_setup_ind (event=0x62ED923C)
    3d18h: >>>>CCAPI handed cid 25 with tag 200 to app "DEFAULT"
    3d18h: sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(25), disp(0)
    3d18h: sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(25), disp(0)
    3d18h: ssaCallSetupInd
    3d18h: ccCallSetContext (callID=0x19, context=0x631FB148)
    3d18h: ssaCallSetupInd cid(25), st(SSA_CS_MAPPING),oldst(0), ev(24)ev->e.evCall1
    3d18h: ssaCallSetupInd finalDest cllng(5263932), clled(8059)
    3d18h: ssaCallSetupInd cid(25), st(SSA_CS_CALL_SETTING),oldst(0), ev(24)dpMatch0
    3d18h: ssaSetupPeer cid(25) peer list: tag(100) called number (8059)
    3d18h: ssaSetupPeer cid(25), destPat(8059), matched(4), prefix(), peer(62A8DF54)
    3d18h: ccCallProceeding (callID=0x19, prog_ind=0x0)
    3d18h: ccCallSetupRequest (Inbound call = 0x19, outbound peer =100, dest=, para1
    3d18h: ccCallSetupRequest numbering_type 0x81
    3d18h: ccCallSetupRequest encapType 2 clid_restrict_disable 1 null_orig_clg 0 c2
    3d18h: dest pattern 8059, called 8059, digit_strip 0
    3d18h: callingNumber=5263932, calledNumber=8059, redirectNumber= display_info= 0
    3d18h: accountNumber=, finalDestFlag=1,
    guid=7ea5.51a9.17e5.11cc.8034.e670.5153.4d65
    3d18h: peer_tag=100
    3d18h: ccIFCallSetupRequestPrivate: (vdbPtr=0x62CDA89C, dest=, callParams={call1
    3d18h: ccIFCallSetupRequestPrivate: (vdbPtr=0x62CDA89C, dest=, callParams={call)
    3d18h: cc_insert_call_entry: not incoming entry
    3d18h: cc_insert_call_entry: entry's incoming FALSE. is_incoming is FALSE
    3d18h: ccSaveDialpeerTag (callID=0x19, dialpeer_tag=0x64)
    3d18h: ccCallSetContext (callID=0x1A, context=0x631FB6BC)
    3d18h: ccCallReportDigits (callID=0x19, enable=0x0)
    3d18h: cc_api_call_report_digits_done (vdbPtr=0x62F47D14, callID=0x19, disp=0)
    3d18h: sess_appl: ev(52=CC_EV_CALL_REPORT_DIGITS_DONE), cid(25), disp(0)
    oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(1)
    3d18h: -cid2(26)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_MAPPING)
    3d18h: ssaReportDigitsDone cid(25) peer list: (empty)
    3d18h: ssaReportDigitsDone callid=25 Reporting disabled.
    3d18h: htsp_process_event: [3/0/0, FXOLS_PROCEEDING, E_HTSP_PROCEEDING]fxols_ofc
    3d18h: htsp_timer - 120000 msec
    3d18h: cc_api_supported_data data_mode=0x10002
    3d18h: cc_incr_if_call_volume: remote IP is x.x.x.x
    3d18h: cc_incr_if_call_volume: hwidb is Serial1/0:0
    3d18h: cc_incr_if_call_volume: create entry in list: 1
    3d18h: ccTDUtilGetInstanceCount: For tagID[1] of callID[26]
    3d18h: ccTDPvtProfileTableObjectAccessManager: No profileTable set for callID[2]
    3d18h: ccTDUtilGetInstanceCount: For tagID[2] of callID[26]
    3d18h: ccTDPvtProfileTableObjectAccessManager: No profileTable set for callID[2]
    3d18h: htsp_dsp_message: SEND/RESP_SIG_STATUS: state=0xC timestamp=53222 systim8
    3d18h: htsp_process_event: [3/0/0, FXOLS_PROCEEDING, E_DSP_SIG_1100]fxols_offhoc
    3d18h: htsp_timer2 - 350 msec
    3d18h: cc_api_call_proceeding(vdbPtr=0x62CDA89C, callID=0x1A,
    prog_ind=0x0, rawmsgPtr=0x0)
    3d18h: sess_appl: ev(21=CC_EV_CALL_PROCEEDING), cid(26), disp(0)
    3d18h: cid(26)st(SSA_CS_CALL_SETTING)ev(SSA_EV_CALL_PROCEEDING)
    oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(0)fDest(0)
    3d18h: -cid2(25)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_CALL_SETTING)
    3d18h: ssaCallProc
    3d18h: ccGetDialpeerTag (callID=0x19)
    3d18h: ssaIgnore cid(26), st(SSA_CS_CALL_SETTING),oldst(1), ev(21)
    3d18h: cc_api_call_alert(vdbPtr=0x62CDA89C, callID=0x1A, prog_ind=0x0, sig_ind=)
    3d18h: sess_appl: ev(7=CC_EV_CALL_ALERT), cid(26), disp(0)
    3d18h: cid(26)st(SSA_CS_CALL_SETTING)ev(SSA_EV_CALL_ALERT)
    oldst(SSA_CS_CALL_SETTING)cfid(-1)csize(0)in(0)fDest(0)
    3d18h: -cid2(25)st2(SSA_CS_CALL_SETTING)oldst2(SSA_CS_CALL_SETTING)
    3d18h: ssaAlert
    3d18h: ccGetDialpeerTag (callID=0x19)
    3d18h: ccCallAlert (callID=0x19, prog_ind=0x0, sig_ind=0x1)htsp_alert_notify
    3d18h: htsp_process_event: [3/0/0, FXOLS_PROCEEDING, E_HTSP_EVENT_TIMER2]fxols_m
    3d18h: htsp_timer_stop
    3d18h: htsp_timer_stop2
    3d18h: cc_api_call_disconnected(vdbPtr=0x62F47D14, callID=0x19, cause=0x10)
    3d18h: sess_appl: ev(11=CC_EV_CALL_DISCONNECTED), cid(25), disp(0)
    3d18h: cid(25)st(SSA_CS_ALERT_RCVD)ev(SSA_EV_CALL_DISCONNECTED)
    oldst(SSA_CS_CALL_SETTING)cfid(-1)csize(0)in(1)fDest(1)
    3d18h: -cid2(26)st2(SSA_CS_ALERT_RCVD)oldst2(SSA_CS_CALL_SETTING)
    3d18h: ssaDiscSetting
    3d18h: ssaFlushPeerTagQueue cid(25) peer list: (empty)
    3d18h: ssa: Disconnected cid(25) state(17) cause(0x10)
    3d18h: ccCallDisconnect (callID=0x19, cause=0x10 tag=0x0)
    3d18h: cc_api_get_transfer_info: (callID=0x19)
    3d18h: ccCallDisconnect (callID=0x1A, cause=0x10 tag=0x0)
    bazhong#sh voice call su
    PORT CODEC VAD VTSP STATE VPM STATE
    ============ ======== === ==================== ======================
    3/0/0 None y S_SETUP_IND_PEND FXOLS_RINGING
    3/0/1 - - - FXOLS_ONHOOK
    Sincerely

    I just received the response from customer engineer about the issue that the problem is the IVR cannot make the correct response to the call from the branch office. the originated caller only hear the normal ring, but can't hear the IVR replied sound just like" welcome to xxx company". Could u tell me how to make the right troubleshooting to solve the problem? I have a question that whether the call can arrive the network gateway correctly, but can't be transferred to the call manager gateway correctly. Wait for your help. Thanks
    Sincerely

  • Can You Help Me ABout getSelectedRow in JTable

    Can you help me on how to solve my problem about the getSelectedRow .....
    I have one JComboBox and a SearchButton
    ... Once I selected an Item in a JComboBox, I will press the SearchButton
    and then it will look up to the database and display it in the JTable..........
    i used the getSelectedRow to print the value that I selected in the table...
    like this...
    public void mouseClicked(MouseEvent e) {
    // Ilabas yung form
    if(e.getClickCount() == 1 ) {
    System.out.println(table1.getSelectedRow());
    In the first press in the SearchButton and then clicking the row
    , It will print the selected row...... but when i press again the SearchButton then clicking a row again........
    there is a problem occured....... selectedRow is always -1, can you help me to solve this.....

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.plaf.metal.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.text.*;
    import java.beans.*;
    public class OpenProject extends JDialog {
         ResultSet rs, rs1, rs2, rs3;
         JFrame JFParentFrame; // create a JFrame
         JFrame OwnerFrame; // create a JFrame
         public JLabel proj_name;
         public JLabel proj = new JLabel("Project Name:");
         public JLabel form = new JLabel("Form Name");
         public JLabel lang = new JLabel("Language");
         public JComboBox form_lang = new JComboBox();
         public JComboBox form_name = new JComboBox();
         public JButton edit = new JButton("Edit");
         public JButton reload = new JButton("Search");
         public JButton def = new JButton("Set Text Default");
         public JButton langs = new JButton("Add Language");
         public JButton exit = new JButton("Exit");
         public JPanel panel1 = new JPanel ();
         public JTable table1, table2, table3,table4;
         public JScrollPane scrollPane1, scrollPane2, scrollPane3, scrollPane4;
         public JTabbedPane UITab,UITab1;
         Container c = getContentPane();
         Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
         public String column[][];
         public String strRow;
         public String strCol;
         public String strForm;
         public String strGetProj_id;
         public String strForm_lang;
         public String strForm_name;
         private boolean DEBUG = false;
         public int getLang;
         public int getForm;
         public int getDef_id;
         public int count2 = 0,count3 = 0,count4 = 0;
         public int row2 = 0,row3 = 0,row4 = 0;
         public int selectedRow1 = 0, selectedRow2 = 0;
         public DbBean db = new DbBean();
         public OpenProject(JFrame OwnerForm, String getProj_id) {
              super(OwnerForm,true);
                   strGetProj_id = getProj_id;
              try{
                   db.connect();
              } catch(SQLException sqlex) {
              } catch(ClassNotFoundException cnfex) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch(Exception e) {
              // Para ito sa paglalagay sa dalawang combo box ng value.......
              try {
                   rs = db.execSQL("Select * from mst_form where form_proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        form_name.addItem(rs.getString("form_name"));
                        //System.out.println(strForm);
              } catch(SQLException sqlex) {
              try {
                   rs = db.execSQL("Select distinct from mst_form where form_proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        form_name.addItem(rs.getString("form_name"));
                        //System.out.println(strForm);
              } catch(SQLException sqlex) {
              try {
                   int counts;
                   rs = db.execSQL("Select * from mst_project where proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        counts = rs.getInt("proj_lang_id");
                        System.out.println(counts);
                        rs1 = db.execSQL("Select * from mst_language where lang_id = "+counts+"");
                        while (rs1.next()) {
                             form_lang.addItem(rs1.getString("lang_name"));     
              } catch(SQLException sqlex) {
              edit.setActionCommand("edit");
              edit.addActionListener(actions);
              reload.setActionCommand("load");
              reload.addActionListener(actions);
              def.setActionCommand("default");
              def.addActionListener(actions);
              langs.setActionCommand("lang");
              langs.addActionListener(actions);
              exit.setActionCommand("exit");
              exit.addActionListener(actions);
              proj_name = new JLabel();     
              proj_name.setBackground(new Color(255,255,255));
              form_name.setMaximumRowCount(5);
              form_name.setBackground(new Color(255,255,255));
              form_lang.setMaximumRowCount(5);
              form_lang.setBackground(new Color(255,255,255));
              proj.setBounds(20, 20,100,20);
              proj_name.setBounds(120, 20,250,20);
              form.setBounds(20, 50,100,20);
              form_name.setBounds(120, 50,150,20);
              lang.setBounds(300, 50,100,20);     
              form_lang.setBounds(380, 50,150,20);
              reload.setBounds(560,50,80, 20);
              edit.setBounds(110,360,115,20);
              def.setBounds(230,360,115,20);
              langs.setBounds(350,360,115,20);
              exit.setBounds(470,360,115,20);
              panel1.add(getTable());
              panel1.setLayout(null);     
              panel1.setBackground(Color.white);     
              panel1.add(proj);
              panel1.add(proj_name);
              panel1.add(form);
              panel1.add(form_name);
              panel1.add(lang);
              panel1.add(form_lang);
              panel1.add(reload);     
              panel1.add(def);
              panel1.add(langs);
              panel1.add(exit);
              panel1.add(edit);
              c.add(panel1);
              setSize(680,420);
              setTitle("Open Project");
              setLocation((screen.width - 590)/2,((screen.height - 280)/2) - 45);
         public JTabbedPane getTable() {
              UITab = new JTabbedPane();
              strForm_lang = form_lang.getSelectedItem().toString();
              strForm_name = form_name.getSelectedItem().toString();
              int count1=0;
              int row1=0;
              try {
                   rs = db.execSQL("Select * from mst_default where def_proj_id = '"+strGetProj_id+"' AND def_category = 'Title'" );
                   while(rs.next()) {
                        count1 += 1;
                        getDef_id = rs.getInt("def_id");
                   column = new String[count1][2];
                   rs1 = db.execSQL("Select form_id from mst_form WHERE form_name = '"+strForm_name+"'");
                   while(rs1.next()) {
                        getForm = rs1.getInt("form_id");
                        System.out.println("getForm");
                   rs2 = db.execSQL("Select lang_id from mst_language WHERE lang_name = '"+strForm_lang+"'");
                   while(rs2.next()) {
                        getLang = rs2.getInt("lang_id");
                        System.out.println("getLang");
                   rs3 = db.execSQL("Select * from mst_default a, mst_translation b WHERE a.def_form_id = '"+getForm+"' AND b.trans_lang_id = '"+getLang+"' AND a.def_proj_id = '"+strGetProj_id+"' AND b.trans_def_id = '"+getDef_id+"' AND a.def_category = 'Title' " );
                   while(rs3.next()) {
                        column[row1][0] = "" + rs3.getString("display_name");          // rowNum ay kung ilan ang row na ilalabas
                   column[row1][1] = "" + rs3.getString("translation"); // Default yung isang array ng column ko, kaya fixed
                        row1++;
                   row1 = 0;
              } catch(SQLException sqlex) {
                   sqlex.printStackTrace();
                   System.exit(1);
              // End
              table1 = new JTable(new MyTableModel()){
              scrollPane1 = new JScrollPane(table1);
              UITab.setBounds(30,100,610,250);
              UITab.add("Title",scrollPane1);
              return UITab;
         class MyTableModel extends AbstractTableModel {     
                   // Pagawa ng header Coloumn
                   String ColumnHeaderName[] = {
                        "Default Text",""+strForm_lang+" Translation"
                   //End
                   public int getColumnCount() {     
                        //System.out.println("The Column Count is" + ColumnHeaderName.length);
         return ColumnHeaderName.length;
         public int getRowCount() {
              //System.out.println("The Row Count is" + column.length);
         return column.length;
         public String getColumnName(int col) {
                        //System.out.println("The Column Name is" + ColumnHeaderName[col]);     
         return ColumnHeaderName[col];
         public Object getValueAt(int row,int col) {
              System.out.println("The value at row and column = " + column[row][col]);
         return column[row][col];
         public int getSelectedRow() {
              System.out.println("Integer" + column.length);
              return column.length;
         ActionListener actions = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   String source = ae.getActionCommand();
                   if (source == "load") {
                        table1.clearSelection();
                        panel1.add(getTable());
                        table1.addNotify();
                        repaint();
                   } else if (source == "default") {
                        dispose();
                        TextDefaultForm form = new TextDefaultForm(OwnerFrame,JFParentFrame);
                        form.setVisible(true);
                   } else if (source == "lang") {
                        dispose();
                        CreateProject lang = new CreateProject(JFParentFrame);
                        lang.setVisible(true);
                   } else if (source == "exit") {
                        dispose();
                   } else if (source == "edit") {
                        if (table1.getValueAt(table1.getSelectedRow(),table1.getSelectedColumn()) != null){
                             formLang lang = new formLang(OwnerFrame,strCol,strRow, strGetProj_id);
                             lang.setVisible(true);
         MouseListener MouseTableListener = new MouseListener() {
                   public void mouseClicked(MouseEvent e) {
                        // Ilabas yung form
                        if(e.getClickCount() == 2 ) {
                             dispose();
                             int col_a = 0;
                             int col_b = 1;
                             selectedRow1 = table1.getSelectedRow();     
                             Object objColumn1 = table1.getValueAt(selectedRow1, col_a);
                             Object objRow1 = table1.getValueAt(selectedRow1, col_b);
                             strCol = objColumn1.toString();
                             strRow = objRow1.toString();
                             formLang lang = new formLang(OwnerFrame,strCol,strRow,strGetProj_id);
                             System.out.println(selectedRow1);
                             System.out.println(strCol);
                             System.out.println(strRow);
                             lang.txtProj.setText(strCol);
                             lang.txtLang.setText(strRow);
                             lang.show();
                        } else if (e.getClickCount() == 1) {
                             table1.setSelectionBackground(Color.blue);
                             table1.setColumnSelectionAllowed(false);
                        table1.setRowSelectionAllowed(true);
                        table1.setFocusable(true);
                             int a = table1.getRowCount();
                             System.out.println("Row Count = " + a);
                             int sel = table1.getSelectedRow();     
                             //if (sel == -1) return;
                             System.out.println("Selected Row = " + sel);
                             System.out.println(table1.isRowSelected(sel));
                   public void mouseReleased(MouseEvent e) {
                   public void mouseExited(MouseEvent e) {
                   public void mouseEntered(MouseEvent e) {
                   public void mousePressed(MouseEvent e) {
         //public static void main(String leo[]) {
              //OpenProject open = new OpenProject();
    }

Maybe you are looking for

  • Problem with inserting Profit Centre in the right Line

    Hello experts something totally weird happened today! withount making any changes on my system, by trying to insert a Profit Center in Banking->Incoming Payment->Incoming Payment while clikcing the tab button on my keyboard, selecting a profit center

  • Linked List question

    Hi, i'm having a bit of a mind blank here and am looking for some help. In my 'College' class i have to delete a student from a course by using there student number as parameter. First i am checking to see if the student is already in the list. I hav

  • Desktop Manager Updated to ver. 5.0 - why is Device Manager tray icon "exit" greyed out?

    Just updated to Desktop Manager 5.0 Blackberry Device Manager 4.7.1.11 BBDevMgr 4.1.0.11 Rim USB Driver 4.1.0.4 Rim USB Serial Driver 2.2.0.3 Before with previous version Device Manager tray icon would go away after disconnecting BB. Now Device Manag

  • Disk permissions ARDAgent

    When running permissions repiar the last comment shown is this: Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired. I am curious to know what this means,

  • GI/ GR IDoc

    Hi, Has anyone implemented IDocs for Goos Issuance and Goods Receipt? Is there a standard idoc for this? Does it have an exit so I can modify the field values? The IDoc I assume would almost be the same as that of ORDERS01 for Purchase Order. Thanks