Who can help me deal with the question?

My JSP platform is JDK1.3+RESIN1.1.5,whern i write these code ,i found something wrong!
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page info="database handler"%>
<%@ page import="java.lang.*"%>
<%@ page import="java.awt.*"%>
<%@ page import="com.caucho.sql.*"%>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.servlet.*"%>
<%@ page import="javax.servlet.http.*"%>
<%! String username;%>
<%! String password;%>
<%! String sql;%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:jsptest";
Connection conn=DriverManager.getConnection(url,"sa","hulachen");
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
String username=request.getParameter("username");
String password=request.getParameter("password");
sql="select * from tbl_accounts where username='"+username+"' and password='"+password+"'";
ResultSet rs=stmt.executeQuery(sql);
while (rs.next())
String name=rs.getString("username");
out.print(name);
if (name==null)
out.print("error");
else
out.print("welcome");
%>
whether the name is null or not ,it will print error,i don't know why,who can help me?Thanks!

I did the same as you said,but the same thing happened!
the code is:
while (rs.next())
String name=rs.getString("username");
out.print(name);
if (name==null)
out.print("True");
else
out.print("False");
If the name is null,it printed False,but if the name is nothing,it didn't print True,but nothing!

Similar Messages

  • Who can help me to review the question? -"ORA-02019: connection description

    Log error was found in Alert.log file in a DB in our production. It shows "ORA-02019: connection description for remote database not found". I check it and find the RECO process prompt this error message.
    I did the following steps to check the issue:
    1) connect system
    2) SQL> select local_tran_id,global_tran_id,state,mixed,advice,retry_time,os_user,host,db_user from dba_2pc_pending;
    LOCAL_TRAN_ID GLOBAL_TRAN_ID STATE MIX RETRY_TIM OS_USER HOST DB_USER
    8.2.7545 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 oracle DB1 EPORT
    a.8.2.7545
    7.35.9404 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.7.35.9404
    3.47.10637 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.3.47.10637
    1.0.20850 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.1.0.20850
    1.47.21806 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 Administrator WORKGROUP\SZITOWN-013 EPORT
    a.1.47.21806
    3) SQL> select local_tran_id,in_out,database,dbuser_owner,interface,dbid,sess#,branch from dba_2pc_neighbors;
    LOCAL_TRAN_ID IN_ DATABASE DBUSER_OWN I DBID SESS# BRANCH
    8.2.7545 in EPORT N 1 0000
    7.35.9404 in EPORT N 1 0000
    3.47.10637 in EPORT N 1 0000
    1.0.20850 in EPORT N 1 0000
    1.47.21806 in EPORT N 1 0000
    8.2.7545 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    7.35.9404 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    3.47.10637 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    1.0.20850 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    1.47.21806 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    4) I try to commit them by FORCE.
    SQL> commit force '8.2.7545';
    commit force '8.2.7545'
    ERROR at line 1:
    ORA-02058: no prepared transaction found with ID 8.2.7545
    5) It seems no such entry, so I want to purge it.
    SQL> exec dbms_transaction.purge_lost_db_entry('8.2.7545');
    BEGIN dbms_transaction.purge_lost_db_entry('8.2.7545'); END;
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
    ORA-06512: at line 1
    What should I do at the point?? Although the issue do not get any bad effect to current Production, I really hope eveything would be OK.
    Any help from you would be appreciated!!
    Robin

    Hello,
    you have to fix the basic problem,ORA-02019 means your remote database cannot be reached because of an invalid connect string. So it's also impossible to do a COMMIT FORCE,same reason.
    ORA-30019 is due to a bug, document 274321.1 in metalink describes what to do. Here's an extract:
    If you get the following errors while purging transactions using "dbms_transaction.purge_lost_db_entry"
    SQL> EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('5.23.2386');
    BEGIN DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('5.23.2386'); END;
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
    ORA-06512: at line 1
    Fix:
    ===
    This problem is logged as
    Bug.2191458 (unpublished) UNABLE TO EXEC DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY WITH AUTO UNDO MANAGEMENT and is worked by development.
    Use the following workaround:
    You have to use local_tran_id.....
    Issue commit before alter system set "_smu_debug_mode" = 4;
    Follow the steps,
    SQL>commit;
    SQL> alter session set "_smu_debug_mode" = 4;
    SQL>execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('local_tran_id');

  • Is there anyone who can help me to contact the apple customer service? Because i want to know why they are diducted mt credit card more than the amount which is written on there apple store price? They are taken more!

    Why the apple store taken more amount more than the amount written on their prices? Is there any one who can help me to contact the apple customer services. Thanks!

    Some country's might not include tax in their prices, and if you changed or added your credit card details whilst making the purchase then a small temporary holding charge may also have been placed - in which case that should disappear within a few days (http://support.apple.com/kb/HT3702). Some apps also then allow you to make in-app purchases (though you can disable that via Settings > General > Restrictions)

  • My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    Try here >  Can't connect to the iTunes Store
    Try disabling anti virus software and turning off the Firewall.

  • HT1848 How to transfer Ipad music NOT purchased from Apple to Macbook Air. Answers found in the Community does not seem to deal with the questions some members already ask.

    how to transfer Ipad music NOT purchased from Apple to MacBook Air.  Answers found in the Community does not seem to deal with similar questions posted to the Community.

    You can only transfer purchases from iTunes on the iPad into iTunes on your computer. If you bought the music from another source, you need to use the source app to transfer the music, or you need a third party app to transfer the music.
    http://www.wideanglesoftware.com/touchcopy/

  • Who can help - several problems with HDV editing in Premier Elem. 8

    For several years I have edited DV video with Ad. Prem. Elem. 3.0 without serious problems. Now I'm also shooting HDV video and have bought and installed Ad. Prem. Elem. 8 (PE8). To try out PE8 I have started up two projects, but only to be met with several very serious problems. Before buying PE8 I tried a 30 days version of Ad. Prem. Pro on the same PC without problems.
    My PC (from march 2010) is as follows:
    Operating system                   Windows 7 Ultimate 64 bit  (PE8 update is also installed)
    Processor                              Intel(R) Core(TM) i7-930  4x2.8GHz 4.8 GT/s (Gigabyte GA-EX58A-UD3R)
    Ram                                      DDR-3-1333 12GB (Kingston)
    Graphic card                         ATI HD 5870 1GB DDR5 PCI-5 (AMD)
    Harddisc for opr. system  C:   Intel X25-M SSDSA2M080G2GN  80GB
    Harddisc for photo 1.5TB D:  HDS 1500GB SATAII ST31500341 AS (Seragate)
    Harddisc for video 1.5TB E:   HDS 1500GB SATAII ST31500341 AS (Seragate)
    Disc drive                             Plextor BD-R PX-B940SA SATA
    Disc drive                             Samsung DVDWBD SH-B083L
    Software installed                  C:  Office pro/Ad. reader/RegistryBooster/Syst.Tweaker/Canon camera and
                                                 printer software/Q.TimePlayer/AVG free (anti virus)
                                                 D:  ACDSee Pro3/Photosh.Lightroom 2.7/Photosh.Elem. 8.0
                                                 E:  PE8
    Video cameras                       Sony HVR-Z5P (HDV 1080i) / Sony DCR-TVR 10E Pal (DV)
    PROB. 1:  When capturing HDV there is no picture in the Capt. Window and no sound. The window is plain black surrounded with a thin red line, which together with a red dot in the windows upper left corner indicates, that the capture should be taking place. But to the right after the text "Capture:", "Video" and "Audio" with there checkmarks, are only half lighted (not active). Only on the camera screen can I follow, what should be captured. With the mentioned indications, capture sometimes takes place, and sometimes not. This is first to see, when capturing is stopped.Very irritating and time wasting, as many of my clips has a length up to one hour (live music scenes). The Device Control in the Capt. Window is working o.k.. When capturing DV, everything is working all right from both the HDV and the DV camera.
    PROB. 2:  When capturing, "drop-outs", not existing on the tape, but generated in the capt. process, can occur - probably because some other small process takes place on the PC. F.ex. if one is looking around in PE8's Preferences Menu.
    PROB. 3:  The worst thing concerning these "drop-outs" + those eventual existing ones from the tape, is, that after a drop-out the picture/sound no longer are synchronized. From the drop-out and to the end of the clip, the sound is 11-12 frames behind the picture.
    PROB. 4:   When editing/looking at a film in the Monitor Panel, the picture is not very fluent. It is hacking a bit, which makes it very difficult to adjust the lost synchronization (see prob. 3), which I did by moving just the Sound Bar 11 frames in the Timeline, precise from the spot the drop-out had been before it was cut out.
    PROB. 5:  When HDV is played back in the Monitor Panel, the sound is not to be heard the last 10-11 sec. of the last captured clip, although the sound signals are easily seen in the Timeline. After a restart of PE8, it is o.k.
    PROB. 6:  When HDV is played back in the Monitor Panel, it happens, that it suddenly stops unprovoked (none else activity has been done, just looking at the Monitor Panel).
    PROB. 7:  After having just done a few cuts + adding a bit of text + working with the synchronization (see prob. 4) in the two mentioned HDV projects, I burned a Blue-ray disc (BD-RE) of project I, and after adjusting a bit more on the synchronization, I burned one more, both without problems. Then I tried to burn HDV project II, but now the burning window showed several empty little windows (only Rescan/Copies/Status/Quality had text) - the text in "Status" was: "Invalid disc name". That happens both with and without a disc in the drive. Whit a disc in the drive, I tried to Rescan, but each time only to get a warning window saying:"[..\Src\DVD\MPEGEncoder.cpp-121]". By doing anything with "Quality", the same warning turns up. When "Continue" in the warning window is activated, PE8 goes down. I then tried to burn project I again, but although I succeeded burning 2 disces of that earlier, no success - same problem. And again the same with a new third little HDV project, I had made. If I choose to burn a DVD instead of a Blue-ray disc, everything works well.
    PROB. 8:  I'm now so frustrated, that I nearly see no other possibility than to give up, and feel depressed over wasted good money + not getting my projects done. But I still have a little hope, that someone out there are able to help me out - and if you try, please don't write in an all too complicated way, as English is not my language (Danish it is). Just to illustrate my difficulties, it took me nearly 8 hours to put this rapport together.
    Ulf Olsen, Denmark  -  mail. [email protected]  -  tlf. +45 4678 8807 / +45 40 555 888

    It's very difficult to answer several questions at once on a forum, Ulf. Is there any chance you could ask just one at a time?
    As for your installation -- from your notes, it looks like you may have installed Premiere Elements on your E drive. If this is the case, it will not work. You must install the program on your C drive.
    Also, if you can not see video of your capture, it is likely related to an out-of-date video driver. Have you gone to the ATI web site and downloaded the latest driver for your card?
    If that doesn't work, you can always capture your HDV footage with HDVSplit, which is available here:
    http://strony.aster.pl/paviko/hdvsplit.htm
    Also, be sure to go to the Premiere Elements Help menu and select Check for Updates. This will ensure you have the latest patch for the program, which resolves many of the challenges you're experiencing.
    Finally, have you ensured that your video project is using the HDV project preset? One of the most important steps you can take in working with this program is to ensure that your project preset matches your source footage.

  • Who can help by problems with picking?

    Hallo all.
    Last time I asked "How to get the textures name".
    ---- >> I created a box and gave it six various textures. With a mouse event I try to get information about the pick.
    It is possible to get the x,y,z values and other more, but I need the information witch side of the cube is picked.
    The name of the texture (I set it by the creation) is the best for me. But I can't get this data.
    There is a sample program in the java 3d pack. Here you can pick one of several cubes or spheres. Then the pickpoint and the closest vertex is marked. Is it possible to identify the side of a cube?
    Today I want to extend my question.
    I want to get the identity of a picked object from a scene with two or mor objects. (by excample two cubes are shown, one will be picked, the message should by like " cube xxx is picked" cube yyy is not picked..."

    It's very difficult to answer several questions at once on a forum, Ulf. Is there any chance you could ask just one at a time?
    As for your installation -- from your notes, it looks like you may have installed Premiere Elements on your E drive. If this is the case, it will not work. You must install the program on your C drive.
    Also, if you can not see video of your capture, it is likely related to an out-of-date video driver. Have you gone to the ATI web site and downloaded the latest driver for your card?
    If that doesn't work, you can always capture your HDV footage with HDVSplit, which is available here:
    http://strony.aster.pl/paviko/hdvsplit.htm
    Also, be sure to go to the Premiere Elements Help menu and select Check for Updates. This will ensure you have the latest patch for the program, which resolves many of the challenges you're experiencing.
    Finally, have you ensured that your video project is using the HDV project preset? One of the most important steps you can take in working with this program is to ensure that your project preset matches your source footage.

  • Who can help me out with my built-in iSight issue?

    Okay, so I have a question regarding my built-in iSight.
    Now, I know... This question may have been asked before but I just can't find it, I guess it got lost in the mass.
    If you would be friendly enough to forward me the message or instruct me on what I need to do to solve this, that would be a great help.
    Also, I'd like to know if I have to reset anything will I lose everything on my Mac? Should I make an external backup?
    So basically the issue is that whenever I turn on Photo Booth the only thing I get is a black screen.
    The program will let me take a picture, but when I want to see a preview of the image, it's not there.
    I then tried to use my iSight with iChat, which worked perfectly fine. After that I did the same with Skype,
    but Skype didn't let me see anything but black as well.
    Can anyone help me please?? Is this an issue that can be fixed myself or should I bring it to the Apple Store?
    As this is a very important matter to me, because my parents are moving out of the country soon and I would like
    to keep in touch through Skype, I would really appreciate all the help!!!
    Thank you in advance guys!

    abegail.gielen wrote: ... this is a very important matter to me, because my parents are moving out of the country soon and I would like to keep in touch through Skype...
    You have a software problem that will require troubleshooting.  With your parents moving soon, I understand your concern.
    Because you have been unable to correct the problem using the suggestions that are already posted in iSight discussions, I suggest you make an external backup and then take your Mac to the Apple Store for service.
    If you like, the Apple Store may even be able to suggest training that will allow you to troubleshoot and fix future occurrences on your own.
    Message was edited by: EZ Jim
    Mac OSX 10.8.2

  • A StuckThreadMaxTime error; who can help me to analyse the thread dumps

    The StuckThreadMaxTime error freeze my system, no one can logged in.I have double checked the thread dumps, but get no help.
    The following is the thread dumps:
    <2004-12-7 ÉÏÎç05ʱ56·Ö47Ãë GMT+08:00> <Alert> <Log Management> <BEA-170017> <The log file ./myserver/myserver.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <2004-12-7 ÉÏÎç05ʱ56·Ö47Ãë GMT+08:00> <Alert> <Log Management> <BEA-170018> <The log file has been rotated to myserver.log00035. Log messages will continue to be logged in ./myserver/myserver.log.>
    <2004-12-7 ÉÏÎç10ʱ09·Ö32Ãë GMT+08:00> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '10' for queue: 'weblogic.kernel.Default' has been busy for "646" seconds working on the request "com.huawei.oss.rms.resourceaccess.ResourceMgmtSession_1x9h7n_EOImpl", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <2004-12-7 ÉÏÎç10ʱ09·Ö32Ãë GMT+08:00> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default' has been busy for "651" seconds working on the request "com.huawei.oss.rms.resourceaccess.ResourceMgmtSession_1x9h7n_EOImpl", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    <2004-12-7 ÉÏÎç10ʱ09·Ö32Ãë GMT+08:00> <Warning> <WebLogicServer> <BEA-000337> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default' has been busy for "650" seconds working on the request "com.huawei.oss.rms.resourceaccess.ResourceMgmtSession_1x9h7n_EOImpl", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    Full thread dump Java HotSpot(TM) VM (1.4.2 1.4.2.03-040401-18:59-PA_RISC2.0 PA2.0 (aCC_AP) mixed mode):
    "ExecuteThread: '14' for queue: 'JmsDispatcher'" daemon prio=5 tid=01c3f778 nid=71 lwp_id=39624 in Object.wait() [0x61abf000..0x61abf4f0]
         at java.lang.Object.wait(Native Method)
         - waiting on <6d1d24f8> (a weblogic.kernel.ExecuteThread)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <6d1d24f8> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '13' for queue: 'JmsDispatcher'" daemon prio=5 tid=01c3f610 nid=70 lwp_id=39623 in Object.wait() [0x61b40000..0x61b404f0]
         at java.lang.Object.wait(Native Method)
         - waiting on <6d1d2578> (a weblogic.kernel.ExecuteThread)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <6d1d2578> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '12' for queue: 'JmsDispatcher'" daemon prio=5 tid=01c3f4a8 nid=69 lwp_id=39622 in Object.wait() [0x61bc1000..0x61bc14f0]
         at java.lang.Object.wait(Native Method)
         - waiting on <6d1d25f8> (a weblogic.kernel.ExecuteThread)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:153)
         - locked <6d1d25f8> (a weblogic.kernel.ExecuteThread)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:172)
    "ExecuteThread: '11' for queue: 'JmsDispatcher'" daemon prio=5 tid=01c3f340 nid=68 lwp_id=39621 in Object.wait() [0x61c42000..0x61c424f0]
         at java.lang.Object.wait(Native Method)
         - waiting on <6d1d2678> (a weblogic.kernel.ExecuteThread)
         at java.lang.Object.wait(Object.java:429)
         at weblogic.kernel.Eÿ

    "ExecuteThread: '14' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=000883f8 nid=27 lwp_id=39205 runnable [0x630ec000..0x630eb4f0]
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at oracle.net.ns.Packet.receive(Unknown Source)
         at oracle.net.ns.DataPacket.receive(Unknown Source)
         at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:971)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:941)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:432)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:543)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:913)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:452)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2926)
         - locked <762d0bd8> (a oracle.jdbc.driver.T4CPreparedStatement)
         - locked <6c837e90> (a oracle.jdbc.driver.T4CConnection)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:92)
         at com.huawei.oss.rms.persistence.ReadOperationPersistenceImpl.getAttributeValue(ReadOperationPersistenceImpl.java:2054)
         at com.huawei.oss.rms.persistence.PersistenceOperationImpl.getAttributeValue(PersistenceOperationImpl.java:516)
         at com.huawei.oss.services.common.Utility.getNameByID(Utility.java:78)
         at com.huawei.oss.services.port.common.RMSPortUtility.setExtraToVO(RMSPortUtility.java:45)
         at com.huawei.oss.services.port.server.PhyPortConnHelper.setExtraToVO(PhyPortConnHelper.java:2046)
         at com.huawei.oss.services.port.server.PhyPortConnHelper.afterGet(PhyPortConnHelper.java:719)
         at com.huawei.oss.services.common.AbstractResourceHelper.getResource(AbstractResourceHelper.java:293)
         at com.huawei.oss.services.port.server.PhyPortConnHelper.rmsGetByPort(PhyPortConnHelper.java:809)
         at com.huawei.oss.services.port.server.PhyPortConnHelper.rmsGetAllPhyConnOfBoard(PhyPortConnHelper.java:1144)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.huawei.oss.services.common.AbstractResourceHelper.directMethod(AbstractResourceHelper.java:489)
         at com.huawei.oss.services.common.AbstractResourceHelper.invokeMethod(AbstractResourceHelper.java:404)
         at com.huawei.oss.rms.resourceaccess.ResourceMgmtSessionEJB.invokeMethod(ResourceMgmtSessionEJB.java:263)
         at com.huawei.oss.rms.resourceaccess.ResourceMgmtSession_1x9h7n_EOImpl.invokeMethod(ResourceMgmtSession_1x9h7n_EOImpl.java:424)
         at com.huawei.oss.rms.resourceaccess.ResourceMgmtSession_1x9h7n_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    "ExecuteThread: '13' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=00088290 nid=26 lwp_id=39204 runnable [0x6316d000..0x6316c4f0]
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at oracle.net.ns.Packet.receive(Unknown Source)
         at oracle.net.ns.DataPacket.receive(Unknown Source)
         at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.net.ns.NetInputStream.read(Unknown Source)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:971)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:941)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:432)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112)
         at oracle.jdbc.driver.T4CStatement.execute_for_rows(T4CStatement.java:474)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:913)
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:383)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)
         - locked <76c0d1f8> (a oracle.jdbc.driver.T4CStatement)
         - locked <6f1ab788> (a oracle.jdbc.driver.T4CConnection)
         at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
         at com.huawei.oss.rms.persistence.PersistenceOperationImpl.executeSQL(PersistenceOperationImpl.java:2884)
         at com.huawei.oss.rms.persistence.PersistenceOperationImpl.setVersionFlagNResourceName(PersistenceOperationImpl.java:3137)
         at com.huawei.oss.rms.persistence.PersistenceOperationImpl.makeAssociationValue(PersistenceOperationImpl.java:2600)
         at com.huawei.oss.rms.persistence.ReadOperationPersistenceImpl.getResourceAssociationSet(ReadOperationPersistenceImpl.java:2575)
         at com.huawei.oss.rms.persistence.PersistenceOperationImpl.getResourceAssociationSet(PersistenceOperationImpl.java:603)
         at com.huawei.oss.services.port.common.RMSPortUtility.getSlotByEquip(RMSPortUtility.jÿ

  • Has somebody who can help me please  with JavaMail and JSP ?

    I am new in JSP
    And I would wish to create a JSP to send an email with attachment.
    For the compilation of my JavaBeans I use JBuilder 9 Personnel version
    Then I have j2sdk1.4.0
    In C:\j2sdk1.4.0\
    For the installation of the API javamail
    it is necessary to download two jar files Mail.jar and activation .jar
    http://java.sun.com/products/javamail/javadocs/index.html
    it is done!
    then, I copied my two files mail.jar and activation.jar in the directory
    C:\j2sdk1.4.0\lib
    And in
    C:\jBuilder 9 \jdk1.4\lib
    I have family Windows XP
    Then from DOS in the the directory c:\ Documents and Settings\MEBARKIA
    I have to add this line:
    SET CLASSPATH=c:\j2sdk1.4.0\lib\mail.jar;c:\j2sdk1.4.0\lib\activation.jar;
    Finally,
    for a test, I downloaded an example of Javabean from : http://java.sun.com/developer/qow/archive/74/
    the source code is:
    import java.beans.*;
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class XYZMail extends Object
    implements java.io.Serializable {
    private ArrayList mailTo
    = new ArrayList();
    private String mailFrom ;
    private String mailSubject ;
    private String mailMessage ;
    private String mailHost;
    private ArrayList mailAttachments = new ArrayList();
    private Properties props;
    private javax.mail.Session sess;
    private InternetAddress[] address
    = { new InternetAddress() };
    public XYZMail() {
    props = new Properties( ) ;
    props = System.getProperties();
    public long sendMail () throws MessagingException {
    props.put("mail.smtp.host", getMailHost() );
    sess = javax.mail.Session.getDefaultInstance(props, null);
    sess.setDebug( Boolean.valueOf( "false" ).booleanValue() );
    int i = 0;
    MimeMessage msg = new MimeMessage(sess);
    msg.setFrom(new InternetAddress( getMailFrom() ));
    for ( Iterator itr = mailTo.iterator( ); itr.hasNext(); ) {
    address[i] = new InternetAddress((String) itr.next()) ;
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject( getMailSubject() );
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText( getMailMessage() );
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    if ( ! mailAttachments.isEmpty() ) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds=new FileDataSource( (String)
    mailAttachments.get(0) );
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName( (String) mailAttachments.get(0) );
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    msg.setSentDate(new Date());
    Transport.send(msg);
    return 1;
    public ArrayList getMailTo ( ) {
    return mailTo;
    public String getMailFrom ( ) {
    return mailFrom;
    public String getMailSubject ( ) {
    return mailSubject;
    public String getMailMessage ( ) {
    return mailMessage;
    public ArrayList getMailAttachments ( ) {
    return mailAttachments;
    public String getMailHost ( ) {
    return mailHost;
    public void setMailHost ( String host ) {
    mailHost = host;
    public void setMailAttachments ( ArrayList attachments ) {
    mailAttachments = attachments ;
    public void setMailMessage ( String msg ) {
    mailMessage = msg ;
    public void setMailSubject ( String subject ) {
    mailSubject = subject ;
    public void setMailFrom ( String from ) {
    mailFrom = from;
    public void setMailTo ( ArrayList to ) {
    mailTo = to;
    I have all these error messages:
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\mail en ligne 6, colonne 1
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\mail\internet en ligne 8, colonne 1
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\activation en ligne 9, colonne 1
    "XYZMail.java" : Erreur No. 302 : classe javax.mail.Session non accessible ; aucune classe ni source trouv? pour javax.mail.Session en ligne 22, colonne 20
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 23, colonne 9
    "XYZMail.java" : Erreur No. 300 : classe MessagingException introuvable dans classe gestionbadges.XYZMail en ligne 31, colonne 32
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 24, colonne 9
    "XYZMail.java" : Erreur No. 302 : classe javax.mail.Session non accessible ; aucune classe ni source trouv? pour javax.mail.Session en ligne 34, colonne 19
    "XYZMail.java" : Erreur No. 300 : classe MimeMessage introuvable dans classe gestionbadges.XYZMail en ligne 38, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeMessage introuvable dans classe gestionbadges.XYZMail en ligne 38, colonne 23
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 40, colonne 17
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 42, colonne 18
    "XYZMail.java" : Erreur No. 302 : classe Message.RecipientType non accessible ; aucune classe ni source trouv? pour Message.RecipientType en ligne 46, colonne 27
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 50, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 50, colonne 25
    "XYZMail.java" : Erreur No. 300 : classe Multipart introuvable dans classe gestionbadges.XYZMail en ligne 53, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeMultipart introuvable dans classe gestionbadges.XYZMail en ligne 53, colonne 20
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 57, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 57, colonne 25
    "XYZMail.java" : Erreur No. 300 : classe FileDataSource introuvable dans classe gestionbadges.XYZMail en ligne 59, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe FileDataSource introuvable dans classe gestionbadges.XYZMail en ligne 59, colonne 24
    "XYZMail.java" : Erreur No. 300 : classe DataHandler introuvable dans classe gestionbadges.XYZMail en ligne 61, colonne 25
    "XYZMail.java" : Erreur No. 300 : variable Transport introuvable dans classe gestionbadges.XYZMail en ligne 70, colonne 1
    Thanks for your's help!!!!!

    Thank you very much for your answer wew64.
    Yes, I have a local server TOMCAT
    But the problem
    It is on the compilation I do not arrive has to compile my javabean XYZMail java
    With jbuilder 4
    However I have to configure my CLASSPATH on the level of DOS
    And on the variables of enivrements of Windows XP.
    I copied the two files mail.jar and activation.jar everywhere
    In
    C:\j2sdk1.4.0\lib
    And in
    C:\j2sdk1.4.0\jre
    C:\j2sdk1.4.0\jre\lib
    Even case with
    c:\jBuider 4
    thanks.

  • Help to deal with the =Long text(size in the level of Mega ) = in JTextArea

    for general java application, memery is up to a limit memory size.
    And long plain text in JTextArea will cause "java.lang.OutOfMemoryError"
    May be I can use document in JTextArea. But it will be complicate,
    Is there any more easy one to solve this problem?
    Thanks in advance!

    Or, you could try loading the text in segments instead of all of it into memory at once. This is a more user and computer friendly way since then you aren't hogging system resources.

  • The two classes are similar,who can help me to reduce the duplicate code

    /./DoubleFilter Class
    public class DoubleFilter {
        private Vector data = null;
        private String symbol = null;
        private Vector filterData = null;
        public DoubleFilter(Vector _data, String _symbol) {
            data = _data;
            symbol = _symbol;
            filterData = new Vector();
        public Vector filter(Double _value){
            if(_value==null){
                return null;
            if(symbol.equals(Symbol.LESS)){
                return less(_value);
            }else if(symbol.equals(Symbol.GREATER)){
                return greater(_value);
            }else if(symbol.equals(Symbol.EQUAL)){
                return equals(_value);
            }else if(symbol.equals(Symbol.NOT_EQUAL)){
                return notEquals(_value);
            }else if(symbol.equals(Symbol.NOT_LESS)){
                return notLess(_value);
            }else if(symbol.equals(Symbol.NOT_GREATER)){
                return notGreater(_value);
            }else{
                return null;
        private Vector less(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) < 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector greater(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) > 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector equals(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) == 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notLess(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) <= 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notGreater(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) >= 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notEquals(Double _value) {
            for (int i = 0; i < data.size(); i++) {
                Double baseValue = (Double) data.get(i);
                if (baseValue.compareTo(_value) > 0
                        || baseValue.compareTo(_value) < 0) {
                    filterData.add(data.get(i));
            return filterData;
    //IntegerFilter Class
    public class IntegerFilter {
        private Vector data = null;
        private String symbol = null;
        private Vector filterData = null;
        public IntegerFilter(Vector _data, String _symbol) {
            data = _data;
            symbol = _symbol;
            filterData = new Vector();
        public Vector filter(Integer _value) {
            if (_value == null) {
                return null;
            if (symbol.equals(Symbol.LESS)) {
                return less(_value);
            } else if (symbol.equals(Symbol.GREATER)) {
                return greater(_value);
            } else if (symbol.equals(Symbol.EQUAL)) {
                return equals(_value);
            } else if (symbol.equals(Symbol.NOT_EQUAL)) {
                return notEquals(_value);
            } else if (symbol.equals(Symbol.NOT_LESS)) {
                return notLess(_value);
            } else if (symbol.equals(Symbol.NOT_GREATER)) {
                return notGreater(_value);
            } else {
                return null;
        private Vector less(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) < 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector greater(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) > 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector equals(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) == 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notLess(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) <= 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notGreater(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) >= 0) {
                    filterData.add(data.get(i));
            return filterData;
        private Vector notEquals(Integer _value) {
            for (int i = 0; i < data.size(); i++) {
                Integer baseValue = (Integer) data.get(i);
                if (baseValue.compareTo(_value) > 0
                        || baseValue.compareTo(_value) < 0) {
                    filterData.add(data.get(i));
            return filterData;
    }

    additionally I'd remove all but one of the for-loops and call a filter() method on a Filter object that chooses wether to select this item or not
    public interface Filter {
      public boolean select(Object o);
    public abstract class ComparableFilter {
      private Comparable base;
      public ComparableFilter(Comparable base) {
        this.base=base;
    public class EqualComparableFilter {
      public EqualComparableFilter(Comparable base) {
        super(base);
      public boolean select(Object o) {
        return base.compareTo(o) == 0;
    }

  • I have an iPhone4 and require the latest software update 4.3.5 every time i try to get it i get a message error 3194 yet i have the latest software of everything! who can help?

    I have an iPhone4 and require the latest software update 4.3.5 every time i try to get it i get a message error 3194 appears yet i have the latest software of everything it is annoying me cause i cant restore my phone either
    ! who can help?

    look around the forum tons of people repport that they can't update
    makes you suspect that apples update servers can't meet the depand of too many users
    trying to update at once

  • I need to cancel my monthly subscription, i have tried to cancel a few days before but not succeed and then auto-renew my subscription. I almost want to delete my adobe account. I need to cancel my monthly subscription, who can help me?

    I need to cancel my monthly subscription, i have tried to cancel a few days before but not succeed and then auto-renew my subscription. I almost want to delete my adobe account. I need to cancel my monthly subscription, who can help me?

    Cancel the Cloud http://forums.adobe.com/thread/1439535?tstart=0 may help
    or
    Adobe contact information - http://helpx.adobe.com/contact.html

  • Logic doesn't respond anymore! Who can help me?

    Hello,
    I'm using a macbook pro. Soon after I open Logic it wil not respond anymore to commands I give wth the keyboard or the Transport-tool.
    I made no changes (till now it worked fine), I only updaterd iWeb.
    What do I do wrong, or who can help me?
    Hans

    To The Apple Discussion Boards!
    Repair disk from your Tiger DVD.
    Repairing permissions from the Tiger or Leopard DVD
    Boot up from your Tiger DVD while holding down the "c" key.
    Select the language you wish to use, and then choose +"Disk Utility"+ from the menu bar.
    Your HD should appear in a panel on the left hand side of the window which opens. Select it and then click on the +"repair disk"+ button in the right hand section of the window.
    If Disk First aid is able to complete the repair now click on the +"Repair permissions"+ button.
    Once this process has been completed *restart your computer.*
    See Knowledge Base Article: http://support.apple.com/kb/HT1782 Using Disk Utility in Mac OS X 10.4.3 or later to verify or repair disks
    See Knowlege Base Article:
    http://docs.info.apple.com/article.html?artnum=25751 About Disk Utility's Repair Disk Permissions feature
    TIP-You should Repair Permissions & restart:
    After installing and/or updating an OS (Operating System).
    After installing software and updates.
    After burning sessions
    ==============
    Please post back if you still are having issues and/or your issues have been resolved.

Maybe you are looking for