Java7/JDBC 4.1 not backward compatible - DataSource getParentLogger()

I tried to upgrade to Java 7 and had a nasty surprise. Java 7 is NOT backward compatible! After more than 15 years making the Java, this is the first time I encounter such a thing.

The new 4.1 JDBC, now included in Java 7 requires that implement data sources:

java.util.logging.Logger getParentLogger() launches SQLFeatureNotSupportedException

It broke the a custom data source I use. The solution seems simple at first, implement getParentLogger. But I have encountered the following problems:

(1) the documentation for this method sucks. It does not say much.

(2) intuition makes me think that the simplest implementation is to just throw SQLFeatureNotSupportedException and JDBC will probably catch the exception and ignore any logging expected at this level. But we don't know if it is actually what he does.

(3) another option would be to return a parent logger... except that I use jBoss 5.x and jBoss uses log4j for its record, not JUL. A real implementation would come back somehow a java.util.logging.Logger benefiting somehow a log4j logger. Someone suggested looking at slf4j, but it is not clear to me how I would use it for this task.

Since Java 7 has been out for some time, I hope I'm not one to encounter this problem with the sources of data and logging log4j. Probably should already be advised on how to handle this.

Can someone point me to a solution?

I asked someone better than me and got:

If an application does not support, or if the implementation of the data source is not
use java.util.logging, a SQLFeatureNotSupportedException must be lifted and the
the caller is supposed to handle this.

Tags: Oracle

