JavaFX webEngine method 'executeScript' does not not as planned in Java

Hi all

I hope that I will be able to describe my problem properly.

I use a Java program for collecting JXTA messages and then based on receive messages, add markers to static locations on google maps. I use JavaFx to display google map zoomed on the custom location. I have included locations of marker in the JavaScript function so that the program knows where to place what marker on google maps and on its own, JavaFx code works well.

I want to call webEngine.executeScript ('myJavaScriptFucntion') inside my Java program. I have a listener pipeMsgEvent for tubes JXTA and upon receipt of a particular message, appropriate webEngine.executeScript('myJavaScriptFucntion') should be called and a marker should appear in the map on the time of execution.

This is my code of JavaFx

+ / public class JavaFX_GoogleMaps extends Application {+

public stage;
MyBrowser myBrowser.

public JavaFX_GoogleMaps () + {+

+}+

+ () public static Sub initJavaFX_GoogleMaps {+
Launch ("Hello");
+}+

+@Override+
+ ' public void start (course primaryStage) {+
primaryStage.setTitle ("my app");

myBrowser = new MyBrowser();
scene = new scene (myBrowser, 800, 600);

primaryStage.setScene (scene);
primaryStage.show ();
+}+
+}+
+ class MyBrowser extends the region {+

HBox toolbar;

public static final WebView webView = new WebView();
public static final WebEngine webEngine = webView.getEngine ();
final button = new Button ("add a reference");

+ public MyBrowser() {+
final urlGoogleMaps URL = getClass () .getResource ("googlemaps.html");
webEngine.load (urlGoogleMaps.toExternalForm ());
toolbar = new HBox();
toolbar.getChildren () .addAll (button);
getChildren () .add (webView);

+ Button.setOnAction (new EventHandler < ActionEvent > () {+)
+@Override+
+ ' public void handle (ActionEvent t) {+
putMarker();
+}+
+});+
getChildren () .add (toolbar);

+}+

+ public static void putMarker() {+
MyBrowser.webEngine.executeScript ("addJFCmarker ()");
+}+
+}+

and in my Java program I call first

JavaFX_GoogleMaps.initJavaFX_GoogleMaps (); in the main method

and then I call inside the pipeMsgEvent() method

MyBrowser.putMarker ();


When I run the program there is no error, no warning and no exceptions. Except that when my message is received no marker is placed on the google map.

To check, if my code works, I placed a button (add the marker) in my JavaFx code and called the same function of putMarker() in EventHandler for button. When I click on the button the markers are displayed on the map exactly as I want them.

Then of course there is a problem when I call putMarker() in my Java program, even if I get no error, exception or warning. I think that when I call MyBrowser.putMarker () method a new MyBrowser instance is created and call goes to this instance, but this new instance has no window display the pitch of its own output appears.

In any case I hope I explained my problem, so any suggestion on what should I do to get the markers displayed from Java code?

--
Kind regards

Imran

Published by: 1008054 on May 26, 2013 10:57

You must watch this line to understand what is null (it will be a reference on which you call a method) and why.

