Clone device major/minor number?

hi all,
say 'y' is the clone of 'x'(pseudo device) and after add_drv if i observe in /devices/pseudo the y's minor number is equal to major number of x ,correctly as per framework.That means minor numbers are unique for both.
But whereas in the driver module when i tried to
display the major/minor number using getmajor() and
getminor() functions in open routine, it is showing
the same minor/major numbers for both the devcies.
Why?
i tried to open the devices one after the other
without closing the first device.
say
open("/dev/x" O_RDWR);
open("/dev/y" O_RDWR);
any help will be highly appreciated.
thanks in advance
vasu

//need more info on this.......what are these x and y? how did you create them? and how are they linked to your pseudo minor nodes in /devices/pseudo directory .
if x and y are symbolically linked to the same minor nodes, then you get the same major and minor numbers.

Similar Messages

  • [SOLVED] Unable to determine major/minor number of root device - USB

    I installed Arch on a USB harddrive of mine from within VirtualBox with the intention of running the installation (via the drive) on a laptop in my house. I passed through the drive through by creating a special vmdk (here - it's for "expert users only". ) and installed Arch on it by booting off the Arch 2011.08.19 iso and following the instructions. I do recall the installer complaining because /sbin/mkinitcpio was missing, so I copied over the one from the host (which is also an up-to-date Arch system). After that, everything worked and I was able to boot the drive within virtualbox.
    Then I went and plugged it in to another laptop in the house and, surprisingly (for me at least), it got past GRUB. My joy was short-lived, because it failed just a bit later:
    :: Running Hook [udev]
    :: Triggering uevents...done.
    ERROR: Unable to determine major/minor number of root device 'Waiting 10 seconds
    for device /dev/disk/by-uuid/[the uuid] ...
    /dev/disk/by-uuid/(the uuid)'.
    You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
    sh: can't access tty: job control turned off
    [ramfs /]#
    So I googled around for a while and plugged it back in to my computer, booted it up in virtualbox, and added "usb" to the HOOKS array right after udev in /etc/mkinitcpio.conf. Then I rebuilt the initramfs:
    # mkinitcpio -p linux
    So I plugged it back into the laptop, booted it, and got the same error.
    Later, in an attempt to isolate the problem, I removed "sata" from HOOKS, ran the same mkinitcpio command again, and rebooted the VM. I got what looked like the same error as the one above. yay. So I guess the usb hook isn't being loaded or something like that. (I've since added the "sata" hook back and rebuilt the initramfs so I can mess around in the VM )
    I've tried removing autodetect from HOOKS (saw that in some threads) and trying different USB ports on the laptop, but nothing seems to be working. I also checked to see if virtualbox was providing a bogus uuid or something, but the one it's specifying seems to be correct - I looked in my computer's /dev/disk/by-uuid and it matched.
    Info on the drive (first partition is /boot, second is swap (derp!), third is /, and fourth is /home):
    # sudo fdisk -l /dev/sdg
    Disk /dev/sdg: 500.1 GB, 500107861504 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773167 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00016b3d
    Device Boot Start End Blocks Id System
    /dev/sdg1 * 63 208844 104391 83 Linux
    /dev/sdg2 208845 4417874 2104515 82 Linux swap / Solaris
    /dev/sdg3 4417875 209230559 102406342+ 83 Linux
    /dev/sdg4 209230560 976768064 383768752+ 83 Linux
    Screengrab of my VirtualBox storage setup (just for giggles):
    My /etc/mkinitcpio.conf:
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run first, so it may be used to
    # override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten if already added)
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options
    # like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## This is identical to the above, except the old ide subsystem is
    ## used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev pata mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    # Tried this line instead -- didn't work either
    #HOOKS="base udev usb autodetect pata scsi sata filesystems usbinput"
    HOOKS="base udev usb sata filesystems"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
    # compression.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    My GRUB menu.lst:
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/sda (hd0)
    # /dev/sdb2 (hd1,1)
    # /dev/sda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # for more details and different resolutions see
    # https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/disk/by-uuid/b4a677d0-cb0d-4acd-bb09-2dc2f4b9501f ro
    initrd /initramfs-linux.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/disk/by-uuid/b4a677d0-cb0d-4acd-bb09-2dc2f4b9501f ro
    initrd /initramfs-linux-fallback.img
    # (2) Windows
    #title Windows
    #rootnoverify (hd0,0)
    #makeactive
    #chainloader +1
    Last edited by UncleNinja (2011-12-02 15:33:21)

    UncleNinja wrote:
    skunktrader wrote:https://bugs.archlinux.org/task/27385
    Perfect! Thank you!
    Would it be safe to copy over the version from HEAD into my mkinitcpio?
    EDIT: nevermind, derp derp the package is updated
    EDIT again: Actually, it's not.
    I copied over the init_functions in HEAD into /lib/initcpio/init_functions and rebuilt the initramfs. It worked!
    Thanks guys!
    Last edited by UncleNinja (2011-12-02 15:35:20)

  • [Solved]Boot from USB HDD - Root device doesn't exist. Major/minor

    My problem is that the kernel seems (or starts) to load, but then I get an error:
    Root device 'UUID=1234 . . .' doesn't exist.
    Attempting to create it.
    ERROR: Unable to determine major/minor number of root device "UUID=1234 . . .'
    You are being dropped into recovery shell
    I found a few links on the web and in the forums, but nothing that really solved it for me. The solved ones usually downgraded the kernel.  I haven't done that yet.  I thought I'd try here first.
    I have a 320GB USB HDD that I have been using to experiment with different linux distros.  I have a few working successfully (OpenSUSE,Mint,Ubuntu,Debian,Fedora,etc).  I'm very new at this but have been reading a lot and putting a lot of time into it.  I have legacy grub loaded on the MBR and use the menu.lst on my openSUSE partition to boot everything.  Because the partitions for some of the distros are so far into the disk I needed to create directories on openSUSE's /boot directory to contain the kernel and initrramfs files (like /boot/fedora).  This seems to work for the other distros.  I did the same thing for Arch.
    So when I installed Arch I haven't used the bootloader section of the installation.
    I'm using the 2011.08.09-netinstall-i686.iso Live CD.
    I tried a few things including:
    1.    changing the HOOKS in /etc/mkinitcpio.conf
        a.    adding usb to the "HOOKS"
        b.    removing and adding autodetect
        c.    adding and removing "sata_sil" (although I'm not even sure if my device uses it)
    2.    changing the kernel line:
        a.    from using "UUID=" to (hd0,1) to sdb1.
        b.    added rootdelay=8
    3.    repartition all of my arch partitions using cfdisk from my Live CD and reinstall. I used gparted on OpenSUSE to do it the first time.
    This may be connected. When I fdisk -l from the Arch Live CD I get extra data and an error for each of my arch partitions (and only my arch partitions):
    Disk does't contain a valid partition table
    When I fdisk -l from OpenSUSE I don't get the data paragraphs or errors about the arch partitions?
    Here is my /etc/fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    UUID=0e7556ef-b832-43e9-a8ba-c68dd2cd6143 /var reiserfs defaults 0 1
    UUID=510bb601-13c1-46ec-87c0-a800dd2efb8b / ext4 defaults 0 1
    UUID=cd78ab04-742d-4ba5-9727-90727de2dd14 swap swap defaults 0 0
    UUID=dc5685e3-35b0-46d4-b259-61f2530ff36a /home ext3 defaults 0 1
    And my HOOKS:
    HOOKS="base udev autodetect pata scsi sata usb filesystems usbinput"
    And my menu.lst:
    1
    default 0
    timeout 32
    gfxmenu (hd0,1)/boot/message
    ###openSUSE on sda2 - legacy grub
    title openSUSE 11.4 - Celadon - gnome
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.7-default root=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part2 resume=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part1 splash=silent quiet showopts nomodeset vga=0x314
    initrd /boot/initrd-2.6.37.6-0.7-default
    ###openSUSE failsafe on sda2 - legacy grub
    title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.7
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.7-default root=/dev/disk/by-id/usb-Seagate_FreeAgent_GoFlex_NA0E702X-0:0-part2 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.37.6-0.7-default
    ###floppy###
    #title Floppy
    # rootnoverify (fd0)
    # chainloader +1
    ###Fedora on sda5 - legacy grub
    title Fedora 15-Lovelock gnome
    root (hd0,4)
    configfile /boot/grub/grub.conf
    ###Mint on sda6 - grub2
    title Mint 9 Lucid Lynx gnome
    root (hd0,5)
    kernel /boot/grub/core.img
    savedefault
    boot
    ###PCLinux on sda7 - legacy grub
    title PCLinuxOS 2011.6 KDE
    root (hd0,6)
    chainloader +1
    ###Ubuntu on sda8 - grub2
    title Ubuntu 10.04.2 gnome
    root (hd0,7)
    kernel /boot/grub/core.img
    savedefault
    boot
    ####arch on sda10 - legacy grub
    title ARCH
    root (hd0,1)
    #root UUID=XXXXXXXXXX44c5a3cd-dcb5-4cf1-933e-7a8ebac2a992
    kernel /boot/arch/vmlinuz-linux root=UUID=510bb601-13c1-46ec-87c0-a800dd2efb8b ro rootdelay=8
    #kernel /boot/arch/vmlinuz-linux root=(hd0,9)
    #kernel /boot/arch/vmlinuz-linux root=/dev/sda10
    initrd /boot/arch/initramfs-linux.img
    savedefault
    boot
    ###Debian on sda11 - grub2
    title Debian 6.0.2.1 squeeze gnome
    root (hd0,1)
    kernel /boot/debian/vmlinuz-2.6.32-5-686 root=UUID=2b6052e2-ecdf-4796-81c8-b9e9142ca159 ro
    initrd /boot/debian/initrd.img-2.6.32-5-686
    savedefault
    boot
    ###Mandriva on sda12 - legacy grub
    title Mandriva 2011 KDE
    root (hd0,1)
    kernel /boot/mandriva/vmlinuz-2.6.38.7-desktop-1mnb2 root=UUID=5033f7fb-cac7-4db5-920c-c8bd2b51365f ro
    initrd /boot/mandriva/initramfs-2.6.38.7-desktop-1mnb2.img
    savedefault
    boot
    Here is my fdisk -l from OpenSUSE.  I'm not quite swift enough to mount the hard drive and use the script utility from the Live CD yet, at least not tonight:
    Disk /dev/sda: 320.1 GB, 320072932864 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142447 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000c3bbb
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 4208639 2103296 82 Linux swap / Solaris
    /dev/sda2 4208640 46153727 20972544 83 Linux
    /dev/sda3 46153728 87113727 20480000 83 Linux
    /dev/sda4 87115770 614031755 263457993 5 Extended
    /dev/sda5 87115776 128075775 20480000 83 Linux
    /dev/sda6 128077824 169037823 20480000 83 Linux
    /dev/sda7 169039872 209999871 20480000 83 Linux
    /dev/sda8 210001920 250961919 20480000 83 Linux
    /dev/sda9 250963968 291923967 20480000 83 Linux
    /dev/sda10 291924031 332886015 20480992+ 83 Linux
    /dev/sda11 332888064 373848063 20480000 83 Linux
    /dev/sda12 373848678 414992383 20571853 83 Linux
    /dev/sda13 414994432 435474431 10240000 83 Linux
    /dev/sda14 435474495 455956829 10241167+ 83 Linux
    /dev/sda15 455958528 578881535 61461504 b W95 FAT32
    /dev/sda16 578881599 614031755 17575078+ 83 Linux
    Disk /dev/sdb: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x95aa95aa
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 63 294889139 147444538+ 7 HPFS/NTFS/exFAT
    /dev/sdb2 294889140 312576704 8843782+ 7 HPFS/NTFS/exFAT
    That's it for now.
    Last edited by newbie55 (2011-09-23 22:19:58)

    I'm IN!  Thanks everyone for your suggestions!
    The arch system didn't like the identifier I was using for the root partition. By looking at the /dev/disk/by-id while the arch system was running, I could see what the system wanted me to call the partition.  So after the system error'd-out and I was in the recovery shell at the [ramfs /] prompt:
    # ls -lF /dev/disk/by-id > by-id.txt
    # vi by-id.txt
    I could have used any of the identifiers listed in the by-id (there were 3), by-uuid(1), by-label(1) or by path(1). I tried them all. I had to write these down by hand because it is a ram filesystem.
    The article that finally got me there is:
    https://wiki.archlinux.org/index.php/Pe … ice_naming
    Anyway my openSUSE grub menu.lst ended up like this:
    ####arch on sda10 - legacy grub
    title ARCH
    root (hd0,1)
    kernel /boot/arch/vmlinuz-linux root=/dev/disk/by-uuid/510bb601-13c1-46ec-87c0-a800dd2efb8b ro rootdelay=8 rootfstype=ext4
    initrd /boot/arch/initramfs-linux.img
    savedefault
    boot
    It's easy once you: 1. beat your head against the wall
                        2. read further
                3. repeat 1 and 2
    Back to the "Beginner's Guide",4 Post-Installation.  Yikes!

  • On HP-UX 11g rac cluvfy tool failed with "/dev/async"  (incorrect setting for minor number.)

    Hi ,
    We are planing to upgrade our 10g R2 CRS to 11g R2 CRS on HP-UX server ,while running cluvfy tool we are getting the below error.Please help me to fix this issue.
    Checking settings of device file "/dev/async"
      Node Name     Available                 Comment
      erpdev04      yes                       failed (incorrect setting for minor number.)
      erpdev03      yes                       failed (incorrect setting for minor number.)
    Result: Check for settings of device file "/dev/async" failed.
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    oracle.oracle.erpdev03.fwprod_app1> (/app/oracle/oracle_source/patches/bin)

    # /sbin/mknod /dev/async c 101 0x104

  • Help, how can I create the minor number if

    I know my device path is c0t3d2s2. eg. how can create a minor number which will be used as an input to makedevice() based upon the above info. Thanks in advance.

    Hi!
    The primery thing under Solaris is /device tree. The entries in this
    directory, so called device special files or minor nodes, are created when drivers
    attached/loaded, usually in attach routine.
    The device special files are created under /devices with a help of
    ddi_create_minor_node. There is a way to create compatibility links
    under /dev like /dev/dsk/c0t3d2s2. How to do it?
    Each minor node has so called "node type" (see:
    ddi_create_minor_node(9F), /usr/include/sys/sunddi.h).
    Solaris has programs family (devfsadm in S8) to make links into /dev,
    according "node type"
    /usr/sbin/disks - makes links for "node type" = DDI_NT_BLOCK
    /usr/sbin/tapes - makes links for "node type" = DDI_NT_TAPE
    /usr/sbin/ports - makes links for "node type" = DDI_NT_SERIAL
    /usr/sbin/audlinks - for "node type" = DDI_NT_AUDIO
    /usr/sbin/devlinks - for "node type" = DDI_PSEUDO and some other types.
    These programs are called each time the system is reconfiguration-
    booted. They only know predefined "node type" and have some internal
    rools, expressed by regular expressions, e.g. for "audlinks":
    $ strings /usr/lib/devfsadm/linkmod/SUNW_audio_link.so
    ((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
    sound,
    sound/([0-9]+)
    isdn/([0-9]+)
    sound,
    sound/
    isdn/
    mgt,mgt
    isdn/
    /mgt
    audio
    ddi_audio
    audio
    ^sound/[0-9]+(ctl)?$
    audio
    ^isdn/[0-9]+/mgt$
    audio
    ^isdn/[0-9]+/aux/0(ctl)?$
    audio
    ^isdn/[0-9]+/(nt)|(te)/((dtrace)|(mgt)|(b1)|(b2)|(d))$
    audio
    ^audio(ctl)?$
    SUNW_audio_link: minor_init: regular expression bad: '%s'
    ((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
    audio
    sound/%d
    audioctl
    sound/%dctl
    SUNW_audio_link: audio_process: can't find match for'%s'
    When you buld /dev subtree for your driver you must either to follow
    they demands or create links by hand (by script).
    You can also set the access rights for the device special files from
    within the driver.
    You can do it with a help of "add_drv". See -m key. Information from
    "add_drv -m" fall into "/etc/minor_perm" and will use each time when
    minor node will create.
    Vitaly Filatov
    Moscow, Russia
    [email protected]

  • The difference of minor number and instance number

    I study how to develop device drivers. I am beginner.
    I'm confusing the differece of minor number and instance number
    what is the exact difference of them???

    Hi,
    I guess a good example would be a disk. Each disk you have would be a different instance. To use a disk it is divided into slices, each of which has a different minor number.
    Your device driver needs to map the minor number to the correct instance of the device. How you do this is completely up to you, so to start you could map them one to one.
    Hope that helps.
    Ralph
    SUN DTS

  • Major version number mismatch warning ?

    Flatform : RedHat Linux7.1
    Program : j2sdk-1_4_0-linux-i386.bin
    I have this error after installing jdk1.4.0 and typing 'javac' :
    ===========================
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    Warning: Minor version number mismatch.
    Warning: Major version number mismatch.
    repeat...
    Why this error do occur?
    How can I complete jdk1.4 installing?

    I'm getting the same warning as well. I recently upgraded from Red Hat 7.1 -> 7.2 and have j2sdk1.4.0.
    I get the following warnings when I actually run programs:
    Warning! Major version number mismatch.
    Warning! Minor version number mismatch.
    Did you ever find any resolution? I'll keep looking & if I find something, I'll post it here.
    Thanks-
    [email protected]

  • Instance number and minor number

    hi
    can somebody tell me what is actually instance number and what is the relationship between an instance number and minor number of a device .

    I'm not 100% sure but my reading of it is:
    Usually one has a 1:1 direct mapping of minor number to instance number, but this doesn't have to be the case.
    The instance number is linked to your hardware device and say if you move its base address you will get a new instance number with the old one retained for the original address.
    If you had 3 cards I think you would have instance No.s 0, 1, and 2.
    The minor number can be anything YOU want it to be.
    I have a situation where I have a card carrier with 3 cards mounted on it - I can only have one instance and I need to differentiate between the cards used - I use the minor number that is a part of the device handle and can be returned by using getminor from driver code.
    As usual the Writing DD SUN book is all there is available.
    Any further points - let me know.
    Cheers.

  • Unsupported major.minor version  exception in 10g IAS

    I have developed a simple web-app based on JSF/MyFaces. In it I have included a managed bean. Upon deploying and running this web-app to Oracle 10g AS I get the following exception:
    javax.faces.FacesException: uk/ac/ukbiobank/crms/infobean (Unsupported major.minor version 49.0)     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)     at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     at java.lang.Thread.run(Thread.java:534)Caused by: javax.servlet.ServletException: uk/ac/ukbiobank/crms/infobean (Unsupported major.minor version 49.0)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)     at helloWorld.jspService(_helloWorld.java:164)     [SRC:/helloWorld.jsp]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:253)     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)     ... 12 more
    I assumed that it was due to the java-compiler pointing at the wrong JDK so I made the necessary changes to the server.xml. However, this has not made ant difference.
    Has anybody else encountered this problem, and if so how did they fix it?
    Thanks in advance for any help.
    Angus

    I guess you have windows, and the environment path you can set through dialog of system settings. Right click 'my computer' and choose properties. Find the button for environment settings. Somewhere here you will see Oracle has added som reference to the 1.3 version. Adjust this so it works.
    Or, you can run the actual correct verssion of Java you would like from the commandline.
    Instead of running:
    c:\>java <Program name>try running by spesifying the correct java.exe path:
    C:\>c:\program files\java\jre 1.6.0_07\bin\java.exe <program name>Hope this will help
    - Roy

  • Invalid class file format... major.minor version '49.0' is too recent ...

    I am using the Eclipse 3.1 and Oracel BPEL designer 0.9.13
    After I created a new BPEL process (named: trybpel), I got the following output in the console:
    uildfile: D:\eclipse\workspace\trybpel\build.xml
    main:
    [bpelc] &#27491;&#22312;&#39564;&#35777; "D:\eclipse\workspace\trybpel\trybpel.bpel" ...
    [bpelc] error: Invalid class file format in D:\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand.
    [bpelc] error: Class java.lang.Object not found in class com.collaxa.cube.engine.core.BaseCubeProcess.
    [bpelc] 2 errors
    BUILD FAILED: D:\eclipse\workspace\trybpel\build.xml:28: ORABPEL-01005
    Total time: 8 seconds
    I am puzzled with the information in bold. Would anyone tell me how to fix this problem? Thank you very much.

    the same error ORABPEL-01005, but not the same error message,
    Errors occurred when compile the bpel process using bpel designer for Eclipse:
    (com.oracle.bpel.designer_0.9.13)
    using PM: bpel_jboss_101200
    More error infomation following:
    Buildfile: E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml
    main:
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: Invalid expression statement.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:835: ';' expected.
    [bpelc] retun true;
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:208: Method setPartneLinkBinding(com.collaxa.cube.rm.suitcase.PartnerLinkBindingDescriptor) not found in class com.collaxa.cube.engine.types.bpel.CXPartnerLink.
    [bpelc] __pl.setPartneLinkBinding(getProcessDescriptor().getPartnerLinkBindings().getPartnerLinkBinding(__pl.getName()));
    [bpelc] ^
    [bpelc] E:\OraBpelDEclipse3.2\workspace\AboutTest\temp\bpelc762.tmp\BPEL-INF\src\bpel\p0\BPEL_BIN.java:584: Undefined variable: __ctx
    [bpelc] __setOutgoingLinks(__sc, __ctx);
    [bpelc] ^
    [bpelc] 4 errors
    BUILD FAILED
    E:\OraBpelDEclipse3.2\workspace\AboutTest\build.xml:28: ORABPEL-01005
    Error in java files auto-generated when compiling ,why?
    Thanks!

  • Determine the Java Class File Major & Minor Version

    Did anyone tried to look at the Major & Minor version of a specific java class file.
    Our server is running in version 1.3. We are including a third party class file, I like to check before our production move, whether the file is compiled is <= Jdk1.3.
    Thanks in Advance.

    // 1) Download Jakarta BCEL
    // 2) compile this class
    import org.apache.bcel.classfile.*;
    public class Main
         public static void main(String[] args) throws Exception
              printClassVersion("c:\\foo.jar", "com/foo/Bar.class");
         public static void printClassVersion(String jarfile, String classfile) throws Exception
              ClassParser cp = new ClassParser(jarfile, classfile);
              JavaClass clazz1 = cp.parse();
              System.out.println(jarfile);
              System.out.println("Major: " + clazz1.getMajor());
              System.out.println("Minor: " + clazz1.getMinor());
    }

  • Major.minor version

    Im getting unsupported major.minor version exception while doing web applications using both tomcat5.0 and weblogic8.1, on the JVMs 1.4 and 1.5.
    Where did i do mistake???

    You are using different versions of jre and jdk, please change one of them and the problem would go.
    Cheers
    Varun Rathore

  • Error while installing Service Manager 4.1 (Unsupported major.minor version)

    Hi All,
    I have installed SMP 3.0 and I am installing Service Manager 4.1 on this server.
    I am folliwng the document - CRMSM41_Installation for installation of SM 4.1
    After installation , I configured the JavaBE.ini file and Agentry.ini. . This is the folder structure -
    When I tried to check the connection using ConnectTest.bat file I am getting the below error
    INI file: D:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.se
    rver.agentry.application\JavaBE.ini
    *** Caught exception: com/syclo/agentry/Server : Unsupported major.minor version
    51.0
    release::releasing connection
    release::complete.
    Press any key to continue . . .
    At present I have JDK1.6.0_51,. Do I need to modify the Java version ?
    Please advise how to corect this issue
    Thanks and Regards
    Neha Mahanty

    Hi Bill,
    Yes after the correct JDK the connection test was successful. I will now deploy the application in the server. I need to go through the deployment steps to proceed further.
    The connection test looks like -
    INI file: D:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.se rver.agentry.application\JavaBE.ini
    Encoding: ASCII
    reading user credentials from [SERVICE_LOGON] section
    connecting as...
    clientNum=100
    sysNum=01
    host=<My Host Name>
    name=sycloadm
    openCustomConnection::begin
    *** Caught exception: null
    release::releasing connection
    closeConnection::begin
    release::complete.
    Press any key to continue . . .
    Thanks
    Neha

  • Java.lang.ClassFormatError: Bad major version number

    Hi friends,
    I am using JWS2.0(trial version). I have uploaded class files into servlet (and respective packages), every thing was working fine. one fine day i started getting the 404 - file not found error(JWS not yet expired). I uninstalled the jws, j2sdk1.4.0, jre1.4.0 but with no result.
    I even formated the system and loaded all again. But still i am getting the same problem.
    The servlet is the simple HelloWorld servlet.
    Through the SunExample its working fine. But the uploaded servlet is not getting recognised.
    Here is the ErrorLog
    [Tue Feb 22 17:26:29 GMT+05:30 2005] ClassLoaderFactory Error: Can not find Class : Hello [ ClassNotFoundException ]
    [Tue Feb 22 17:26:31 GMT+05:30 2005] ClassLoaderError: (com.sun.server.loader.JarClassLoader@17d67e:\servlets) ERROR: Unable to load class local class Hello
    [Tue Feb 22 17:26:31 GMT+05:30 2005] java.lang.ClassFormatError: Bad major version number
    at java.lang.ClassLoader.defineClass(ClassLoader.java:219)
    at com.sun.server.loader.ServletClassLoader.callDefineClass(ServletClassLoader.jav a:726)
    at com.sun.server.loader.ServletClassLoader.checkAndDefineClass(ServletClassLoader .java:620)
    at com.sun.server.loader.DirectoryClassLoader.getClassFromLocalDir(Compiled Code)
    at com.sun.

    Try re-compiling the Servlet. Make sure that the JDK version used to recompile is <= the version used to run the server (if you are using a higher jdk to compile the servlet, maybe Java 5.x, then you are to run, maybe Java 1.4.x, then use the -target option of javac to target the lower release...)

  • Bad major version number error

    I'm trying to run the HelloWorld program in Linux. I can compile ("javac HelloWorld.java"), but when I try to run the program, using "java HelloWorld", i got the following error message:
    Error loading class HelloWorld: Bad major version number
    Any idea of what's wrong?

    well, i found the problem. i had installed an old java version and forgot to delete it. i was using jdk 1.1 and i didn't notice it. just deleted the old version and everything went fine. thanks, m_srini ! :-)

