Hibernate Issue

Hi
Yesterday i posted one query regarding hibernate.No one replied me with correct answer.So i am posting it again.i am using hibernate to populate data from database to my table control.The table columns contains textfields.i am using objectlistdataprovider to display the list of values from hibernate bean.My problem is i can update the values in the table displayed on UI(as it is a textfield).but i am not able to get the values from textfield inside table.i wan to know how can i get the values back from textfield inside a table control so tht i can update tht back to database using hibernate. i am not using spring here
Thanks
Shameer

You should be able to get back the data from the text field. In hibernate, you get the List of data from the hibernate session. Using that List, you must be creating the ListDataProvider. But when the table is submited after the data is entered in the textfield only the ArrayListDataProvider is modified. You need to get the data from the List inside the data provider and comit it back using hibernate session. One of our ineterns was able to do this for her MS project.
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator

Similar Messages

  • Resume from Sleep / Hibernate issues

    Hi all,
    First time poster. I have a Helix and am running into a heap of resume from sleep (and hibernate) issues.
    The sleep issues tend to happen overnight - I do not have this issue if I sleep the machine and then wake it up 5-10 minutes later (e.g. moving between meetings at work). However, when I attempt to wake the machine up in the morning, it fails to resume from sleep, and instead boots from scratch.
    Typically, when the unit is in this state, the status led on the lid is rapidly blinking (which I believe means that it's trying to enter sleep) Since there is nothing in the Windows event log during the overnight period, I'm wondering whether it's trying to enter a deeper sleep mode and failing.
    This happens every second day or so. Which is really frustrating as a tend to lose some work.
    I tried enabling hibernate as a trial, to see if that would avoid the issue, but resuming from hibernate fails as well. At least I get a Windows event log entry for this (source: kernel-power. The unit fails to resume from hibernate with status 0xC000000D)
    I have the September 10 BIOS update, and am running Windows 8.1 Enterprise (though I had the issue with Windows 8 as well).
    Any ideas on how I can troubleshoot this?
    Regards
    AC

    Windows 8: In Windows 8, the default shutdown behavior puts the system into hybrid shutdown (S4) and all devices are put into D3. Remote wake from hybrid shutdown (S4) or classic shutdown (S5) is completely unsupported. In Windows 8, NICs are explicitly not armed for wake in both the classic shutdown (S5) and hybrid shutdown (S4) cases because users expect zero power consumption and battery drain in the shutdown state. This behavior removes the possibility of spurious wakes when explicit shutdown was requested. As a result, Wake-On-LAN is only ever supported from sleep (S3) or hibernate (S4) in Windows 8.
    Note that in Windows 8, hybrid shutdown (S4) stops user sessions but the contents of kernel sessions are written to hard disk. This enables faster boot.
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa373229(v=vs.85).aspx
    From the Helix User Guide:
    •Slow blinking: The tablet is in sleep mode.
    •Fast blinking: The tablet is entering hibernation mode or sleep mode.
    That was my reason for clarifying if hybrid-sleep was enabled; since it's the default setting and you noted that the LED was blinking fast. Does the LED ever stop blinking fast?
    There can/may be multiple log entries during a normal sleep operation,  because "the system uses the lowest-powered sleep state supported by all enabled wake-up devices." If one of those devices wakes the system (this does not mean power on) then the logs will report the devices and will likely return to a another level of sleep, but this does not mean full power loss or empty logs.
    If the system has successfully entered sleep state, then you should see the following message in System Event logs. 
    Event 42, Kernel - Power
    This system is entering sleep.
    Sleep Reason: Button or lid
    When the system is successfully woke you will see a System Event Log similar to this:
    Event 1, Power - Troubleshooter
    The system has returned from a low power state.
    Sleep time: 2013-10-08T01:42:25.XXXXXXXX
    Wake time: 2013-10-08T05:53:21.XXXXXXXX
    However, there will be other events in the logs after sleep and prior to this wake period, such as hardware device issues(My helix has Bluetooth device warnings, nfc driver warnings and some other nondescript hardware errors), kernel messages (about boot manager, boot options, etc.).
    Have you changed the behavior of the power button?
    You also can program the power buttons so that by pressing the power button you can shutdown the tablet or put it into sleep or hibernation mode. To achieve this, you need to change your power plan settings. To access power plan settings, do the following:
    From the desktop, tap the battery status icon in the Windows notification area.
    Tap More power options.
    In the navigation panel, tap Choose what the power buttons do
    Follow the onscreen instructions to configure settings.
    Lastly, when you updated to Windows 8.1, did you format the whole C:\ (mSATA) drive?
    Helix: 3697 CTO.
    Thinkpad user since IBM. I do not work for Lenovo or any entity working for Lenovo.

  • Windows 8.1 sleep/hibernate issues

    I have some issues with sleep and hibernation on my freshly installed Windows 8.1
    Hibernation gets triggered properly after the set number of minutes, however, instead of going back to the previous state, a hard boot takes place. hilberfile.sys has the current time stamp, so I suspect it's an issue with waking up, not with going to sleep.
    I also tried the sleep mode as an alternative. It seems to go to sleep correctly, however, there's no chance to wake the computer up. I tried mouse, keyboard, power button - nothing. I hold the power button for 5 seconds, and a hard boot takes place. Seems
    to be another problem with waking up.
    Any ideas for further analysis on this issue?
    BIOS is up to date, and on default settings (I've skipped the latest Beta update though).
    Best wishes,
    Jan

    Hi,
    My computer also encountered the similar problem. in my opinion, it is too old, even didn’t had corresponding driver of Windows 8.
    For this problem, I would like recommend you upgrade all the hardware driver to be latest, especially the Graphic driver and power management driver(if accessible).
    You can use Driver Verifier to check the driver problem.
    Please refer to the link below for more details about how to use Driver Verifier to identify driver issues.
    http://support.microsoft.com/kb/244617
    In addition, please try to disable hibernation for test.
    For the BSOD problem, you can zip up the minidump files in the C:\Windows\Minidump folder and make available (provide link) via Windows Live SkyDrive. We may could find some caused reason about this problem
    Roger Lu
    TechNet Community Support

  • Error while deploying the EJB - JPA - Hibernate application

    Hi guys,
    i got following exception while deploying my application into the server. can anyone suggest me.
    Failure occurred in the execution of deployment request with ID '1243505041748' for task '0'. Error is: 'java.lang.ClassNotFoundException: org.jboss.util.file.ArchiveBrowser$Filter' java.lang.ClassNotFoundException: org.jboss.util.file.ArchiveBrowser$Filter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:626) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:350) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330) at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123) at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331) at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245) at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63) at weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:209) at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:310) at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.ClassNotFoundException: org.jboss.util.file.ArchiveBrowser$Filter at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:626) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:350) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330) at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123) at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331) at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245) at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63) at weblogic.ejb.container.deployer.EJBModule.setupPersistenceUnitRegistry(EJBModule.java:209) at weblogic.ejb.container.deployer.EJBModule$1.execute(EJBModule.java:310) at weblogic.deployment.PersistenceUnitRegistryInitializer.setupPersistenceUnitRegistries(PersistenceUnitRegistryInitializer.java:62) at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:381) at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:17
    I am using
    Hibernate 3.2
    EJB 3
    WebLogic 10.3
    MyEclipse 6.6

    I think I've seen this before and I believe that it might the way Hibernate 3.2 loads classes. I seem to remember actually patching this myself using a fix someone made at one point and getting it to work, but that used to be documented on a dev2dev blog comment that is no longer around :(
    Here are some hints on similar errors:
    https://jira.jboss.org/jira/browse/EJBTHREE-719
    http://forums.java.net/jive/thread.jspa?threadID=16472
    Some Hibernate issues with ANTLR can be resolved if you can put all of the relevant classes in your web-inf/lib or app-inf/lib and use the appropriate deployment descriptors to "prefer" your classes.
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/webapp/weblogic_xml.html#wp1059286
    There are other similar errors that you might encounter
    http://maniezhilan.blogspot.com/2008/02/hibernate-antlrjar-with-weblogic-server.html

  • [Solved] Network doesn't work after hibernate?

    Hello!  This is my first legit Linux install so excuse me if I'm a bit slow.  I installed Arch last night and everything went smoothly.  However, after I tested out hibernate on my machine, the network doesn't seem to work.  Just prior to the hibernate, I installed Pidgin and Skype but they worked alright, so I think that the hibernate caused a problem on eth0.
    I have an Asus P8Z68-V Pro motherboard with an Intel 82579V Gigabit Ethernet Controller that's using the e1000e driver.  Running "dmesg | grep e1000e" says that it is up.
    I'm not entirely clear here, but from reading, I think that I have several ways of connecting to the network, including network, dhcpcd, networkmanager, and wicd.  I am using wicd so I did the following (or at least I think I am only using wicd):
    #rc.d stop network
    #rc.d stop dhcpcd
    #rc.d stop networkmanager
    Similarly, I put a ! in front of network in rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="America/New_York"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=()
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="Vicious"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=eth0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(hwclock syslog-ng dbus !network netfs crond wicd)
    Restarting eth0 through wicd-cli still did not work.  I also tried resuscitating the network via instructions on the configure network page before trying to focus solely on wicd.
    I found a few similar problems on the forums by searching "wicd hibernate" and tried several solutions but they did not work.  Several problems seem to be that the network doesn't work after a suspend because I guess the stuff in RAM did not get saved?  But people were able to restart the network by running "/usr/lib/wicd/autoconnect.py" and I wasn't able to get this to work.  As a final effort, I added "resume" into mkinitcpio.conf and placed the machine into sleep again to see if it may magically reset something but of course this did not happen .
    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"
    HOOKS="base udev autodetect pata scsi sata resume filesystems usbinput"
    # 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=""
    Not sure if my fstab.conf is useful but if this has something to do with settings getting "lost" in swap, here it is.  Linux is on an SSD and HDD (sda and sdc) and Windows 7 is on a HDD (sdb).
    fstab.conf:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /tmp tmpfs nodev,nosuid,noatime,size=2000M,mode=1777 0 0
    /dev/sda1 / ext4 defaults,noatime,discard 0 1
    /dev/sda2 /home ext4 defaults,noatime,discard 0 2
    /dev/sdc1 /boot ext4 defaults 0 1
    /dev/sdc2 /var ext4 defaults 0 0
    /dev/sdc3 swap swap defaults 0 0
    /dev/sdc4 /media/data ext4 defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid,size=10G 0 0
    Is wicd causing these problems or did I configure something else improperly?  Would appreciate any help to get eth0 up again!
    Last edited by TheBigCow7 (2011-09-13 17:57:20)

    Ok, I think I've made some progress!  Hibernate definitely affects my network connection.  Could this be a kernel 3.0 problem?
    I noticed that ifconfig showed eth0 without an inet addr, just an inet6 addr for the longest time.  e1000e seemed to be loading up ok.  I'm not certain here, but I think that meant the dhcp settings didn't stick, or something along those lines.
    Trying to use dhcpcd like the instructions here did not work.  By some chance, one attempt did work and while it did, I downloaded and installed dhclient.  After that one successful attempt, renewing the DHCP lease via dhcpcd did not work again.
    Luckily though, I found that running "dhclient eth0" worked.  My DHCP settings seemed to have somehow gotten messed up after my initial, problematic hibernate to the point where none would stick, even after a reboot.  Manually typing in "dhclient eth0" would get eth0 working, so I decided to add it to the bottom of /etc/rc.local, like in the example on the networking page.
    Now, eth0 works after a boot.  However, after the daemons load up during the boot process, my computer takes a long time to get to the login prompt (this is relatively speaking, since I am on a SSD and the boot process used to be blazing fast before).  I'm pretty sure it's because I added "dhclient eth0" to /etc/rc.local.
    I should say that even with these changes, after a hibernate, my eth0 still does not work and if it weren't for the edit to /etc/rc.local, eth0's inet settings would still not stick after a reboot (that is to say, the hibernate does do something to my network settings). 
    Is this the correct/most efficient way to fix my DHCP problem?  Can I fix my "eth0 after hibernate" issue?  Also, can I make my DHCP settings boot up without changes to /etc/rc.local so that I can get a fast boot again (still not sure how it was able to work before without my edit)?

  • Windows 8.1 doesn't hibernate or sleep after installing amd catalyst driver

    hi i am using windows 8.1 64 bit but after installing a amd catalyst center windows behaviour changed it doesn't go for hibernate and sleep and after unstall it windows comes into normal position please refered me proper solution to install amd driver wihout any issue and also suggest me which version will be compatible with my device i have tried amd 14.9 and also 14.11 but issues didn't solve i am curretnly using intel Version10.18.10.3325 windows update show me amd  wddi 1.3 driver but it always failed not installing..
    Hp pavilion-15 n037tx Notebook
    core i5 4200U
    4gb ram
    This question was solved.
    View Solution.

    Hi @Ahmed-Aslam 
    I understand that you are have problems with hibernate and sleep on your notebook.
    I would review the attached document. I realize from your post that you have tried some of the things listed, but just check it and see if anything there was missed, perhaps the section on malware issues.
    Troubleshooting sleep and hibernate issues in Windows 8
    You can also try using system restore to roll back to before the software update to see if that resolves the issue.
    Using Microsoft System Restore (Windows 8)
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Windows 8.1 64 bit Hibernbate issues

    Hi after installing a Windows 8.1 64 bit i have a hibernate issuess Laptop doesn't go for hibernating all power remains on HDD and System system stuck between intermediate state niether in sleep mode nor in shutdown mode please me about this issue.
    i have also installed a BIOS updates but issues remains same
    Hp 15 Pavilion no37tx
    Core i-5 4200U
     4gb ram
    This question was solved.
    View Solution.

    Hello @Ahmed-Aslam,
    I have read your post on how your notebook computer is not able to hibernate correctly after re-installing Windows, and I would be happy to be of assistance!
    To further diagnose this issue, I recommend following the steps in this document on Troubleshooting sleep and hibernate issues in Windows 8. This should help configure your power management settings successfully.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • G530-44463​8U Sleep/Hibe​rnate issue with windows7 Ultimate 64Bit with 4GB ram

    I have a problem with Lenovo G530-444638U. I upgraded to 4Gb ram and installed a fresh copy of Windows 7 Ultimate 64bit and I’m facing sleep and hibernation problems. When I try to put laptop to sleep mode and I try to resume from sleep, it restarts by itself. I tried every single option in my power management and every command leads to restart. I also have the same problem with hibernate mode. When I try to resume from hibernate, it restarts and I have option on the screen to delete restoration data in order to continue,  
    Reading on Lenovo forums and Google search, it looks like it is a known issue.  I have the latest graphic and WAN drivers from Intel for win 7 and still I can’t solve issue. Is anyone has same model and expediting this problem, any help would be appreciated. 
    When I downgraded my ram form 4gb to 3gb then sleep and hibernate works fine.  i installed vista ultimate 64bit and had same sleep/hibernate issue. I called lenovo tech support and they told me to call software support, which is provided by third part and it is not free, i don't think it is software issue. I tried diffrent ram and had same issue.
    T6500(2.10GHz), 4GB ram 16HTF25664HY-667E1, BIOS Version     6GET19WW(for NON-HDMI), Lenovo Energy Management 4.4.1.1 2009-10-22 7.67 MB Windows 7 64bit 

    also one more issue i had... is when i try to boot up... somtimes it will go into a loop for a couple times. it will try to load windows(no blue screen)-->reboot--> and ask me if i want to use system recovery/start windows normally.
    any help will be greatly appreciated.
    Thanks very much.

  • Is it Possible to Combine Hibernate + Swing?????

    Hi Xperts,
    Is it possible to combine Hibernate + Swing?
    (My Point of View Hibernate Contains Transaction, Session... But In Swing Session??????)
    So i have lot of confusions.
    SO
    if Hibernate + Swing
    IF YES. HOW? ELSE TELL THE REASON.
    I EAGERLY WAITING FOR YOUR REPLY
    Thanks
    Edward and Hari

    Hi Duffymo - thanks for responding. It's fun to discuss this with somebody; I don't usually get many reasonable/friendly responses on the Hibernate user forum.
    What I mean by transaction based identity is thatin
    the normal, recommended Hibernate process (one
    session per transaction), objects fetched in
    different transactions do not == each other. Solet's
    say I do the following:
    * Start session 1 and transaction 1, fetch object
    with primary key 5, and store it in variable obj1.
    Commit transaction 1 and close session 1.
    * Start session 2 and transaction 2, fetch object
    with primary key 5, and store it in variable obj2.
    Commit transaction 2 and close session 2.
    * At this point, even though they represent thesame
    row in the database, obj1 != obj2. I'll assume you mean !obj1.equals(obj2)here, because [obj1 != obj2[/code] even without
    Hibernate if the two references point to different
    locations in memory in the same JVM. The equals
    method can be overridden. You can decide to check
    equality only examining the primary keys, or you can
    do a field by field comparison. If the class checks
    equality on a field by field basis, the only way
    they'll not be equal is if you change values.I really do mean == in this case. If those two fetches happened within the same session, Hibernate would return the identical object from it's cache. Here's some pseudo-code illustrating what I mean:
    Session firstSession = sessionFactory.openSession(); //Start an empty session
    Transaction tx1 = firstSession.beginTransaction();
    Object obj1 = firstSession.get( Person.class, new Long(5) ); //Fetches row 5 from the database
    tx1.commit();
    Transaction tx2 = firstSession.beginTransaction(); //Start a new database transaction, but still use the same session cache.
    Object obj2 = firstSession.get( Person.class, new Long(5) ); //Just returns the same object it previously fetched
    tx2.commit();
    obj1 == obj2; //Returns true, because we're pointing to the exact same objects
    obj1.equals( obj2 ); //Obviously returns true since they're pointing to the same object
    Session secondSession = sessionFactory.openSession(); //Start an empty session
    Transaction tx3 = secondSession.beginTransaction(); //New transaction in the empty session, no cached objects
    Object obj3 = secondSession.get( Person.class, new Long(5) ); //Returns a newly created object, not in our session cache
    tx3.commit();
    obj1 == obj3; //Returns FALSE, these are two separate objects because they were fetched by different sessions.
    obj1.equals( obj3 ); // Depends on whether the database row was modified since we fetched obj1
    It sounds like you want an Observer pattern, where
    every client would deal with a single model and
    changes are broadcast to every registered Observer.
    That's just classic MVC, right? In that case, every
    y client might have an individual view, but they're
    all dealing with the same model. Changes by one is
    reflected in all the other views in real time.That would be awesome, but doesn't seem feasible. Our Swing clients are spread all around the world, and creating a distributed event notification system that keeps them all in sync with each other sounds very fun but extremely out of scope for this project. We're trying to make Hibernate manage the object freshness so that our Swing application clients may slowly become out of date, but when we trigger certain actions on the client (like a user query, or the user clicking a 'refresh' button) they refresh portions of their data model from the central shared database.
    >
    The reason that this is pertinent is because Swing
    expects objects to be long-lived, so that they canbe
    bound to the UI, have listeners registered withthem,
    they can be used in models for JTables, JLists,etc.
    In a typical complex Swing application, your only
    choice is to use a very long-lived session,because
    it would break everything if you were getting
    different copies of your data objects every timeyou
    wanted to have a transaction with the database. As
    shown above, a very long-lived session will leadto
    very out-of-date information with no good way to
    refresh it.Maybe the problem is that you don't want copies of
    the data. One model. Yes?One data model with real-time updates between all the connected clients would be ideal. However, I don't think that Hibernate is designed to work this way - it's really not even a Hibernate issue, that would be some separate change tracking infrastructure.
    Realistically, what I was hoping for is that we could have a single long-running Hibernate session so that we're working with the same set of Java objects for the duration of the Swing application lifetime. The problem that I'm running into is that Hibernate does not seem structured in a way that lets me selectively update the state of my in-memory objects from the database to reflect changes that other users have made.
    Certainly you've used JDBC. 8) That's what
    Hibernate is based on. TopLink is just another O/R
    mapping tool, so it's unlikely to do better. JDO
    doesn't restrict itself to relational databases, but
    the problem is the same.You're right, I have used JDBC, in fact we wrote a JDBC driver for FileMaker Pro so I'm pretty familiar with it. What I meant is that I've never tried using raw JDBC within a Swing application to manage my object persistence.
    I have not used TopLink and I haven't heard much about it, but I did see some tidbits on an Oracle discussion board comparing Hibernate with TopLink that made it sound like TopLink had better support for refreshing in-memory objects. Not having used TopLink myself, I can't say much else about what it's strengths/weaknesses are compared to Hibernate. It's not really an option for us anyway, because you have to pay a per-seat licensing charge, which would not work for this project.
    I know almost nothing about JDO except that it sounds really cool, is pseudo-deprecated, and it's probably too late for us at this point to switch our project to use it even if we wanted to.
    I don't think the problem is necessarily the
    persistence; it's getting state changes broadcast to
    the view in real time. It's as if you're writing a
    stock trading app where changes have to be made
    available to all users as they happen. Fair?Yes, I agree that the core issue is getting state changes broadcast to the view, but isn't that within the responsibility of the persistence management? How are we supposed to accomplish this with Hibernate?
    An excellent, interesting problem. Thanks for
    answering. Sincerely, %Likewise. I would stress again that I'm not anti-Hibernate in general (well maybe a little, but that's mostly because of bad attitudes on the support forums), I just have not found a way to make it work well for a desktop GUI client application like Swing. Thanks for your help, and I would love to continue the conversation.

  • Video Green Tint Issue?

    I discovered a green tinted screen after waking my HP Mini from sleep mode. The only way I was able to resolve this was by restarting.
    I have 4GB of memory, but my SSD is running out of space. It's down to 1.3MB. I'm just wondering if that could have been the reason for the green tint issue.

    Hello @MaxInMusicCity,
    I have read your post on how your desktop computer is displaying a green tint, and I would be happy to assist you!
    To further diagnose this issue, I recommend following the steps in this document on How to Turn off Hardware Acceleration. I also suggest updating your Java and Adobe Flash Player software.
    If the issue perssits, please follow the steps below to restore the power management settings for your computer:
    Step 1. Click the Start button
    Step 2. In the search box, type "Command Prompt"
    Step 3. Right-click Command Prompt
    Step 4. Click Run as administrator
    Step 5. At the command prompt, type powercfg /restoredefaultschemes and press Enter 
    reference: http://superuser.com/questions/669571/windows-8-1-64-bit-power-schemes-gone
    If the green tint still appears after waking up your computer from sleep mode, I recommend following this document on Troubleshooting Sleep and Hibernate Issues (Windows 8). This should help to wake your computer from sleep mode without displaying a green screen.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • After my computer hibernates the monitor does not come on

    after my computer hibernates the monitor does not come on

    Hi and thanks for joining HP Forums.  Below are a couple of threads with multiple solutions to sleep/hibernate issues.  Please read through these threads and see if any of these solutions will work to correct your problem.  The mostly likely solutions such as allowing the video card to wake your computer and updating your drivers and BIOS are in the first link, but you may also find the solution in the second link.
    http://social.technet.microsoft.com/Forums/en/w7itprohardware/thread/92e84b72-d2cc-4903-a564-c703565...
    http://www.ehow.com/how_6815819_hp-won_t-recover-sleep-mode.html
    Thanks!
    I am an HP employee.
    Please post rather than sending a Private Message. It's good for the community and I might not be able to get back quickly.- Thank you.
    Please click the White Kudos star on the left to say thanks.
    Please mark Accept As Solution if this resolves your issue.

  • Xfce: No lock screen and unclean filesystem due to hibernate

    Two issues.
    I have Arch running with Xfce on a netbook and I've been having all sorts of trouble with Xfce Power Manager. At first, it seemed like it wouldn't obey my settings because my screen would blank after 10 minutes regardless, but then I found this workaround (reply #2) which seems to have taken care of that. My next problem is that when I resume from Suspend, there is no lock screen asking me for my password. I read around and saw that Xfce uses xscreensaver to lock the screen by default, but I don't have that installed, and I'd rather not if I don't have to. But this thread is four years old, so I was wondering if now there is a simpler solution to make Xfce Power Manager properly lock the screen.
    Second, Hibernate doesn't seem to work at all. It shuts down my computer as expected, but when I power it back up I see the POST, GRUB, and Arch starts to boot again. When udev starts to check for uevents, I get a slew of errors; something like
    Filesystem is NOT Clean
    Trans replayed: mountid42, transid 2214, desc 2505, len 10, commit 2516, next trans offset 2499 //There are about 20-40 of these each with different numbers, except for mountid.
    Replaying journal: Done.
    Reiserfs journal '/dev/sda7' in blocks [18..8211]: 19 transactions replayed
    The /dev/sda7 partition is where I put /var. I have my boot messages kept to tty1 but I can't scroll up far enough to capture all of the text. This doesn't happen when I boot normally. Suspend also works fine, other than not locking my screen and presenting me with a password dialogue upon resume.
    Does anyone have any suggestions for either or both issues?
    Last edited by n125 (2012-01-07 11:03:22)

    65kid wrote:
    Regarding the lock screen, if you look at the script /usr/bin/xflock4, you can see that XFCE can use xscreensaver, gnome-screensaver, slock or xlock by default. Just install one of these and it should work fine.
    I personally use slimlock and just symlinked /usr/local/bin/xflock4 to slimlock, which then takes precedence.
    However, there is a bug in XFCE 4.8 that causes the screen not to be locked when you use the suspend button from the logout menu, which is supposed to be fixed with the 4.10 release. It works fine for me when I close my laptop lid though.
    see here:
    https://bugzilla.xfce.org/show_bug.cgi?id=6019
    Thanks, slimlock works really well; it looks quite nice, too. It feels like half the time I have a problem there's already a script for it somewhere and it's just a matter of finding it.
    I'm still stumped on the hibernate issue, unfortunately.

  • Hibernate version

    Hi everyone!
    Sorry for crossposting, already posted this in WebDynpro Java...
    We're currently trying to get Hibernate to work on NW J2EE 6.40. We deployed the jars mentioned in [Hibernate on SAP NetWeaver (1st version)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/14f55178-0801-0010-0bac-974ed17e51d3] successfully. While it seems to be somewhat working - at least we're seeing hibernate error messages - we run across a NPE in
    AbstractEntityTuplizer.createProxy()
    when calling
    session.load()
    In [Hibernate Issues HHH-1365|http://opensource.atlassian.com/projects/hibernate/browse/HHH-1365] this is said to happen when running Hibernate 3.1.3 against a signed JAR. Since I did not see any posting related to this error under NetWeaver, I think that the problem is caused by me using a wrong Hibernate version (we try to use Hibernate 3.1.3) with J2EE 6.40.
    I did not find any version hint fpr Hibernate 3 in the document version linked above, so I used the version mentioned in [Hibernate on SAP NetWeaver (2nd version)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0d57db-0c01-0010-6fa3-83503981eed4], but this version deals with NW 2004s / J2EE 7.0. The other jar's versions are identical.
    Can anyone confirm that I may be using the wrong Hibernate version and/or tell me which version of Hibernate3.jar I'd have to deploy to avoid this ?

    O.k., for everyone who might be interested in this topic: We resolved the problem by putting the jars for
    hibernate 3.2.6.ga
    antlr 2.7.6
    asm
    cglib 2.1.3
    commons-collections 2.1.1
    commons-logging 1.0.4
    dom4j 1.6.1
    ehcache 1.2.3
    jta
    into a DC and exposing all jars in both assembly and compilation public part.

  • Hibernate error

    Hi everyone!
    We're currently trying to get Hibernate to work on NW J2EE 6.40. We deployed the jars mentioned in [Hibernate on SAP NetWeaver (1st version)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/14f55178-0801-0010-0bac-974ed17e51d3] successfully. While it seems to be somewhat working - at least we're seeing hibernate error messages - we run across a NPE in
    AbstractEntityTuplizer.createProxy()
    when calling
    session.load()
    In [Hibernate Issues HHH-1365|http://opensource.atlassian.com/projects/hibernate/browse/HHH-1365] this is said to happen when running Hibernate 3.1.3 against a signed JAR. Since I did not see any posting related to this error under NetWeaver, I think that the problem is caused by me using a wrong Hibernate version (we try to use Hibernate 3.1.3) with J2EE 6.40.
    I did not find any version hint fpr Hibernate 3 in the document version linked above, so I used the version mentioned in [Hibernate on SAP NetWeaver (2nd version)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0d57db-0c01-0010-6fa3-83503981eed4], but this version deals with NW 2004s / J2EE 7.0. The other jar's versions are identical.
    Can anyone confirm that I may be using the wrong Hibernate version and/or tell me which version of Hibernate3.jar I'd have to deploy to avoid this ?

    O.k., for everyone who might be interested in this topic: We resolved the problem by putting the jars for
    hibernate 3.2.6.ga
    antlr 2.7.6
    asm
    cglib 2.1.3
    commons-collections 2.1.1
    commons-logging 1.0.4
    dom4j 1.6.1
    ehcache 1.2.3
    jta
    into a DC and exposing all jars in both assembly and compilation public part.

  • Undock Action Hibernates Instead of Sleeps

    I have a T400, mini dock, Windows 7 x64, and the most up-to-date possible drivers (latest power management and power manager from site).  Now, when I set the "undock action" in the Power Manager to "Standby," the computer hibernates.  It also hibernates when I set it to "hibernate."  I've tried different combinations of settings, always restarting the computer.  Basically, I can only hibernate or do nothing on undock, when I used to be able to actually go into standby/sleep mode.  Does anyone have any suggestions?  I think this MIGHT be related to the updated Power Management driver, but I'm not entirely positive.

    I also noticed that since the hibernate issue began, the undock action also takes an extremely long time till I get the little balloon confirmation or the hibernation takes place.  Prior to this problem (and the Power Management update), undocking took about 5 seconds maybe, just enough time for my external HD to stop.  Now, it takes at least one full minute, if not more, which I find unacceptable.

Maybe you are looking for