Method read is blocked!!!!!!!

I programmed a server in JSE and I like to do a client in J2ME, my problem is the server send a few data, the client receives that data but in the last call to read() method it blocks!!!!!!, it doesn't throws any exception.
My server code:
//client is a Socket
input = client.getInputStream();
output = client.getOutputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(input));
PrintWriter ps = new PrintWriter(output, true);
//BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(output));
ps.println("?version");
String version = br.readLine();
System.out.println(version);
br.close();
ps.close();
client.close();
Client code (J2ME):
SocketConnection connection = (SocketConnection) Connector.open("socket://myhost:49900");
InputStream in = connection.openInputStream();
OutputStream out = connection.openOutputStream();
char com = (char) in.read();
StringBuffer comand = new StringBuffer();
StringBuffer error = new StringBuffer();
switch (com) {
case '?':
char ch = 0;
int c=0;
//here receives "version\r\n" and after this the read() method blocks don't return -1
for (int i = in.read(), j = 0; i != -1; i = in.read(), j++) {
System.out.println((char) i + " " + i);
comand.append((char) i);
break;
case '!':
for (int i = in.read(), j = 0; i != -1; i = in.read(), j++) {
error.append((char) i);
break;
System.out.println(comand.toString().trim());
if (comand.toString().equals("version")) {
out.write((version + "\r\n").getBytes());
System.out.println("Version enviada");
}

I see the problem, you are expecting in.read to return -1 when no data is available. As per the documentation, the read method returns -1 when the stream is closed, not when data is unavailable. The stream is not closed and hence the client is blocked (I assumed you already know that the read operation is blocking operation).
At your server side after you write the version to the outputstream using Printwriter (using statement ps.println("?version");), you are expecting input from client. Your client is already blocked, so its not sending out any data. Hence the server is also blocked.
I would suggest have something in your protocol which tells you that server has sent has its bytes and now its client side. For example, server sends out length of the message in lets say first 2 bytes and then the actual message. That way your client implementation will always know how many bytes to expect from the server.
Or use in.available() - which returns the number of bytes that can be read from this input stream without blocking.
Hope this will help you solve your problem.
Atul

Similar Messages

  • Object or Method or Syncronized block : Which one will have lock

    Hi Friends ,
    In Java we can write a Synchronized method or a block .
    In order to access this method or block of code, a Thread has to attain a lock .
    I want to know on what thing did the Thread acquires lock and monitor , Is the lock on the Object or a Method .
    In some tutorials it is said that the Thread will acquire lock on the Object .
    If this is true, how can an another thread access another synchronized method on the same object .
    Thanks

    rajeshreddyk wrote:
    Hi Friends ,
    In Java we can write a Synchronized method or a block .
    In order to access this method or block of code, a Thread has to attain a lock .
    I want to know on what thing did the Thread acquires lock and monitor , Is the lock on the Object or a Method .
    The lock is associated with the object.
    In some tutorials it is said that the Thread will acquire lock on the Object . That is correct.
    If this is true, how can an another thread access another synchronized method on the same object .It can't. That's the whole point of synchronization.

  • I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    I've deleted Adobe Reader 11 and rebooted and reinstalled Adobe Reader 11 and I still get the error message that 'Adobe Reader is blocked because it is out of date'. Using Windows XP with the latest updates (SP3).

    Screenshots attached to email replies will not make it back to the forum; you need to login to the forum and post it in your topic using the camera icon in the editor.
    Google Chrome is a problem:
    if you use Chrome's own PDF viewer, the results are unpredictable.
    if you use the Adobe Reader plugin with Chrome, it may reject (block) it if it is not the latest version.  Reader 11.0.08 is the latest version for Windows XP, but Chrome may insist on the current version 11.0.10.
    My suggestion; use a different browser!

  • ORA-00333: redo log read error block

    ORA-01033: ORACLE initialization or shutdown in progress ...
    / as sysdba
    SQL> shutdown immediate;
    SQL> startup nomount;
    SQL> alter database mount;
    SQL> alter database open;
    ORA-00333: redo log read error block 8299 count 8192
    SQL> SELECT * FROM V$VERSION;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> select group#,members,THREAD, STATUS,ARCHIVED,BYTES,FIRST_TIME,FIRST_CHAGE#,SEQUENCE# from v$log;
    GROUP# MEMBERS,THREAD,STATUS,ARCHIVED,BYTES,FIRST_TIME,FIRST_CHAGE#,SEQUENCE#
    1 1 1 CURRENT NO 52428800 29-FEB-12 1597643 57
    2 1 1 INACTIVE NO 52428800 29-FEB-12 1573462 56
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Feb 29 19:46:38 2012
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 56 Reading mem 0
    Mem# 0 errs 0: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_7LZYZK8S_.LOG
    Wed Feb 29 19:46:40 2012
    Completed redo application
    Wed Feb 29 19:46:40 2012
    Completed crash recovery at
    Thread 1: logseq 56, block 6568, scn 1597642
    270 data blocks read, 270 data blocks written, 1460 redo blocks read
    Wed Feb 29 19:46:43 2012
    Thread 1 advanced to log sequence 57
    Thread 1 opened at log sequence 57
    Current log# 2 seq# 57 mem# 0: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_7LZYZL5V_.LOG
    Successful open of redo thread 1
    Wed Feb 29 19:46:43 2012
    SMON: enabling cache recovery
    Wed Feb 29 19:46:55 2012
    Successfully onlined Undo Tablespace 1.
    Wed Feb 29 19:46:55 2012
    SMON: enabling tx recovery
    Wed Feb 29 19:46:56 2012
    Database Characterset is AL32UTF8
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=19, OS id=3024
    Wed Feb 29 19:47:09 2012
    Completed: alter database open
    Wed Feb 29 19:47:14 2012
    db_recovery_file_dest_size of 10240 MB is 0.98% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Feb 29 20:33:30 2012
    MMNL absent for 1537 secs; Foregrounds taking over
    Wed Feb 29 20:33:31 2012
    MMNL absent for 1540 secs; Foregrounds taking over
    Wed Feb 29 20:33:31 2012
    MMNL absent for 1540 secs; Foregrounds taking over
    MMNL absent for 1540 secs; Foregrounds taking over
    Wed Feb 29 20:33:32 2012
    MMNL absent for 1540 secs; Foregrounds taking over
    Wed Feb 29 20:33:33 2012
    MMNL absent for 1540 secs; Foregrounds taking over
    Wed Feb 29 21:45:24 2012
    MMNL absent for 4318 secs; Foregrounds taking over
    MMNL absent for 4318 secs; Foregrounds taking over
    MMNL absent for 4322 secs; Foregrounds taking over
    Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Wed Feb 29 22:30:01 2012
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows XP Version V5.1 Service Pack 3, v.3244
    CPU : 2 - type 586, 2 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:3097M/3546M, Ph+PgF:5143M/5429M, VA:1943M/2047M
    Wed Feb 29 22:30:01 2012
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    sessions = 49
    __shared_pool_size = 201326592
    __large_pool_size = 8388608
    __java_pool_size = 4194304
    __streams_pool_size = 0
    spfile = C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DBS\SPFILEXE.ORA
    sga_target = 805306368
    control_files = C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    __db_cache_size = 587202560
    compatible = 10.2.0.1.0
    db_recovery_file_dest = C:\oraclexe\app\oracle\flash_recovery_area
    db_recovery_file_dest_size= 10737418240
    undo_management = AUTO
    undo_tablespace = UNDO
    remote_login_passwordfile= EXCLUSIVE
    dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    shared_servers = 4
    local_listener = (ADDRESS=(PROTOCOL=TCP)(HOST=winsp3ue)(PORT=1522))
    job_queue_processes = 4
    audit_file_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\ADUMP
    background_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\BDUMP
    user_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\UDUMP
    core_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\CDUMP
    db_name = XE
    open_cursors = 300
    os_authent_prefix =
    pga_aggregate_target = 268435456
    PMON started with pid=2, OS id=2176
    PSP0 started with pid=3, OS id=2204
    MMAN started with pid=4, OS id=2208
    DBW0 started with pid=5, OS id=2212
    LGWR started with pid=6, OS id=2220
    CKPT started with pid=7, OS id=2240
    SMON started with pid=8, OS id=2460
    RECO started with pid=9, OS id=2464
    CJQ0 started with pid=10, OS id=2480
    MMON started with pid=11, OS id=2484
    Wed Feb 29 22:30:02 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=2492
    Wed Feb 29 22:30:02 2012
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Feb 29 22:30:02 2012
    alter database mount exclusive
    Wed Feb 29 22:30:06 2012
    Setting recovery target incarnation to 2
    Wed Feb 29 22:30:06 2012
    Successful mount of redo thread 1, with mount id 2657657770
    Wed Feb 29 22:30:06 2012
    Database mounted in Exclusive Mode
    Completed: alter database mount exclusive
    Wed Feb 29 22:30:07 2012
    alter database open
    Wed Feb 29 22:30:07 2012
    Beginning crash recovery of 1 threads
    Wed Feb 29 22:30:07 2012
    Started redo scan
    Wed Feb 29 22:30:15 2012
    Errors in file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_2544.trc:
    ORA-00333: redo log read error block 10347 count 6144
    ORA-00312: online log 2 thread 1: 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_7LZYZL5V_.LOG'
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).
    Waiting for Help
    Regards

    Errors in file c:\oraclexe\app\oracle\admin\xe\udump\xe_ora_2544.trc:
    ORA-00333: redo log read error block 10347 count 6144
    ORA-00312: online log 2 thread 1: 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_7LZYZL5V_.LOG'
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).Might your redo log file is corrupted or not exist, check physically. -> C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_7LZYZL5V_.LOG
    is it archivelog mode?
    perform fake recovery and open resetlogs.

  • Reading variable block file

    Hi,
    I have a variable block file which was transmitted from mainframe side.
    When i browse the variable block file in mainframe i can see it as
    !Line 1
    !Line 2
    !Line 3
    but once we transmit the file in Unix box, the file contents appear as
    !Line1!Line2!Line3
    does java differentiate between variable block and fixed block files..
    does java has separate API to read Variable block file

    Ah. Then perhaps the file browser that you use in the mainframe is displaying the data in lines even though there are actually no new-line characters separating the records. For your convenience of course.
    And perhaps there's an option in the mainframe FTP client that can insert those new-line characters if you need them. Although it's quite possible that you don't need them in the Unix system. If the only problem is that you don't see any, then just write your program assuming that there are none.

  • Error 105, Could not read full block (2048 bytes) from checkpoint file ~/dirchk/sdfsdj.cpe

    Hi expert,
        i am getting below error in goldengate  due to mount point full and i released the space and still the same error for all gg processes. i can see the *cpe cpr file become 0 bytes. so i deleted and re added the extract and repliacat and while adding the replcat i used add replicat  checkpoint table because of that multiple entries of same replicat came in checkpoint table . my checkpoint details also  present in ./GLOBALS. now my doubt is if add  replicate with mentioning checkpoint table name  will duplicate entry will be created or what is the work around for this.
    MANAGER RUNNING
    Invalid checkpoint for EXTRACT  qqqq   (error 105, Could not read full block (2048 bytes) from checkpoint file XXXXXXXXX)
    Invalid checkpoint for EXTRACT  qqq(error 105, Could not read full block (2048 bytes) from checkpoint file XXXXXXXXXX)
    Invalid checkpoint for REPLICAT qqq  (error 105, Could not read full block (2048 bytes) from checkpoint file XXXXXXXXXXX)

    Hi Kariyath
    Increase the page size of your windows machine.Check for the recommanded page size.Remember that the recommanded page size should be the lower limit.If you have any issue feel free to ask.Your prob will be solved
    Award suitable points

  • Ora-00333 redo log read error block on 11g express

    Hi all
    I have error
    ora-00333 redo log read error block
    is there any solution for this?
    And I was type
    SQL> recovery database until cancel;
    but error still exist?
    any idea
    regards
    Gordan

    1. Check the OS for performance issues > CentOS 5.6 64 bytes (Space use 9Gbytes of 250gBytes) (Virtual Machine )
    decrease the size of the redo logs > ? How to do this? -- any reference
    set disk_async_io= false in the pfile > ? How to do this? -- any reference
    regards
    Gordan
    Edited by: useruseruser on Oct 25, 2011 9:24 PM
    Edited by: useruseruser on Oct 25, 2011 9:25 PM

  • ORA-00333: redo log read error block 69855 count 8192

    Hello Guys,
    where importing a dump to newly created database 10gR2 on Linux i got this error:
    ORA-00333: redo log read error block 69855 count 8192
    By searching this error, i found that I need to do recovery, but i don't have any backup of this database.
    Is there any easy solution for this error?
    Regards, Imran

    misterimran wrote:
    Hello Guys,
    where importing a dump to newly created database 10gR2 on Linux i got this error:
    ORA-00333: redo log read error block 69855 count 8192
    By searching this error, i found that I need to do recovery, but i don't have any backup of this database.
    Is there any easy solution for this error?no
    00333, 00000, "redo log read error block %s count %s"
    // *Cause:  An IO error occurred while reading the log described in the
    //          accompanying error.
    // *Action: Restore accessibility to file, or get another copy of the file.what additional clues exist with alert_SID.log file?
    do as below so we can know complete Oracle version & OS name.
    Post via COPY & PASTE complete results of
    SELECT * from v$version;

  • ORA-00333: redo log read error block 283081 count 8192

    I am starting the database..it mount but after that it gives me this error
    ORA-00333: redo log read error block 283081 count 8192
    Below are the contents of alert Log.._Please advice_
    Completed: ALTER DATABASE MOUNT
    Tue Jan 20 10:24:45 2009
    ALTER DATABASE OPEN
    Tue Jan 20 10:24:45 2009
    Beginning crash recovery of 1 threads
    parallel recovery started with 2 processes
    Tue Jan 20 10:24:45 2009
    Started redo scan
    Tue Jan 20 10:25:00 2009
    Errors in file /d01/oracle/PROD1/db/tech_st/10.2.0/admin/PROD1_prod1/udump/prod1_ora_32356.trc:
    ORA-00333: redo log read error block 283081 count 8192
    ORA-00312: online log 2 thread 1: '/d01/oracle/PROD1/db/apps_st/data/log02a.dbf'
    ORA-27072: File I/O error
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 4
    Additional information: 283081
    Additional information: 257536
    Tue Jan 20 10:25:16 2009
    Errors in file /d01/oracle/PROD1/db/tech_st/10.2.0/admin/PROD1_prod1/udump/prod1_ora_32356.trc:
    ORA-00333: redo log read error block 283081 count 8192
    ORA-00312: online log 2 thread 1: '/d01/oracle/PROD1/db/apps_st/data/log02a.dbf'
    ORA-27091: unable to queue I/O
    ORA-27072: File I/O error
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 4
    Additional information: 283081
    Additional information: 257536
    Tue Jan 20 10:25:31 2009

    I did what Prabhu told me..But i recovered using backup controlfile and when i was asked to apply logs..i applied my oldest logs and it worked
    Like i have two groups with two members each
    I applied log1a.dbf and it said media recovery completee
    I opened the database But then it started giving me errors for undo tablespace
    I made another undo tablespace..tried dropping the old one but it did not permitted as it had some segments with status "needs recovery"
    Than i added this parameter in pfile with the correupted segment and than tried to drop the segment but it still did not permit
    corruptedrollback_segments =(corrupted_undo segment_name)
    Next what i did was I mounted the database, ran another session of media recovery and opened the databse using resetlogs
    Than i dropped the old undo and it went through successfully..
    If you think anything i did wrong than please advice..
    I hope this action plans helps you in case you come across same errors some day
    I would be very thankful if you can refer me a document of recovery which covers all kinds of recoveries and scenarios and commands too
    Thanks alot

  • ORA-00333: redo log read error block 65538 count 8192

    Hi,
    I wanted to alter user hr's password, but I couldn't open the database first. What should I do? Here is my demo: Thank you for your response.
    C:\>sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Sun May 16 12:12:43 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> connect sys/oracle as sysdba
    Connected.
    SQL> show user
    USER is "SYS"
    SQL> select * from v$controlfile;
    STATUS
    NAME
    C:\ORACLE\ORADATA\SARAH\CONTROL01.CTL
    C:\ORACLE\ORADATA\SARAH\CONTROL02.CTL
    C:\ORACLE\ORADATA\SARAH\CONTROL03.CTL
    SQL> select * from dba_users;
    select * from dba_users
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-00333: redo log read error block 65538 count 8192
    SQL> desc v$instance
    Name Null? Type
    INSTANCE_NUMBER NUMBER
    INSTANCE_NAME VARCHAR2(16)
    HOST_NAME VARCHAR2(64)
    VERSION VARCHAR2(17)
    STARTUP_TIME DATE
    STATUS VARCHAR2(12)
    PARALLEL VARCHAR2(3)
    THREAD# NUMBER
    ARCHIVER VARCHAR2(7)
    LOG_SWITCH_WAIT VARCHAR2(11)
    LOGINS VARCHAR2(10)
    SHUTDOWN_PENDING VARCHAR2(3)
    DATABASE_STATUS VARCHAR2(17)
    INSTANCE_ROLE VARCHAR2(18)
    ACTIVE_STATE VARCHAR2(9)
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    sarah MOUNTED
    SQL>
    *******************************

    I did what Prabhu told me..But i recovered using backup controlfile and when i was asked to apply logs..i applied my oldest logs and it worked
    Like i have two groups with two members each
    I applied log1a.dbf and it said media recovery completee
    I opened the database But then it started giving me errors for undo tablespace
    I made another undo tablespace..tried dropping the old one but it did not permitted as it had some segments with status "needs recovery"
    Than i added this parameter in pfile with the correupted segment and than tried to drop the segment but it still did not permit
    corruptedrollback_segments =(corrupted_undo segment_name)
    Next what i did was I mounted the database, ran another session of media recovery and opened the databse using resetlogs
    Than i dropped the old undo and it went through successfully..
    If you think anything i did wrong than please advice..
    I hope this action plans helps you in case you come across same errors some day
    I would be very thankful if you can refer me a document of recovery which covers all kinds of recoveries and scenarios and commands too
    Thanks alot

  • Could not read boot block (input/output errror) powerbook g4

    Hello
    My friend gave me a powerbook g4 and a copy of osx lion, I would like to install it but the internal hardive is not available within the "select Destination" area of the  installation process. I tried to repair the disk which is labelled Disk0s1, but shortly after it is underway i recieve this message.
    **/dev/disk0s1 could not read boot block (input/output error) Error: The underlying task reported failure on exit. 1 non HFS volume checked, 1 volume could not be repaired because of an error.
    Within disk utilities the Disk01s is grey, I can try to repair it but the above error occurs. Do you know what the problem is and how I can fix it?

    Since you are going to install system fresh, it sounds like, you should erase the drive.  Boot from the installer disc, then select the language but do not start the installer.  From the menu bar, you should have either an Applications or an Installer menu. From one of the menus, you can then start Disk Utility.
    From the drives and volumes pane, select the internal drive hardware listing. 
    This will now allow you to partition or erase the disc.  Now click the Erase tab and select Mac OS Extended (Journaled) as the format and then click the "Erase" button.  You can name the volume that will actually be created, like for instance "MacintoshHD" or whatever you want.)
    Once the erase has completed, you need to check the information for the hard drive at the bottom of the window.  Be sure that the partition scheme is Apple Partition Map.  If for some reason it is something else, like GUID, you won't be able to install MacOS on it.  You will need to click the Partition tab, click the "Options..." button and select Apple Partition Map, then click the "Partition" button.
    Once this is done, then you can quit Disk Utility and you should be able to install Tiger on that HD.

  • Oracle insert transaction - what process reads free blocks?

    Hello,
    I have before me the Oracle insert process described as:
    1. Read the data from the data file
    2. Read a block from the rollback segment
    3. Write redo information that specifies the change to the rollback block
    4. Copy the old data block value to the rollback data block
    5. Write redo information concerning the changes to the table data block
    6. Change the table data block
    At steps 1 and 2 is the reading done by the shadow process (I guess it has to be the shadow process, but can someone please confirm).
    Kind regards,
    Peter

    Hi,
    IMHO,
    There is a difference between "trying to understand" questions and "give me the solution" questions.
    You are following some slides and you do not understand something. That is normal, nobody knows all. Doubts appear. You "research" and you do not find the solution or do not understand it. Use the forum, it is here for that. Perhaps the answer is on the manual, note ... and someone will point it to that.
    Unfortunately, there are other "users" that do not bother trying to find the solution, read the manual ... They have a problem and <i>demand </i>an answer immediately, or they have a job interview in 1/2 hour and they try to "find" the answer without any effort.
    The answer could be the same as in the previous case, but perhaps it is not so useful.

  • MessageException when trying to access method 'read'

    Hi
    I am new to BlazeDS and have hit a problem trying to invoke a method on my service implemented in Java.
    I get a flex.messaging.MessageException complaining that a method 'read' is not avilable. The immediate problem is for me is that there is indeed no 'read' method defined on this service but I do not understand why it is expecting one.
    My environment is Flex Builder 3.0.2, Java 1.5 running on Websphere 6.1.1
    Any help gratefully received - thanks
    The full exception trace is as follows:
    [18/08/09 12:53:02:652 UTC] 00000024 SystemOut O [Flex]12:53:02.652 Exception when invoking service 'application-rpc': flex.messaging.MessageException: Cannot invoke method 'read'. Method 'read' not found.incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
    operation = read
    clientId = E23FB654-E60B-6ED3-8747-6E23EF67FC1A
    destination =
    myService
    messageId = 8CBB8802-AA69-C283-0537-2D9148EEF85B
    timestamp = 1250599979590
    timeToLive = 0
    body = null
    hdr(DSId) = E23FB596-780E-B204-350B-54B006CD5CDF
    hdr(DSEndpoint) = amf
    Exception: flex.messaging.MessageException: Cannot invoke method 'read'. Method 'read' not found.at flex.messaging.util.MethodMatcher.methodNotFound(
    MethodMatcher.java:355)at flex.messaging.util.MethodMatcher.getMethod(
    MethodMatcher.java:163)at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(
    JavaAdapter.java:420)at flex.messaging.services.RemotingService.serviceMessage(
    RemotingService.java:183)at flex.messaging.MessageBroker.routeMessageToService(
    MessageBroker.java:1503)at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(
    AbstractEndpoint.java:884)at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(
    MessageBrokerFilter.java:121)at flex.messaging.endpoints.amf.LegacyFilter.invoke(
    LegacyFilter.java:158)at flex.messaging.endpoints.amf.SessionFilter.invoke(
    SessionFilter.java:44)at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(
    BatchProcessFilter.java:67)at flex.messaging.endpoints.amf.SerializationFilter.invoke(
    SerializationFilter.java:146)at flex.messaging.endpoints.BaseHTTPEndpoint.service(
    BaseHTTPEndpoint.java:278)at flex.messaging.MessageBrokerServlet.service(
    MessageBrokerServlet.java:322)at javax.servlet.http.HttpServlet.service(
    HttpServlet.java:856)at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(
    ServletWrapper.java:966)at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(
    ServletWrapper.java:478)at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(
    ServletWrapper.java:463)at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(
    CacheServletWrapper.java:92)at com.ibm.ws.webcontainer.WebContainer.handleRequest(
    WebContainer.java:744)at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(
    WebContainer.java:1425)at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(
    WCChannelLink.java:92)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
    HttpInboundLink.java:465)at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
    HttpInboundLink.java:394)at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
    HttpICLReadCallback.java:102)at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(
    AioReadCompletionListener.java:152)at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(
    AbstractAsyncFuture.java:213)at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(
    AbstractAsyncFuture.java:195)at com.ibm.io.async.AsyncFuture.completed(
    AsyncFuture.java:136)at com.ibm.io.async.ResultHandler.complete(
    ResultHandler.java:193)at com.ibm.io.async.ResultHandler.runEventProcessingLoop(
    ResultHandler.java:725)at com.ibm.io.async.ResultHandler$2.run(
    ResultHandler.java:847)at com.ibm.ws.util.ThreadPool$Worker.run(
    ThreadPool.java:1498)

    Apologies: bad typing on my part. PRoblem solved.
    Rgds

  • 'System.AccessViolationException' occurred in method 'Read' of class 'OpsDa

    Exception Stack Trace:_
    An exception of type *'System.AccessViolationException'* occurred in method *'Read' of class 'OpsDac'*
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    The stack trace given is: at Oracle.DataAccess.Client.OpsDac.Read(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsSqlCtx, IntPtr& opsDacCtx, OpoSqlValCtx* pOpoSqlValCtx, OpoMetValCtx* pOpoMetValCtx, OpoDacValCtx* pOpoDacValCtx) at Oracle.DataAccess.Client.OracleDataReader.Read()
    Environment Details:_
    Oracle Database- Oracle Database 11g Enterprise Edition Release 1 (11.1.0.6) Patch set 11.1.0.7
    ODP.NET- ODTwithODAC1110621- Oracle Data Access Components for Oracle Client 11.1.0.6.21
    Downloaded ODP.NET from the below link- http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    *.NET Framework* – v3.5
    ORM layer (Object Relation Mapping) - NHibernate (it is the data access layer used in my project- which internally uses ADO.NET in the background)
    Coding Language - C#
    Test Case:*
    I don’t have a particular test case for this exception, but below is the similar code that caused the exception.
    Code:_
    void Main()
    //Placeholder for saving ID of new record that is saved through ADO.
    static decimal ADOSavedObjectID;
    private ADONewTestRecord obj = new ADONewTestRecord();
    //ADO.NET code to save this returns saved object db ID.
    ADOSavedObjectID = SaveThroughADOViaNHibernate(obj);
    //Fetch the Saved record through NHibernate.
    TestNewRecordFromNHibernateViaADO = GetTestRecordThroughNHibernateViaADO(ADOSavedObjectID )
    public decimal SaveThroughADOViaNHibernate(ADONewTestRecord obj)
    //here we have NHibernate API to save the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    public TestNewRecordFromNHibernate
    GetTestRecordThroughNHibernateViaADO(decimal ADOSavedObjectID)
    // here we have NHibernate API to fetch the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    // Exception is raised.
    Please share your thoughts on this exception in ODP.NET, and request me if you need any additional details.
    Thanks

    Hi,
    How often does this occur? Is this consitently reproducible with certain code? Is it always that code that has the problem? Can you generally reproduce this in a test environment?
    For issues regarding 3rd party libraries that cannot be reproduced with a source code testcase, I'd generally recommend testing latest software versions if that's an option.
    If the behaivor still occurs on current versions, it may be best to open a SR with support so we can get some tracing, and also a memory dump of the access violation to see if we can match it to known issues. You can get a memory dump via setting ODP tracing to level 8, or also via the use of adplus, debugdiag, etc.
    Hope it helps, but realize it may not,
    Greg

  • Reading the block message or text from sales order header.

    Dear All,
    Please let me know how to read the block text which is present in the sales order header under texts tab.
    thanks in advance
    regards,
    Shoban

    HI
    Please look intothe follwoing code, which helps you to understand how to read the header slaetext.
      DATA: BEGIN OF text_head.
              INCLUDE STRUCTURE thead.
      DATA: END OF text_head.
    DATA: BEGIN OF TEXT_LINES1 OCCURS 10.
          INCLUDE STRUCTURE TLINE.
    DATA: END OF TEXT_LINES1 .
    DATA: text_id     LIKE thead-tdid     VALUE '0001'.
      DATA: text_spras  LIKE thead-tdspras   VALUE 'EN'.
      DATA: text_name   LIKE thead-tdname.
      DATA: text_object LIKE thead-tdobject VALUE 'VBBK'.
    CALL FUNCTION 'READ_TEXT'
          EXPORTING
            client                  = sy-mandt
            id                       = text_head-tdid
            language                = text_head-tdspras
            name                    = text_head-tdname
            object                  = text_head-tdobject
          TABLES
            lines                   = text_lines1
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.
        CASE sy-subrc.
          WHEN 1. RAISE invalid_id.
          WHEN 2. RAISE invalid_language.
          WHEN 3. RAISE invalid_name.
           WHEN 4. RAISE NOT_FOUND.
        ENDCASE.