Maybe you are looking for

  • Error in updating DPS Desktop Tools CS6 32.0.0 and Photoshop Camera Raw 8.7.1 (CS6)

    When I tried to update DPS Desktop Tools CS6 32.0.0 and Photoshop Camera Raw 8.7.1 (CS6) in Adobe Photoshop I get the following errors in the error log: DPS Desktop Tools CS6 32.0.0 Update There was an error installing this update. Please quit and tr

  • How do i find where an ipod was last synced?

    the ipod was synced without my permission. I now need to find who put inappropriate songs on my ipod.

  • Printing Thru D-Link Print Server?

    I have PC/Mac environment, and am having trouble with printing from my Mac. Both Macs are running latest OS X Leopard. Setup is: Epson Stylus Photo R280 Canon Pixma IP90 D-Link DPR1260 Print Server MacBook Air New MacBook Pro 2.5 If I use the supplie

  • Media imports from iPhoto gone

    Aloha all, I have searched but can't find any info on this question. I have posted it on the iPhoto boards also with no luck so I'm hoping someone out there can assist. Here's the quandary. Since I put my iPhoto libraries on an external HD, none of t

  • Is it possible using Analytical functions?

    Hi,    I have the following data     Column1      Column2     2005            500     2006            500     2007            500     2008            500 Now, if I've some variable value as 800, then the output record should be     Column1         Co