Examples of DriverException


Examples of org.jnode.driver.DriverException

                        log.error("Error starting IDE devices", ex);
                    }
                }
            });
        } catch (ResourceNotFreeException ex) {
            throw new DriverException(ex);
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new DriverException(ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.DriverException

        this.primary = primary;
        IDEDeviceFactory factory;
        try {
            factory = IDEDriverUtils.getIDEDeviceFactory();
        } catch (NamingException ex) {
            throw new DriverException(ex);
        }
        this.io = factory.createIDEIO(parent, primary);

        // Register the irq handler
        final ResourceManager rm;
View Full Code Here

Examples of org.jnode.driver.DriverException

        boolean primary = true;
        IDEBus ideBus;
        try {
            ideBus = IDEDriverUtils.getIDEDeviceFactory().createIDEBus(parentDev, primary);
        } catch (NamingException ex) {
            throw new DriverException(ex);
        }

        // must have length 256 (see IDEDriveDescriptor)
        int[] data = new int[256];
        Boolean atapi = Boolean.valueOf(true);
View Full Code Here

Examples of org.jnode.driver.DriverException

            final DeviceManager dm = dev.getManager();
            synchronized (dm) {
                dm.rename(dev, "sg", true);
            }
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new DriverException(ex);
        }

        this.locked = false;
        this.changed = true;
        this.capacity = null;
View Full Code Here

Examples of org.jnode.driver.DriverException

    @Override
    protected void stopDevice() throws DriverException {
        try {
            unlock();
        } catch (IOException ex) {
            throw new DriverException(ex);
        } finally {
            final SCSIDevice dev = (SCSIDevice) getDevice();
            dev.unregisterAPI(RemovableDeviceAPI.class);
            dev.unregisterAPI(FSBlockDeviceAPI.class);
            dev.unregisterAPI(SCSIDeviceAPI.class);
View Full Code Here

Examples of org.jnode.driver.DriverException

            IDEDeviceFactory factory;
            try {
                factory = IDEDriverUtils.getIDEDeviceFactory();
            } catch (NamingException ex) {
                throw new DriverException(ex);
            }
            log.debug("Creating partition table object on " + dev.getId());
            this.pt = factory.createIBMPartitionTable(bs, dev);
            log.debug("Created partition table object");

            int partIndex = 0;
            int i = 0;
            for (IBMPartitionTableEntry pte : pt) {
                log.debug("Processing partition " + i);
                if (pte == null) {
                    BootLogInstance.get().warn("PartitionTableEntry #" + i + " is null");
                } else if (pte.isValid()) {
                    log.debug("Partition " + i + " is valid");
                    registerPartition(devMan, dev, pte, partIndex);
                }
                partIndex++;
                i++;
            }
            if (!pt.getExtendedPartitions().isEmpty()) {
                // Create partition devices for the extended partition
                log.debug("Extended");
                partIndex = registerExtendedPartition(devMan, dev, partIndex);
            }
        } catch (DeviceAlreadyRegisteredException ex) {
            log.error("Partition device is already known");
            throw new DriverException("Partition device is already known???? Probably a bug", ex);
        } catch (IOException ex) {
            log.error("Cannot read partition table", ex);
            throw new DriverException("Cannot read partition table", ex);
        } catch (NameNotFoundException ex) {
            log.error("Cannot find DeviceManager", ex);
            throw new DriverException("Cannot find DeviceManager", ex);
        } catch (Throwable ex) {
            log.error("Unknown error", ex);
            throw new DriverException("Unknown error", ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.DriverException

            for (IDEDiskPartitionDevice partition : toStop) {
                devMan.unregister(partition);
            }
        } catch (NameNotFoundException e) {
            throw new DriverException("Problem while stopping this IDE device", e);
        }

        dev.unregisterAPI(BlockDeviceAPI.class);
        this.pt = null;
    }
View Full Code Here

Examples of org.jnode.driver.DriverException

            final long length = dev.getSectors() * SECTOR_SIZE;
            this.mapping = new MappedBlockDeviceSupport(parent, offset, length);
            /* Register the FSBlockDevice API */
            device.registerAPI(FSBlockDeviceAPI.class, this);
        } catch (IOException ex) {
            throw new DriverException("Error in MappedBlockDeviceSupport", ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.DriverException

    protected void startDevice() throws DriverException {
        try {
            NFS2Device device = (NFS2Device) getDevice();
            device.getManager().rename(device, device.getId(), true);
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new DriverException(ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.DriverException

    protected void startDevice() throws DriverException {
        try {
            FTPFSDevice device = (FTPFSDevice) getDevice();
            device.getManager().rename(device, device.getId(), true);
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new DriverException(ex);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.