Maybe you are looking for

  • N81 How to Show calender at active standby

    Hi, i just bought a N81, but i just cant seem to get the phone to show the calender details for the day at the active standby mode(the main page). I can do it previously on my 6280. Anyone can help?

  • System view is gone!

    Hi all, I want to create a view with a script as following, CREATE VIEW DP_STATISTIC AS SELECT 'S' STAT_TYPE, STATISTIC# STAT_NUM, NAME STAT_NAME FROM V$STATNAME UNION ALL SELECT 'E' STAT_TYPE, EVENT# STAT_NUM, NAME STAT_NAME FROM V$EVENT_NAME; It co

  • Why am i using so much data since downloading IOS8

    why am i using so much data since downloading IOS8

  • PC won't boot. MSI Gaming 7 motherboard had a debug code of 67.

    PC won't boot. MSI Gaming 7 motherboard had a **debug code of 67**. I ran Malwarebytes this morning, it found some stuff, I had it remove them and rebooted. Haven't been able to get my PC to boot since :( When I begin booting, nothing happens at all

  • Adobe Premiere Pro 6 CS Close Captions using Pro 6 CC?

    I have Adobe Premiere Pro 6 CS and need to create Close Captions for a production I'm doing. I know I can't create the Captions on Pro 6 CS but can I create them in Pro 6 CC and import them into the production on the CS side?