Similar Questions

  • Edge 20141 Animate not backward compatible with the 2014,0 documents

    This is a request for Adobe:

    Minor release revisions should not cause incompatibilities of project in .a in project files.

    The update to animate dashboard 20141 (October 2014) cause of trouble in laboratory parameters. My students using 20141 on their personal computers can't open their work on 2014.0. All our lab computers have installed 2014.0. I can understand the incompatibilities of major revision, but minor revisions should be fixes bugs and updates simple and should not affect the created projects * yesterday *.

    It's always frustrating, because we must appeal to our technical support staff any time that a minor bug fix is put up with CC.

    In addressing this issue, how a person would go to update a project .a file to be backward compatible? Edge animate, no option exists to gain back.

    Thanks for any help on this matter.

    There is a work around. Open the file edge.js and replace the number 18 t0 20 online version

    version: "4.0.0",.

    minimumCompatibleVersion: "4.0.0",.

    build: "4.0.0.359."

  • New CC 2014 is not backward compatible!

    Did anyone else find issue with the compatibility of the new version of CC 2014 first? I created the project in 14 CC, and now it will not open in the old version. I understand that new versions of the software means changes, but not to support backward compatibility for one version of the software is quite frankly really bad form. The changes between the versions is quite minimal. I'm working on a project with two other people, and now I have to worry about making sure that all our versions of our work is compatible, or return by using an obsolete version.

    Does anyone know of a workaround? Can I go back at least a 14 CC project back to an older version of CC? I now have a project with synchronized audio full that my colleagues may not have able to open.

    It has been like this for ages, and Adobe will not change this approach. How much I agree with you that it is 'bad form', it is a reality.

    This simply means that you and your co-workers better be sure to be on the same page, sorry same version.

  • Why Labview runtime is not backward compatible?

    Hello

    I tried to run a Labview program compiled by a license for Labview 32-bit 2013 on a 64-bit Windows PC with 64 bits 2014 runtime engine. Unfortunately, there no law and required me to install a 32 bit Runtine engine in 2013.

    I thought that if a PC is 64-bit, so I need 64-bit runtime. Isn't this correct? And it's true that a computer that is running the executable files must have the exact same runtime engine version than what they have been compiled from?

    Is a minor thought, likely that a labview program can run "differently" on different versions for the engine? say, flatten to a string for examples...

    You need the version of the runtime that corresponds to the version of the development system used to build the application. This includes the number of bits (32 / 64-bit). Because you can run a LabVIEW application with a version of the execution engine - one that has been used for development - there is no reason to ask if it would be different on different execution engines, since it can happen. This said, OR try not to disturb the operation of functions between versions, and when these changes are inevitable, they are generally and there is often an option to use the old format (some functions have right-click options to be compatible with older versions).

    Windows is a special feature, called Windows on Windows (WoW), which allows 32-bit applications run on a 64-bit system. Without this, you would be able to run 64-bit applications. WoW does not, however, a 32-bit application load 64-bit libraries (with the exception of system libraries which WoW to operate). The runtime engine is essentially a set of support libraries. Your 32-bit application cannot load 64-bit runtime libraries (they don't agree on the size of a pointer, that does not pass data to reliably), so you need the 32-bit execution engine. Similarly, if you have built your application by using the 64-bit development environment, you wouldn't be able to run it in 32-bit runtime.

  • CC not backward compatible with the CS6... but why?

    I understand that first Pro CC is not compatible with the CS6 PP but I don't understand why? In fact, Adobe gave a reason? It doesn't make much sense to me, some aplications of cc adobe are retro-compatible, but others are not... I'm puzzled.

    It did not say why. There are applications that allow you to "save under" to an earlier version. Premiere Pro is not one of them.

    There is really not much advertising retro compatibility. Most of the teams working on a project all have the same software. Even if subscribe you to the creative cloud you can always edit in Premiere Pro CS6 if this are the people you're working with the use.

    The technical reason that is not compatible, it is that there are too many differences. The way the timeline tracks work, for example.

  • LabVIEW 2009 supposed to be backward Compatible?

    We have developed a set of VI Labview 6.1, and they were functional and compatible with all versions of Labview 2009.  Is not backward compatible 2009?


  • VSphere 6.0 backward compatible with vCenter 5.5 replication is?

    At one point, the vSphere replication 6.0 compatibility matrix said that it is compatible with vCenter 5.5.  I think it was around mid-March.  Now, he seems to have changed and says vSphere 6.0 replication is only compatible with vCenter 6.0.  Is this true?  Are there plans to make vSphere replication 6.0 backward compatible with vCenter 5.5?

    Bill,

    A decision was made not to support backward compatibility between replication 6.0 vSphere and vCenter Server 5.5 going forward.  This is the result extended and careful considerations affecting the provision of quality and consistent user experience for our customers using vSphere 6.0 replication.

    Thus, vSphere 6.0 replication is officially supported with vCenter Server 6.0 only (SSO 6.0, 6.0 PC, Web Client 6.0).  This resulted therefore in the interoperability of public VMware product matrix.

  • Firefox tries to update my version 8.0 to version 9.0.1. I'm not willing to do because the Norton Toolbar is not yet compatible with the new version of Firefox. How can I get firefox to stop trying to update each time I open the application?

    Question
    Firefox tries to update my version 8.0 to version 9.0.1. I'm not willing to do because the Norton Toolbar is not yet compatible with the new version of Firefox. How can I get firefox to stop trying to update each time I open the application?

    Firefox 9 is Compatible with Norton 2011, 2012, 360 v5. See:

  • Firefox is not always compatible with the connection to my comcast email account. I need to clear the cache, and then I can back into my email account. Is there a way to permanently solve this problem? Thank you.

    Firefox is not always compatible with the connection to my comcast email account. I need to clear the cache, and then I am able to get back into my email account. Is there a way to permanently solve this problem? Thank you.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • is itunes not yet compatible with windows 8?

    is itunes not yet compatible with windows 8?

    All versions of iTunes since 10.7 (released in September 2012) have supported Windows 8.  You have a specific problem?  If so, please provide details.

  • Trying to install Win7, repeat the system is not ACPI compatible.

    My system is running XP Home SP3, it's all jolly good.  When I try to switch to Win7, be updated by running installation prgm under XP or start from the disc, the installation will stop telling me that my system is not ACPI compatible. Shenanigans.  The whole system is brand new, all latest drivers have been downloaded and installed successfully, the right of the BIOS down to my wireless card.

    "This computer is not compliant with the Advanced Configuration and Power Interface (ACPI) standard. Windows must be installed on a computer that supports ACPI. Contact your computer manufacturer for a BIOS update or install Windows on an ACPI compatible computer. »

    System:
    Gigabyte GA-M770T-UD3P

    Phenom II X 3 720 2.8 ghz

    Crucial 4GB 240-pin DDR3 SDRAM DDR3 1066

    GeForce 260 GTX 896 MB

    Seagate Barracude 7200 1 tb

    You might want to try the following solution to this post:
    Andre Da Costa http://adacosta.spaces.live.com http://www.activewin.com http://i.nconspicuo.us/2007/05/03/Windows-Vista-install-error-this-computer-is-not-compliant-with-the-advanced-configuration-and-power-interface-ACPI-standard/

  • You do not have compatible VGA hardware or driver to run HP MediaSmart Webcam

    Original title: HP MediaSmart Webcam

    Whenever I try to open my HP MediaSmart Webcam, it says «You do not have compatible VGA hardware or driver to run HP MediaSmart Webcam.» What does that mean?

    Hello

    ·         The HP Media Smart Webcam was working before?

    The Hp media smart webcam is not compatible with windows 7

    I suggest you follow the steps below:

    Method 1:

    Test, set installation up-to-date with HP media smart webcam the link below to download the updated driver:

    http://h10025.www1.HP.com/ewfrf/wc/product?product=3337935&LC=en&cc=us&DLC=en&lang=en&tmp_track_link=ot_we/prodlink/en_US/3337935/loc:0 & cc = us

    Method 2:

    If the previous step fails I suggest you follow the steps below to update a hardware driver that is not working properly:

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    I hope this helps.

  • Printer HP Deskjet 1000 is not Windows compatible 8, isn't my HP Officejet 4500

    Original title - program programs compatibility Application - HP Deskjet 1000 printer is not Windows compatible 8 is not my HP Officejet 4500

    How can I get these printers compatible with my HP laptop?

    How can I get these printers compatible with my HP laptop?

    Hi Jenny

    Compatibility is the responsibility of the manufacturer of the hardware/software.

    Use the following links to get the latest driver/software for these devices. Follow the ot select your operating system.

    Software & Driver Downloads HP Deskjet 1000 - J110a printer | HP® support:
    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=4066377&LC=en&cc=us&DLC=en&lang=en&cc=us&y=13&x=12

    Software & Driver Downloads HP Officejet 4500 All - in - One Printer - G510g | HP® support:
    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=3919449&LC=en&cc=us&DLC=en&lang=en&cc=us&y=15&x=6

    If you still have problems, I would recommend that ask you this question on the forums to Support HP.

    Printers and all-in-one - HP Support Forum's:

    http://h30434.www3.HP.com/T5/printers-and-all-in-ones/CT-p/inkjet

    Concerning

  • Are both 14 version backward compatible with version 13 programs?

    Version compatibility: I plan to upgrade my software Adobe Premiere elements 13 and the software Adobe Photoshop elements 13 version 14. Are both 14 version backward compatible with version 13 programs? I am trying to create a long holiday with first elements 13 film and wishes to continue editing 'as is' with first elements 14. Is this possible please?

    [title published by mod]

    Short answer. NO.

    No versions are retro-compatible.

    Finish your current project in E13 and then upgrade.

  • 6 Lightroom will not install on Windows 7 or 10.  Error message is not Vista compatible.

    6 Lightroom will not install on Windows 7 or 10 on new Dell computer.  Error message is not Vista compatible.

    Settle in the right forum.

Maybe you are looking for