It seems that you have all kinds of problems in the present code. Your main method instantiates an object of type MyApp, which you called CAN, and then calls methods on it. Then call launch (args). The launch (...) method will instantiate another instance of MyApp, call init(), then call start (...), according to the [url http://docs.oracle.com/javafx/2/api/javafx/application/Application.html] javadocs for the Application. Yet once, it will not be the same instance of MyApp as the one on which you called startCAN() and fetch_advertisements(), so the effects of these methods will probably never be seen.

So, I'm guessing a bit here, but if startCAN() a thread start to turn, which calls your pipeMsgEvent (...) method, which will try to call myBrowser.putMarker (). This will give a NullPointerException as myBrowser is never initialized for the CAN. (myBrowser is initialized in the start (...) method and start (...) is never called for the CAN, he is invoked for the instance created by the launch (...) method.)

Tags: Java

Similar Questions

  • CPHA does not suggest planned order for item used below Phantom

    Hi all

    We have an article buy which is used in the Nomenclature for a ghost.

    We do not get planned order is created for the item to buy it. We checked for SL, ASL and point level configuration for purchase that looks very good.

    Note - MRP_NEW_PLANNER_BACK_COMPATIBILITY is set to null which is equal to n

    Concerning

    Hello

    We have the question, the supplier that has been associated with the point to buy was not get collected in CPSA causing the problem

    In addition, we have raised SR with Oracle to find out why the provider is not get collected

    Concerning

  • Missing Bootcamp after the utility disk partition El Capitan (solitary method T) does not

    I have no idea what I'm doing with all orders of the terminal and a hard time to fix this problem. I tried to disable the ISP but command not found. I don't mind delete windows and re do bootcamp with windows 7pro64. Help, please

    Terminal of OSX, please after the release of

    diskutil list

    Cs diskutil list

    sudo fdisk/dev/disk0

    sudo TPG - vv - r see the/dev/disk0

    What year/model is your Mac?

  • Method reference does not work with the Decorator pattern

    Hi all!

    I faced a problem, when I use the reference of the method in function in Collectors.groupingBy I get an error: "no suitable method found to collect. But! If I replaced the method with a lambda expression reference, everything works fine.

    Here is the code example:

    interface Iface{
        public int getPropertyOfClassA();
        public void setPropertyOfClassA(int propertyOfClassA);
    }
    
    class A implements Iface{
        private int propertyOfClassA;
    
        @Override
        public int getPropertyOfClassA() {
            return propertyOfClassA;
        }
    
        @Override
        public void setPropertyOfClassA(int propertyOfClassA) {
            this.propertyOfClassA = propertyOfClassA;
        }
    }
    
    class B{
        private A objectA;
    
        public int getPropertyOfClassA() {return objectA.getPropertyOfClassA();}
    }
    
    class C extends B {
        int propertyOfClassC;
    
        public int getPropertyOfClassC() {
            return propertyOfClassC;
        }
    
        public void setPropertyOfClassC(int propertyOfClassC) {
            this.propertyOfClassC = propertyOfClassC;
        }
    }
    
    public class example {
        public static void main(String[] ars){
            List<B> listOfB = new ArrayList<>();
    
            Map<Integer, List<B>> groupedByPropertyOfClassA = listOfB
                    .stream()
                    .collect(Collectors.groupingBy(C::getPropertyOfClassA));
        }
    
    }
    


    Change 'C::getPropertyOfClassA' with "objC-> objC.getPropertyOfClassA ()" and it works!

    Any ideas?

    You have astream. Not all B is a C, so you cannot apply a method of C to each item (even if this method is defined in B).

    This also works if change you it to

    collect(Collectors.groupingBy(B::getPropertyOfClassA));
    
  • JavaFX 8 - Voletfractionne setDividerPosition does not work!

    Hello

    After resizing my window, I want my Voletfractionne dividers are changed (I like to keep the same ratio for the divisors (0.4f for the first 0.6f for the second) it's resizing my window).

    so I use setDividerPosition to set the positions of the dividers.

    Unfortunately, they are not changed that they keep their old values (in this case, the initial values)!

    In fact, I feel that, for setDividerPosition, is not applied.

    Can you help me please!

    Kind regards

    FM

    Thanks, I use this work around, and it's true!

  • Safari does not start; El capitan &amp; java problem?

    Hello.

    Firstly, my computer froze several times so I had early use the off button to restart.

    I had several concepts that I had to install a different JRE, javaforOSX.dmg. Did.

    Now Safari is unbootable, so I can't change Safari Safari > Preferences or.

    Now what to do?

    Thanx

    and then when I tried to restart the mac (thinking that might work), he refused due to a safari running that can't be stopped somehow. What a mess!

  • Epson Stylus dx5000 printer/copier/scanner does not print or copy, scan only.

    Original title: epson stylus dx5000 printer/copier/scanner

    This device is not printing or copying.

    This device is only scanning.
    I continue to be told that the spooler does not work, then stop and restart.
    Did it many times.
    Still no results.
    Epson genuine ink in the printer.

    Hi Carolina,.

    1. What is the operating system installed on your computer?

    2. you get any error message?

    Printing problems can be caused by cables that are not properly connected, corrupt, drivers, incompatible drivers, the printer settings, missing updates and problems with your printer. To resolve this problem, use the following methods in the order in which they are presented. If method 1 does not resolve your problem, go to the next method.

    Please follow the methods and check if it works very well.

    Method 1
    Follow the steps from the link:

    Solve printer problems

    http://Windows.Microsoft.com/en-in/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-7&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Method 2

    Clear printer spooler files and select the spooler service.

    Step 1
    a. Click Start, type "Services.msc" (without the quotation marks) in the Open box and click OK.
    b. double click on "Printer Spooler" in the Services list.
    c. click on stop, and then click OK.
    d. Click Start, type "% WINDIR%\system32\spool\printers" in the opened window and delete all the files in this folder.

    Step 2

    You must be logged on as administrator to perform these steps.
    a. open administrative tools by clicking the Start button, then Control Panel. In the search box, type administrative tools, and then click Administrative Tools.
    b. double-click on Services. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    c. right-click on Print Spooler serviceand then click Properties.
    d. on the general tab, next to startup type, make sure that automatic is selected.
    f. e. the service is not already running, under Service status, click Start and then click OK. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • After installing the Vista SP2, IE 8 does not work well.

    After installing Vista SP2, IE 8 under my.live.com does not work.  The pages do not FLOW RSS download, links on the page at the top are not active and usually IE has out crapped.  I went to run a complete Internet security suite uninstall Trend Micro and put it in a plain Jane anit-virus program.

    I would like to keep the functioning of IE8, but switch to FireFox, if I need to see my RSS STREAM or do some serious web browsing.

    In addition, Live Messenger is no longer connect either.

    Is there a way I can safely roll back my system to SP1?  I can't live without Vista SP2.

    Hi Geekster,

    Please use the forum for Support of Vista,

    IE 8 is not a part of Vista SP2.  You can remove SP2 without removing IE8.

    Here are the steps to uninstall SP2
    Method 1: Uninstall the service pack of Windows Vista by using the programs and features item in the easiest control panel to uninstall a service pack for Windows Vista is to use the programs and features in Control Panel. To uninstall the service pack of Windows Vista by using the programs and features in Control Panel, follow these steps:

    1. Click Start, type Appwiz.cpl in the Start Search box, and then click Appwiz.cpl in the programs list.

      If you are prompted for an administrator password or a confirmation, type the password, or click continue.
    2. Click view installed updates.
    3. Click the service pack that you want to uninstall, and then click Uninstall.

      If you don't see the option to uninstall for Windows Vista service pack in the list, go to method 2.

    4. Follow the instructions that appear on the screen to complete the uninstallation.

    If method 1 does not allow to remove SP2, try different method in this article:
    http://support.Microsoft.com/kb/948537

    Let us know if this helps,

    Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I can't connect to my Internet because my wireless connection does not have an ip address send solutions please

    My os is windows xp professional sp3, this problem occurs with my computer of homebase and a laptop, however, works very well with a second laptop

    operating system windows 7 no probs with ip address or whatever it is help please

    Hi Petertomblin,

    ·         You receive an error message or error code?

    ·         Did you do changes on the computer before the show?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest you to consult the article in the Microsoft Knowledge Base and check.

    Unable to connect to an access point wireless with Wi - Fi Protected Access update installed

    http://support.Microsoft.com/kb/821442

     

    Method 2: If the method above does not help then you can see the article mentioned below and check if the problem persists.

     

    You cannot connect to a wireless network access point that uses authentication shared from a Windows XP-based computer or a Tablet PC Windows XP Tablet PC 2005 Edition

    http://support.Microsoft.com/kb/884787

    Let us know if that helps.

  • Volume D: is dirty. Check Disk Local Disk d does not solve the problem

    Whenever I start my computer under WindowsXP SP3, chkdsk runs indicating that the D: Volume is dirty.  He noted no other problems.  I tried to run check disk Local Disk d with two checked options, but it does not solve the probem.  What should I try next?

    That is right.

    First of all, let us look at the ideas of the Microsoft support engineer:

    I would never not follow the suggestion of Microsoft Engineer in method 1.  This idea makes no sense.

    The Microsoft Support Engineer method 2 does not work for you (or most people), unless you have a XP installation CD bootable authentic with the same Service Pack as your installation.  In your case, you would need a true bootable XP with SP3 installation CD and most of the people do not have such an animal.  It is therefore extremely unlikely that will help you at all - and if your file system is damaged or dirty, I of course never suggests that in the first place until your file system is straightened.

    Volumes that contain file system errors is known as "Sales". When a volume is dirty, he has known file system errors, and you must run chkdsk on the volume to repair the problem.

    When XP starts, it automatically checks the on each volume's dirty bit (C, D, E, etc.), and if any volume is dirty, XP will automatically run chkdsk/p on next reboot on the volumes in an attempt to clear the dirty bit.  Which does not clear the bit of impurity or it may take several passes.

    If the volume dirty bit, one is set, this indicates that the file system may be in an inconsistent state. The dirty bit can be set because the volume is online and has some remarkable changes, because changes have been made to the volume and the computer shutdown until the changes have been committed to disk, or because corruption has been detected on the volume. If the dirty bit is set when the computer restarts, chkdsk runs to verify the consistency of the volume.

    Whenever you start a computer that is running one of the Windows XP operating system or the Windows Server 2003 family, autochk.exe is called by the kernel for all volumes to check if the volume dirty bit is set. If the dirty bit is set, autochk performs an immediate chkdsk /f on that volume. Chkdsk /f verifies file system integrity and attempts to fix any problems with the volume.

    A simple power interruption is something that could result in a disc was marked as dirty.  Have you had a power failure these days?

    You can query the dirty bit on a volume from the command prompt window.  Here's how:

    Click Start, run and enter in the box:

    cmd

    Click OK to open the command prompt window.

    For example, to query the bit of impurity on drive D, type:

    fsutil dirty query D:

    The sample output:
    Volume D: is dirty
    Volume D: is not dirty

    Type "exit" to close the command prompt window.

    You can not enter any command to clear the dirty bit - only chkdsk /r or chkdsk/p can clear the dirty bit.

    When chkdsk runs automatically restart either because XP thinks he needs to (perhaps your NTFS volume has been marked as dirty) or you decide to schedule the chkdsk with error correction during the next reboot, the results appear in the viewing Application event log.  You should look there for the chkdsk log to see what happened and no problems after running chkdsk.

    To view the logs in Event Viewer, click Start, settings, Control Panel, administrative tools, event viewer.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    %SystemRoot%\system32\eventvwr.msc

    Click OK to launch the event viewer.

    Search the Application log for an event originally by Winlogon, something like:

    Event type: Information
    Event source: Winlogon
    Event category: no
    Event ID: 1001
    Date: 04/08/2010
    Time: 11:25:57
    Description:
    Checking file system on C:

    The type of the file system is NTFS.

    One of your disks needs to be checked for consistency. You
    may cancel the disk check, but it is strongly recommended
    that you continue.

    Windows will now check the disk.

    Cleaning of minor inconsistencies on the drive.
    CHKDSK checks Usn Journal...
    Audit of the USN Journal is complete.

    39070048 KB total disk space.
    28017948 KB in 100571 files.
    56540 Ko 10556 index.
    0 KB in bad sectors.
    236440 KB in use by the system.
    65536 KB occupied by the log file.
    10759120 KB available on disk.

    4 096 bytes in each allocation unit.
    9767512 total allocation on the drive units.
    2689780 allocation units available on disk.

    Windows has finished checking your disk.
    Please wait while your computer restarts.

    The dirty bit fade not until chkdsk /r (or chkdsk/p) tracks clean when the system reboots (as in the example) or when you run chkdsk /r from the XP Recovery Console.

    Many times, the best remedy is to just run chkdsk /r from the XP Recovery Console so you can actually see what it does.  Sometimes, this also seems to be the only way to clear the dirty bit and this way you can see what he does.

    Note that you can not also question the bit of impurity of the Recovery Console and you can't turn off the bit of impurity to enter any command.

    If for some reason chkdsk will not erase the dirty, you can simply say XP never check the volume dirty bit, but who will not fix your fault of potentially hard drive, or it could be the drive just need to have chkdsk run on that (sometimes you need to run it more than once) or you will have to think about replacing the drive.

    If you have a genuine XP bootable installation CD, you can boot into XP from that (even a SP2) Recovery Console CD will work and run chkdsk /r manually from there and repeat until chkdsk /r is clean.

    If you have a genuine XP bootable installation CD, say so and I'll post instructions so you can make a CD of XP Recovery Console and how to run chkdsk from there.   There is no required XP media.

    I wonder why it is that I have never see an engineer Microsoft Support post instructions on how to make a bootable CD of XP (no XP media required) Recovery Console... probably because there is no KB article for them to post.

  • USB device not recognized... Unplug the thing does NOT work

    It baffles me that THOUSANDS of people have this problem, or a variant of it, and no ONE at Microsoft or elsewhere also offers a real solution. Unless of course you want to count the method "unplug your computer", which is the most foolish band-aid for a problem I never heard, even if it works for a lot of people (most). I, unfortunately, am one of those for which the "disconnect" method magic does NOT work. I tried everything what all other posters and responder suggested (BIOS upgrade, change Legacy BIOS definition Enable to disable to activate again, driver updates, uninstall all USB, full power down and restart hours later, use CMD prompt to show only devices, etc.) and do not know what else to try. I would really like to see a REAL answer as to the cause of the majority of the questions posted about the USB error outside the usual "restore your settings, use your restore disk, unplug it, replace your USB key, etc etc etc. HEY! MICROSOFT! SOLVE THE PROBLEM! OR, Hey, here's an idea, a news for you, I'm sure that... don't they exude products until they have been tested (NO! I mean really, fully tested [see XBox 360 RROD])

    In case anyone reading this is a real working solution, I'm on a Toshiba A135-S2386, Vista Home, and each USB port is unusable on any device. All ports feeds the device and noise sounds to indicate that a USB device was attached and then proceeds to the display of the error "USB device not recognized" and shows and shows an unknown device connected. It does this for any USB device.

    FINALLY: PLEASE PLEASE PLEASE DO NOT POST A REPLY IF YOU USED THE METHOD OF "DISCONNECT", AND IT WORKED. Grats to you for fixing your computer, but I can just not read another 400 posts of "wow it worked for me great fantastic" when it does NOT work for everyone. I need something new and real. (Sorry to be all grumpy, but I'm tired of these kinds of problems from companies making billions off the coast of junk, defective, half finished, produced a car!) "You listen to Bill?)

    UPDATE: just ran a scan of the system file Confirmation via an administrator command prompt and it's clean...
    ALSO - was not that before, but now whenever I do a complete power down / reboot thing that it gives me a "Bad Checksum" error and I have to reset the date and time in the BIOS. I need to change the battery in MB? As I said it did not have this before and the USB error was produced, but could this be the problem? Bad battery MB CMOS?

    The bios of your motherboard is probably damaged.

    step 1. See if you can find a previous version of the bios of your motherboard and return date of the bios.

    step 2. Find the latest version of the bios of your motherboard and update your bios.

    Do not use a registered version of your current version.

    To check the problem is the motherboard or operating system. find something like a live Ubuntu CD

    http://www.Ubuntu.com/desktop/get-Ubuntu/download.

    or

    Make a Ultimate Boot CD for Windows

    http://www.UBCD4Win.com/index.htm you are using windows xp or borrow a copy to UBD4WIN.

    Both of the above run in memory (does not load on hard drive.

    Both a bit slow, but are excellent tools.

    Works like a normal computer.

    If you can see you USB devices, magicjack, ETC. your BIOS is not corrupt or motherboard problem.

    In normal windows if you see not the USB devices, magicjack, etc your windows install is corrupt.

    Reload Windows of difficulty.

    If you you do not see the magicjack, USB devices, ETC., your BIOS is corrupt motherboard or other problem.

    Redo your BIOS as described above.

    All other unwanted do not work , he was done !

  • Why pc does not start, and the windows logo hangs after installing the update?

    often, I can't start my computer after installing updates. I push the button the windows logo hangs and windows did not start so I manually press the button close. After I press the button again the Startup Repair tool appears so I can get the windows works normally. but happening permanently since buying the laptop 2 years ago, but not after every updates. It happens randomly.

    Hello

    Method 1:

    I suggest you to use the Windows Vista disc to perform a Startup Repair:

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Startup-Repair

    Method 2:

    If the method above does not help then you can check the link below and check the troubleshooting steps to resolve the problem.

    http://support.Microsoft.com/kb/934540

  • Problem the multifaceted - Security Center does not respond / in IE8 Google searches are redirected / cannot attach files to MSN emails (browser blocks) HELP!

    My problem is two (or three) times; Windows Security arrested Esentials closed and not would again be turned on; Windows Security Center is disabled and will not respond to all the methods of the market; IE 8 sends all Google search clicks to redirect pages and makes the back browser arrow almost impossible to use. E-mail MSN will not accept all attachments - blocks the browser window.  I uninstalled Security Essentials and reinstalled nothing doesn't.  Have gone to Spybot and Adaware and installed these programs and run them to "clean" the everything unwanteds but re-boots of a Security Center right back. No idea at all what to whether on programs related to the re - search on Google.  Uninstalled and installed the final license, two of them I had to Norton 360.  This program after hours of in-depth analysis has nothing found was not in the line of virus, worm, or whatnot.  Help! It's maddening.  Any suggestions?  Thank you.

    Hi ChazboK,

    1. are you able to send attachments to other webmail?
    2. What is the size of the attachment that you join?

    Note: you should never have more than one security program installed on the PC, providing active protection / scan. This can cause performance problems, system instability and may adversely affect the effectiveness of these two products to provide protection.

    Scenario 1:

    I suggest you to disable any program of security on your computer and check if the browser redirects.

    After reviewing the question you must reactivate the security on your computer program.

    Note: run the computer without antivirus software or firewall is a potential threat to the computer; Be sure to activate security software after completing the troubleshooting steps and after identifying the problem.

    Step 2:

    Second, the problem may be caused by an add-on corrupted in Internet Explorer. To confirm the same, run Internet Explorer in safe modules mode, and check if the problem persists.

    Open Internet Explorer in mode without modules,

    a. click the Start button, click all programs.
    b. click on accessories.
    c. click System Tools.
    d. then click Internet Explorer (No Add-ons).

    If disabling all add-ons solves the problem, you can use the add-on Manager to disable all add-ons and then turn on modules only as needed. This will allow you to figure out which add-on is causing the problem.

    Remove the damaged module and restart Internet Explorer normally and check if the problem reappears.

    After you have used this process to determine which add-on causes errors, you can disable this add-on. Or, you can uninstall the software that installs the add-on. We also recommend that you contact the software vendor that provided the add-on for additional troubleshooting and support.

    Step 3:

    If the method above does not resolve the problem, then I suggest you to perform an optimization of Internet Explorer on your computer and find the number.
     
    How to optimize Internet Explorer
     
    http://support.Microsoft.com/default.aspx/KB/936213
     
    Warning: him reset Internet Explorer settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

    Scenario 2:

    If you are able to send attachments to other webmail then, I suggest you to contact MSN support.

    https://support.MSN.com/default.aspx?WA=wsignin1.0&St=1&wfxredirect=1

    You can also refer:

    http://www.Microsoft.com/protect/terms/hijacking.aspx

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows 7.0 Pro does not recognize my USB 2.0 Hub 7-Port

    INFORMATION ABOUT THE PRODUCT HERE

    I understand that there should not be the need for a driver, but it will not just be shown.  It's a hub powered alternative btw, not a piece of cheap plastic.  Suggestions?

    Hello

    Thanks for posting your query in Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You did it any significant hardware or change software on the computer before this problem?
    2. What is the brand and model number. your computer?

    I understand that the USB device is not detected by your computer. The question may arise if the currently loaded USB driver has become unstable or damaged or if your PC requires an update for problems that could conflict with a device USB and Windows. This can also occur if your USB controllers may have become unstable or corrupt. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Please try the fixit (s) provided below which will help you solve common problems associated with devices and USB ports.

    If method 1 does not work, try Method 2.

    Method 2:

    Remove and reinstall all USB controllers.

    1. Open Manager devices by clicking the Start button, click Control Panel, click system and security, and then, under System, clicking Device Manager. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    2. In the list of the categories of equipment, locate and expand Bus USB controllers.
    3. Right-click every device under the Bus USB controllers node and then click Uninstall to remove them one at a time.
    4. Restart the computer and let the USB controllers get reinstalled.
    5. Plug in the removable USB device and test to make sure that the problem is solved.

    If the problem persists, go to method 3.

    Method 3:

    Disable USB selective suspend framework. This method prevents your power off USB device.

    1. Click the Start button, type power management in the search box, and then click choose a power plan.
    2. Next to your currently selected plan, click Change Plan settings.
    3. Click change advanced power settings.
    4. Click in the box USBsettings, and then expand the USB selective suspend settings.
    5. Click on the area, and then click the menu drop down and select disabled.
    6. If you use a laptop, click the cell, and then click the menu drop down and select disabled.
    7. Click apply, and then click OK.

    If your problem still exists, go to method 4.

    Method 4:

    This method will install the latest drivers from device to your USB device.

    1. Click the Start button, type Windows Update in the search box, and then click Windows Update in the results pane.
    2. Click find updates. When the scan finished, click optional review updates.
    3. Click the check box next to the update, and then click install updates.
    4. If you are prompted, read the license agreement, then click I agree.
    5. Follow the instructions on the screen to download and install updates.
    6. If you are prompted, restart your computer.

    More information: Update a hardware driver that is not working properly

    If the device fails after updating the driver, you can try to roll back the driver with its previous version.

    Restore a driver with its previous version

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • Acer Aspire laptop computer does not start

    Lites button power screen stays black, the system tries to start, but he keeps power button light turns off.  I have a new disc of windows 7 32 & 64 bit.  I have the disc as a dvd before I turn on the power button.  With the new windows 7 dvd of 20 to 30 seconds to place power turns off.

    Anyone with knowledge of this problem would be grateful.

    Thanks in advance

    Hello Mojo,

    Thanks for posting your query in Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You did it any significant hardware or change software on the computer before this problem?

    2. What is the brand and model of your computer?

    3. What are the troubleshooting steps you have tried so far?

    I understand that you are unable to start your Windows 7 system. To prevent your system from automatically restart, try to access the menu advanced startup options by turning on your computer and pressing the F8 key before Windows starts. Select the option disable automatic error system reboot. Also, I suggest you try the following steps of diagnostics to verify if you are able to reach the office in one of the following modes methodical.

    Method 1:

    Please follow the underlying steps:

    Step 1. Disconnect all external devices except the keyboard and mouse.

    Step 2 I would like to start your computer in last known good configuration.

    If method 1 does not work, go to method 2.

    Method 2:

    Step 1: Try to start your system in a State of services necessary to the operation and a minimum set of drivers enabled, called Safe Mode.
    Start your computer in safe mode

    Step 2: If the system works fine in safe mode, try to clean the system startup:

    How to perform a clean boot in Windows

    Note: See "How to reset the computer to start normally after a boot minimum troubleshooting" to reset the computer to start as usual after a repair.

    If method 2 does not work, go to method 3.

    Method 3:

    As you cannot start your computer at all, I suggest to run a Startup Repair to repair the damaged boot system files and try to boot into normal mode. See the section: How to use Startup Repair in the following link.

    Startup Repair: frequently asked questions

    If this does not help, try to boot from a disc to install Windows 7 on the Windows recovery environment mode and then try to run the Startup Repair tool and check if you are able to start normally.

    If the problem persists, proceed to method 4.

    Method 4:

    You can use the Bootrec.exe tool in the recovery Windows (WINRE) environment to troubleshoot and repair the following items in Windows Vista or Windows 7:

    • A master boot record (MBR)

    • A boot sector

  • A Boot Configuration data (BCD) store

  • Note: When you are troubleshooting startup issues by using the Windows RE, you should first try the Startup Repair option in the System Recovery Options dialog box. If the Startup Repair option does not resolve the problem, or if you must troubleshoot more steps manually, use the Bootrec.exe

    Use the Bootrec.exe tool in the Windows recovery environment to troubleshoot and repair startup issues in Windows 

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

Maybe you are looking for

  • TouchSmart 600xt Audio performance

    I have horrible performance with audio driver problems in my 600xt.  When the music plays in any audio player, playback becomes slow and jerky when do almost anything in another application.  For example, scroll a Web page in a browser, or a new page

  • How can I check to see if my cell phone is compatible with Bluetooth?

    original title: how DO I KNOW IF I CAN USE BLUETOOTH on MY LAPTOP? OR HOW DO I GET IT? HELP ME PLEASE...! :) I have a NETBOOK ASPIREONE, WINDOWS XP HOME EDITION PK 3... U NEED OTHER INFO... PLEASE LET ME KNOW... I THANK CBSA

  • Re-install OEM for different motherboard?

    My OEM installation has developed material defects, I noticed on such as EBAY it is sellers with certificates of authenticity for the "PC decommisioned. Can I change my old motherboard for a new one and re-install my XP Pro SP3 OEM and activate.

  • CMD prompt does not work!

    How to reset the TCP/IP address?

  • Configuration with Speedtouch 5 x 6 and WRT54G

    Hello I have a WRT54G, I have an internet connection that is connected via a Modem Speedtouch 5 x 6. I tried to configure my router wireless with automatic DHCP configuration, I can't access the internet. Can someone please help me with this Setup, I