Strange problem with out.flush

Code:
package com.test.servlets;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.io.PrintWriter;
public class MultiThreadTest extends HttpServlet {
  public void doGet(HttpServletRequest req,HttpServletResponse resp) throws ServletException,IOException {
    doPost(req,resp);
  public synchronized void  doPost(HttpServletRequest req,HttpServletResponse resp) throws ServletException,IOException {
    PrintWriter out = resp.getWriter();
    out.println("<p align=center><b>Multi Thread Test</b></p>");
    out.flush();
    try {
      Thread.currentThread().sleep(10000);
    catch(InterruptedException ie) {
      ie.printStackTrace(out);
    out.println("<a href=MultiThreadTest>Multi Thread Test</a><br/>");
}When i shield the out.fulsh() with "//"
The ie println all the text at one time after the sleep time,
So i use out.flush() to fulsh the text which before the sleep().
Then,ie show the "<p align=center><b>Multi Thread Test</b></p>" and then after 10 seconds ,show the ""Multi Thread Test
But the strange thing is ,this time, the ie shows:
<p align=center><b>Multi Thread Test</b></p>
<a href=MultiThreadTest>Multi Thread Test</a><br/>
It displays the HTML source code,why?

G'day mate,
To the best of my knowledge doGet() and doPost() are both already multi-thread enabled, unless your application explicitly implements the "SingleThreaded" interface, which your code doesn't appear to do. As it is the servlet containers 'job' to handle threading issues I wouldn't expect to be able to override the doPost() method without getting strange output.
I reckon your best bet would be to create a javabean from within doPost(), pass it the request and response objects and let it handle the timing...... also set doPost() back to it's default, otherwise only one request will be serviced at a time. If that is what you want to happen then implement the affore mentioned interface.
Hope this helps.
Regards
Davo

Similar Messages

  • Strange problem with Subviews on 1.0 Beta

    Hi,
    I'm having a strange problem with SubViews on 1.0 Beta. I'm not sure If I'm being stupid and have done something wrong, or if there's a problem here.
    My application is directly based on one of the examples, so the structure etc is almost identical. I've simplified the files below to avoid confusing the issue.
    The default landing page (greeting.jsp) looks like this:
    <%@ taglib declarations for HTML and CORE taglibs %>
    <HTML>
    <HEAD><title>Insulation Layer Demo</title></HEAD>
    <body bgcolor="white">
    <f:view>
    <jsp:include page="sysstatus.jsp" />
    <!-- other strictly HTML content -->
    </f:view>
    </body>
    </HTML>
    sysstatus.jsp looks like this:
    <%@ taglib declarations for HTML and CORE taglibs %>
    <f:subview id="SystemStatusView">
    <h:form id="systemStatusForm">
    <p><h:selectboolean_checkbox id="System1Available" value="#{SystemStatus.system1Available}"/>System 1<br/>
    <h:selectboolean_checkbox id="System2Available" value="#{SystemStatus.system2Available}"/>System 2</p>
    <p><h:command_button id="submit" action="success" value="submit" /></p>
    </h:form>
    </f:subview>When I view this page, the checkboxes all seem to work okay (in that their state is preserved across calls etc), but the formatting is very screwy. The resulting page looks something like:
    <chkbox1> <chkbox2> <Submit>
    System 1
    System 2
    <Other HTML content from greeting.jsp>When I look at the HTML source code being generated, it is genuinly being generated as above, that is, all the form tags first, and then the rest of the content. Interestinly, I tried adding a ${SystemStatus.system2Available} into the body text, and it was rendered as literal text (i.e. not evaluated as EL), which is very curious -- makes me wonder if the included file is included as text, rather than JSP, although the custom taglibs and <f:form> tags etc are not in the generated HTML.
    If I lift all the content between the <h:form> tags (inclusive) out of sysstatus.jsp and put it in greeting.jsp in place of the <jsp:include> tag, all is well.
    Any ideas? All help gratefully recieved!
    Thanks,
    Paul

    Personally, I think it is a bug in the rendering model of JSF itself because if you include any non-JSF tags, they don't get rendered according to my understanding of the what the spec says (in the location the tags are written).
    The only workaround that I could come up with is to use straight JSF tags in all of your layers. Things are then rendered the way that they "should" be rendered.
    You could try wrapping all of your HTML tags in <f:verbatim> tags and see if that helps.
    Good luck!
    David

  • Strange problem with ACLs

    Hi,
    I have just migrated an oracle database from 11.1.0.7 on Win Server 2003 to 11.2 on Linux 64 bit. I am having a strange problem with ACLs - I can create the ACL but when I perform either of the following two commands:
    SELECT * FROM DBA_NETWORK_ACLS
    or
    SELECT * FROM NET$_ACL
    I get no rows returned. The ACL exists somehow because if I try and create it again I get the error that it exists. Has anyone got any advice here? Something is out of sync and I need to know how to fix it up.
    Thanks
    Adam

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    PL/SQL procedure successfully completed.
    select * from DBA_NETWORK_ACLS;
    (no rows)
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    ORA-31003: Parent /sys/acls/ already contains child entry email_server_acl.xml
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 2
    Edited by: Adam J. Sawyer on 15/04/2011 17:08

  • Strange Problem with a Vector wraped inside a Hashtable

    Hi all ,
    I'm having a strange problem with a Vector wraped within a Hashtable inherited Class.
    My goal is to keep the order of the elements of the Hashtable so what I did was to extend Hashtable and wrap a Vector Inside of it.
    Here is what it looks like :
    package somepackage.util;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    public class OrderedHashTable extends Hashtable {
        private Vector index;
        /** Creates a new instance of OrderedHashTable */
        public OrderedHashTable() {      
            this.index = new Vector();
    //adds a key pair value to the HashTable and adds the key at the end of the index Vector
       public synchronized Object put(Object key,Object value){      
           index.addElement(key);
           Object obj = super.put(key,value);
           System.out.println("inside OrderedHashTable Put method index size = " + index.size());
           return obj;    
    public synchronized Object remove(Object key){
           int indx = index.indexOf(key);
           index.removeElementAt(indx);
           Object obj = super.remove(key);
           return obj;
    public synchronized Enumeration getOrderedEnumeration(){
           return index.elements();
    public synchronized Object getByIndex(int indexValue){
           Object obj1 = index.elementAt(indexValue);
           Object obj2 = super.get(obj1);      
           return obj2;
       public synchronized int indexOf(Object key){
        return index.indexOf(key);
        public synchronized int getIndexSize() {
            return index.size();
        }Everything seemed to work fine util I tried to add objects using a "for" loop such as this one :
    private synchronized void testOrderedHashTable(){
            OrderedHashTable test = new OrderedHashTable();
            for (int i = 1 ; i<15; i++){
                 System.out.println("adding Object No " + i);
                 String s = new String("string number = "+i);
                 test.put(new Integer(i),s);
                 System.out.println("-----------------------------------");
            //try to list the objects
            Enumeration e = test.getOrderedEnumeration();
            while (e.hasMoreElements()){
                Integer intObj = (Integer) e.nextElement();
                System.out.println("nextObject Number = "+ intObj);
        }Here is the console output :
    Generic/JSR179: adding Object No 1
    Generic/JSR179: inside OrderedHashTable Put method index size = 1
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 2
    Generic/JSR179: inside OrderedHashTable Put method index size = 2
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 3
    Generic/JSR179: inside OrderedHashTable Put method index size = 3
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 4
    Generic/JSR179: inside OrderedHashTable Put method index size = 4
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 5
    Generic/JSR179: inside OrderedHashTable Put method index size = 5
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 6
    Generic/JSR179: inside OrderedHashTable Put method index size = 6
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 7
    Generic/JSR179: inside OrderedHashTable Put method index size = 7
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 8
    Generic/JSR179: inside OrderedHashTable Put method index size = 8
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 9
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 11
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 11
    Generic/JSR179: inside OrderedHashTable Put method index size = 12
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 12
    Generic/JSR179: inside OrderedHashTable Put method index size = 13
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 13
    Generic/JSR179: inside OrderedHashTable Put method index size = 14
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 14
    Generic/JSR179: inside OrderedHashTable Put method index size = 15
    Generic/JSR179: -----------------------------------
    Generic/JSR179: nextObject Number = 1
    Generic/JSR179: nextObject Number = 2
    Generic/JSR179: nextObject Number = 3
    Generic/JSR179: nextObject Number = 4
    Generic/JSR179: nextObject Number = 5
    Generic/JSR179: nextObject Number = 6
    Generic/JSR179: nextObject Number = 7
    Generic/JSR179: nextObject Number = 8
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 10
    Generic/JSR179: nextObject Number = 11
    Generic/JSR179: nextObject Number = 12
    Generic/JSR179: nextObject Number = 13
    Generic/JSR179: nextObject Number = 14
    You can notice that the output seems correct until the insertion of object 9.
    At this point the vector size should be 9 and the output says it is 10 elements long ...
    In the final check you can notice the 9 was inserted twice ...
    I think the problem has something to do with the automatic resizing of the vector but I'm not really sure. Mybe the resizing is done in a separate thread and the new insertion occurs before the vector is resized ... this is my best guess ...
    I also tested this in a pure J2SE evironment and I don't have the same strange behavior
    Can anybody tell me what I am doing wrong or how I could avoid this problem ?
    Thanks a lot !
    Cheers Alex

    Am i doing anything wrong?Uhm, yes. Read the API doc for addElement() and for addAll()

  • Strange problem with color measure in Mac.

    Hello, I am having a strange problem with color measure in Mac. For example i create a gradient in Photoshop from color 200 200 200 to color 240 240 240. When i measure the color of the gradient with the color measure tool of Photoshop or with the built in OS X color measure tool the measured color is from 200 199 197 to 240 240 238. I have measured the same gradient with Photoshop for PC and the values are OK (the same values that i create).
    I dont know what is the problem, but i belive that the colors that i create would be the same that i measure after creating them, and also the same values between Mac and PC. I will appreciate it a lot any help or information that you could give me that helps me to understand what is happening here.
    Thank you for your time
    Marcelo.

    Yep you got it, proof as monitor basicaly strips out any profiling and just delivers it straight.
    is there any way to make the OS X color measure tool to measure the original color values
    You mean the document colors - No, like I said photoshop is filtering your image through document profile, proof setup and monitor profile. Why do you want to use Digital color meter anyway for this?
    i dont understand what is the point to measure color values that will change every time a calibrate my monitor.
    Because color values are 'bigger' than whats on your monitor. Your monitor (via photoshop) is only doing the best it can to display those values - which can be anything from LAB colors outside the gamut of your monitor - to CMYK colors. Calibrating it is the only way to allow your monitor to do this in any way accurately. (not ever really possible) Monitors have a certain gamut and are only dispays/representations of the REAL colors that a document, with a profile, holds. So there's only one good reason to measure monitor values, and that's to generate a monitor profile.

  • Strange problem with Inheritance

    Hi,
    I have a Strange problem with Inheritance which I think should work, but doesn't.
    I have 3 classes in 3 different packages.
    Class A in package 1 is abstract
    Class B extend class A is also Abstract and is in package 2
    Class C extend Class B and is in package 3
    When i do the following
    C c = new C();
    A a = (A)c;
    I get a class cast exception
    Any ideas?
    Jag

    That should work fine. Can you check the exact classes created (using: System.out.println(c.getClass().toString()). You may have accidentally created an instance of a class with the same name but from a different package.

  • Strange problem with DatagramSocket and DatagramPacket.

    Hi!
    I got a strange problem with UDP sockets:
    Client (hardware device) send binary data messages, consisting of bytes and shorts fields (8 and 16 bits). But when I tried to read byte array, received from socket, I got some type anomaly. For example:
    byte[] buffer = new byte[1024];
    DatagramPacket packet = new DatagramPacket(buffer, 1024);
    socket.receive(packet);
    byte[] data = packet.getData();
    System.out.println("Received data:");
    for (int i = 0; i < packet.getLength(); i++) {
      System.out.printf("%h:", data);
    I got such thing: 34:4:fffffff1:ffffffdb:ffffffdc:20:1:1:0:2:50
    If I try to parse it using ByteArrayInputStream and DataInputStream
    ByteArrayInputStream is = new ByteArrayInputStream(packet.getData());
    DataInputStream dis = new DataInputStream(is);
    int head = dis.readByte();
    int recvinfo = dis.readByte();
    short count = (short)dis.readShort();
    System.err.printf("Decoded:\n head: %h\n recvinfo: %h\n count: %h\n",
         head, recvinfo, count);i got following:
    Decoded:
    head: 34
    recvinfo: 4
    count: fffff1db
    So I get Integer entries in byte?! array. I also got Integer even I try to read and cast it as short in short!!! variable.
    Please help!
    P.S. Sorry for my bad English.

    Rather fortunate that it auto-casts(or rather, that 0xFF is int by default, rather than attempting any type-detection as most languages do), as otherwise the brackets would have been in the wrong place. If it was still a byte after the "& 0xFF", sign extension would still occur.
    For the sake of the less bit-literate reading this thread, it should be explained that the reason for this was large bytes being interpreted as negative numbers, which translate to negative int, which in hexa become very large ints. That's about as verbose as I can be about this without writing the equivalent of a wikipedia entry about 2s complement.

  • Strange problem with Dreamweaver Pop-Up menus

    Hello:
    I have encountered a very strange problem with DreamWeaver
    pop-up menus, and I was wondering if I could get some help from
    this forum, as I can't seem to find an answer anywhere else.
    The problem involves use of DreamWeaver's pop-up menu
    behavior — all works as expected, and my local preview of the
    Web page/site works fine, but when I upload the site to a server, I
    see extra question mark and "box" characters added to my drop-down
    menus. This problem is inconsistent between browsers: Sometimes I
    see it only on IE, sometimes I also see it on Firefox.
    For example, check out the following URLs:
    http://libertycreativesolutions.net/clients/cci/
    ... this implementation of drop-down menus ("Services"
    button, etc.) displays an extra "box" character for each of the
    drop-down menu items, but this only occurs in IE -- Firefox is
    fine.
    http://libertycreativesolutions.net/clients/microtek/HTML/MicroTek_home.html
    ... this implementation of drop-down menus shows an extra
    question mark above the triggering link onMouseOver for Firefox,
    and in IE, it shows this "box" character for both the triggering
    buttons and for each menu item.
    For both of these sites, the pop-up menus work without a
    problem *when I'm looking at a local version on my workstation*.
    What in the Wide Wide World of Sports is going on here????
    Any help for this problem is appreciated.
    Note that I stripped out the JavaScript code for menu
    information from the <head></head> area of each of
    these pages and placed it in a linked JavaScript document.
    HELP!

    First, you need to read this, written by the person who
    adapted that menu
    code for Macromedia -
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    Then you need to know that there are MUCH better ways to do
    such things -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Pomond69" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello:
    > I have encountered a very strange problem with
    DreamWeaver pop-up menus,
    > and I
    > was wondering if I could get some help from this forum,
    as I can't seem
    > to
    > find an answer anywhere else.
    >
    > The problem involves use of DreamWeaver's pop-up menu
    behavior ? all works
    > as
    > expected, and my local preview of the Web page/site
    works fine, but when I
    > upload the site to a server, I see extra question mark
    and "box"
    > characters
    > added to my drop-down menus. This problem is
    inconsistent between
    > browsers:
    > Sometimes I see it only on IE, sometimes I also see it
    on Firefox.
    >
    > For example, check out the following URLs:
    >
    >
    http://libertycreativesolutions.net/clients/cci/
    > ... this implementation of drop-down menus ("Services"
    button, etc.)
    > displays
    > an extra "box" character for each of the drop-down menu
    items, but this
    > only
    > occurs in IE -- Firefox is fine.
    >
    >
    http://libertycreativesolutions.net/clients/microtek/HTML/MicroTek_home.html
    > ... this implementation of drop-down menus shows an
    extra question mark
    > above
    > the triggering link onMouseOver for Firefox, and in IE,
    it shows this
    > "box"
    > character for both the triggering buttons and for each
    menu item.
    >
    > For both of these sites, the pop-up menus work without a
    problem *when I'm
    > looking at a local version on my workstation*.
    >
    > What in the Wide Wide World of Sports is going on
    here???? Any help for
    > this
    > problem is appreciated.
    >
    > Note that I stripped out the JavaScript code for menu
    information from the
    > <head></head> area of each of these pages
    and placed it in a linked
    > JavaScript
    > document.
    >
    > HELP!
    >

  • Strange Problem with PAR deployment.

    Hi Everybody,
    I am undergoing with the strange problem with PAR deployment. When I am deploying any Par file its going successful but when again If I am changing this same PAR file in NWDS and deploying it ... its deploying but not showing the updated deployment version. To see the updated version, every time, I have to go Portal->System Admin->Support->Admin Console and DELETE the existing PAR file. But this procedure takes too time to work on each and every time. Can you help me with some new concept where the new deployed version will get updated on previous one without any manual process or if this something related to cache problem then how to work out?
    Thanks,
    Roshan Gupta

    Hi,
    If it saves you time you can also deploy from here:
    .../irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.system.console.ClusterAdminConsole
    In some cases (rarely) I observed the behavior you described above.
    In thoes cases after deploying the file I click the "clean" button on the bottom, since after the deployment it contains the name of the par you just uploaded it'll save you the time of looking for that par to earase.
    After that you have to deploy the par again, but again it's allready in the browse console box.
    Best Regards,
    Nadav.

  • Strange Problem With Extra Spaces

    Hello,
    My development staff is experiencing a very strange problem with our JSP pages which display the values from a JDBC result set. We have two environments here: development and production. We have been creating pages in development which work out fine in our development environment. But when we move the page into production, each value which results from the ResultSet getString() method is having multiple blank spaces appended to the end of the value. So, for example, a 5 digit zip code field is really showing up with a length of 8 or 9 because there are extra spaces added to the end of the value.
    We are able to work around this problem by using the trim() method, but this is getting quite tedious to do to every single page in the site. It is very annoying because the problem does not exist in the development environment.
    So you figure there must be a difference in our development and production environments. But there really isn't. Here is the details for both environments:
    OS: Windows NT 4.0
    Web Server: Apache with Tomcat setup as a plugin
    Database: Sybase ASA 6.0.3
    JDK: 1.3
    Apache and Tomcat were installed from the same download on both servers. Sybase was installed from the same CD on both servers - and the JDBC Driver (SybDriver) was copied from one server to the next.
    Sorry for the long explanation - but does anyone have any idea what could be occurring? Why are the extra spaces being appended to the production pages and not the development pages?
    As always, thanks in advance for any suggestions!
    -- Chris

    Hello Paul,
    Thank you for taking the time to analyze this case.
    The data in the system comes from two different sources. The first source is a nightly feed from a legacy system. The second source is user input via the JSP application. The records that were inserted from the nightly feed have an accurate length() value (meaning there is no untrimmed spaces trailing along.) But the values coming in from the application have extra spaces appended to them. In the development environment, however, both sources provide properly trimmed data.
    If I enter an 8 character last name into the web form in the production app, the value which ends up in the database upon submission will have 2 to 3 extra spaces. I know that this sounds strange - and believe me, it is boggling everyone here. I suspect this problem has to do with the Tomcat installation - even though it was installed identically in each server.
    I think we are just going to have live with using the trim() for every database submission. As always, thank you for the help, and all ideas are always welcome.
    -- Chris

  • Strange problem with jpcap library.

    Hello everone;)
    I have a very strange problem with jpcap. I have ubuntu 8.10, libpcap installed by apt (manually upgraded to 0,9,8) and jpcap 0.7 (installed from deb package).
    My code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package agh;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import jpcap.*;
    import jpcap.packet.Packet;
    * @author iceman
    public class Main
         * @param args the command line arguments
        public static void main(String[] args)
            try
                Tcpdump interfejsy = new Tcpdump();
            catch (Exception ex)
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    //        agh_MainFrame ramka = new agh_MainFrame();
    //        ramka.setVisible(true);
        // TODO code application logic here
    class Tcpdump implements PacketReceiver
        public void receivePacket(Packet packet)
            System.out.println(packet);
        public Tcpdump() throws Exception
            System.out.println("wszedlem do wykazu interfejsow");
            NetworkInterface[] devices = JpcapCaptor.getDeviceList();
            if (devices.length ==0)
               System.out.println("no devices");
            for (int i = 0; i < devices.length; i++)
                System.out.println(i + " :" + devices.name + "(" + devices[i].description + ")");
    System.out.println(" data link:" + devices[i].datalink_name + "(" + devices[i].datalink_description + ")");
    System.out.print(" MAC address:");
    for (byte b : devices[i].mac_address)
    System.out.print(Integer.toHexString(b & 0xff) + ":");
    System.out.println();
    for (NetworkInterfaceAddress a : devices[i].addresses)
    System.out.println(" address:" + a.address + " " + a.subnet + " " + a.broadcast);
    When i start this simple code it isn't working correctly. On the output i have only "no devices". JpcapCaptor doesn't see any mine network interfaces. On windows this code works correctly.
    Anyone has any idea  what is wrong?
    Thanks,
    iiceberg                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi, guys,
    I also have a similar problem but in Windows. I've been using a W2008 Server for a short time. For what I've seen and have been told, it works like a Vista. I've wrote a program which uses jpcap and winpcap and, first of all, gets the device list.
    Well, if I boot my computer and log on with my usual account, which in theory is an administrator, gets 0 devices when I run the program.
    Then, if I log on with the actual Administrator account i works perfectly.
    And, if after logging and running the program with the Administrator account (NOT just logging on) I log on with my usual account, it works too.
    It's like the Adm account has some kind of "top" permission that doesn't go away at logoff. I tried that because I had some other problems accessing the DVD-ROM for writing from my usual account.
    I think that I doesn't happen in WXP, but I haven't tested that last problem, yet.
    Any ideas??
    Thank you.

  • Strange problem with P35 Neo

    Hi there.
    Got a strange problem with a computer that got a P35 Neo system board.
    The problem I got, is that the computer don't boot. If I reset the CMOS,
    I can get the computer to boot, but then it hungs on loading Vista.
    Then I try to repair my Vista. Then the computer hungs while loading the DVD.
    I have tried to boot with only one RAM in the computer, but the problem still
    there...
    I have tried to reset the CMOS by changing the JPBAT (I think it called so) jumper
    and to pull out the battery.
    I have tried to disconnect all, but one HDD and but I can't say that it worked any
    better...
    Any ideas how to find out the error?
    2 x 2 GB Corsair RAM
    Intel dual Core CPU
    Radeon 1950 PCI-E
    1 Samsung SATA HDD
    2 Seagate SATA HDD

    Quote from: BOSSKILLER on 25-August-08, 20:31:15
    What PSU you have? Corsair Powersupply 550W Black, ATX/EPS
    Provide better details about memory sticks used. Corsair TWIN2X 6400C4DHX DDR2
    What CPU? Intel Core 2 Quad Q6600 2.4 GHz
    BIOS version onboard? Note sure, since I'm not right at the computer for the moment. But I think it's 1.0 since it is brand new from store.
    Do memory check with >>Memtest86<< Well, it's kind of difficult, since the computer dont boot.

  • Strange Problem with InKeyset filter

    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());
    Extra code to be Added
    System.out.println(NamedCacheInstance.entrySet(inKeySet).size());
    Always prints 0 eventhoug the keys are present in cache. If i add the following code
    NamedCacheInstance.get(orgDestFlightSubset.toArray()[0]) above printing it gives 1 as a result.
    I am sure that object is in cache becoz cache.get() does not call the DB again
    Can anyone tell me what could be the possible problem?

    Hi,
    user10866091 wrote:
    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);The orgDestFlightSubset must contain keys in Java format which are existing cache keys.
    user10866091 wrote:
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());I assume NamedCacheInstance is a NamedCache instance obtained from CacheFactory.
    In this case you should not call the ensureConverted method. This is called by Coherence on the storage nodes upon deserializing of the filter.
    Try these changes.
    Best regards,
    Robert

  • Strange Problems with Messages

    I've been experiencing some strange problems with Messages.
    1) Sometimes my messages are displayed on screen. I type into the input box and hit enters. Then message disappears and does not show above in the chat box. I later find out that the message was delivered yet it doesn't show up in my chat.
    2) Sometimes I see duplicate Chat windows on the left rail for the same contact, this is usually in conjuction with error #1.
    3) Sometimes I can unable to dlete chat windows. I click the x and it does nothing. I right click and choose Close Chat and it does nothing
    4) When searching the left rail for open chats, the app gets really confused and show strange results, when deleting the search the chat window gets really odd order, nothing to do with sort or recent chats

    Nobody else is experiencing these problems?

  • Strange problems with memory dimms(Banks) in imac 27in mid2010

    Hello dear Apple community. I had a really strange problem with memory dimms(modules anyway)
    I have one really good imac 27in with i7 but as you know after some years the lcd screen became yellowish and cloudy
    So i decided to clean it as i have some knowledge and i did that to others lcd screens with success.
    OK so after successfully cleaning and working like new ( i mean not the external screen with magnets but the lcd internally)i started it.
    Before dismantling my memory was 16gb ( 4x4 dimms)
    After starting it a strange problem arise without any reason! Memory reduced TO 8 GB!!!! memory banks on the right as we seeing it didnt worked at all
    and it was not from dimms because i swapped them..!!!
    So after a lot of thinking and asking tech guys to take a second opinion all the saying (including me that logic board failed for some strange reason.
    Some days before i installed CCleaner and also Onyx because after a lot of installations and uninstallations my mac became a little sluggish..
    I thought that some serious preferences files removed or some hardware settings deleted with Onyx ( is very good and powerful program that can fix the pc and also destroy it in a second) so i removed and reset all preferences. But nothing changed.. So i put a new hard drive and reinstall OXS to see if something can change.
    After formating HD to appleHFS+ saw system profiler that still couldn't see all banks(16gb). I remove logic board and i put another processor i7 that i have as a back up and still nothing( some saying that only these 2 things must be faulty if memory banks not working , processor an logic board and sometimes reinsatlling OS can fix it as i mentioned before. But still nothing...
    So from my nerves and after so much testings and no sleeping for 2 days as it was working i pulled off the memory modules from the right bank i put them again ( off course nothing changed) and i close it. After i restarted it like a miracle finally i saw that i have again 16gb in system profiler!!
    Tech guys here please give me an explanation to this because i gooing crazy! What happened and after i pulled off the dimms while it was working the problem fixed?? It is not recomended at all this action. I forgot to mention that i did Apple hardware test and nothing found..
    Sorry for long post.

    Okay great news...  My memory problems are solved and my Mac Mini is now running at 8 gigs of Ram. I tried the suggested DD3 1333 which  the computer wouldn't even recognize.
    So after visiting the Apple Store in the Fair Oaks VA shopping mall; they suggested that I try DDR3 8500 ram.    I visited Micro Center in Vienna VA, and I purchased BGreg's Suggested Crucial Brand Ram.  10 minutes after I got home the Mac Mini booted on the 1st try with 8 gigs of Ram.
    Some venting that Apple hopefully will read and mention to their resellers....
    The people in the Apple section of MicroCenter in Vienna at first argued that the Mac Mini only supports 4 gigs. EVEN AFTER I SHOWED THEM THE SPECS on the Apple website.  The clerk (who I am calling a clerk because by no means was he a "specialist") even suggested that the Apple site was wrong.  On a later visit to MicroCenter to purchase the DDR3 8500, that the people at Apple recomended; Microcenter even suggested and argued that I needed DDR3 1333 and NOT DD3 8500.  THIS WAS AFTER I TOLD THEM THAT Mac Mini WOULD NOT RECOGNIZE the DD3 1333 Dimms.   Working in retail myself I don't go along with the concept that the customer is always right, however in this instance clearly I was.
    I should point out that some of the staff in Microcenter really do try hard, however like with any business it only takes a few "know it all" bad examples to turn customers off.
    Curious post thought; I wasted about $75 in gas driving to and from Microcenter because of their bad advice. 

Maybe you are looking for

  • How can I draw on a map in Pages?

    I am trying to draw a map of the Old Testament in Pages. Frankly, it is very frustrating. I first of all drew an outline map and scanned it into Pages. Can you not use Pages to draw? Is there a "draw" template somewhere? Is there another piece of sof

  • Automatic Workflow Customisation

    Hi, I have a question related to EHSM system configuration. I have read in a configuration document that during Automatic Workflow Customisation the following setting is required to be done. In SWU3 T Code, Under Maintain Defination Environment, ther

  • How can I mange a wireless router behind a wired router?

    I've got cascading routers configured as recommended in Linksys Answer ID #3733.  Wired router BEFSR41 is closest to Internet and wireless WRT54G  is behind it.  I want to mange the wireless router remotely.  Should routers be on the SAME IP segment

  • Adobe qt32 server cc 2014.0 has stopped working

    Hi, when I exit Premiere Pro I get this popup a couple times (3 to 4 times at random times after I closed PP) It slows down my entire system quite heavily.

  • Business content option and update

    hi    can anyone say teh use of match (x)& copy and simulation result in business content in AWB.    wht is v1 ,v2 and v3 update thanks in advance