Re: [h2] UnsupportedClassVersionError for User Defined Function

2014-04-29 Thread Noel Grandin
If you are using our latest version 1.3.176, this feature is already available. On 2014-04-29 20:15, V wrote: I saw this post: http://stackoverflow.com/questions/11417133/how-to-specify-java-class-version-for-h2-database-user-defined-functions-and-sto Unfortunately, I don't believe I can compl

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread Thomas Mueller
Hi, > I'm overriding 4 classes of the java.io package In theory, what you do should work, but making it 100% compatible with java.io.* is very hard, if not impossible: some applications may rely on implementation details. You could argue this is a bug in the application, but it's still problemati

Re: [h2] Select using ID retrieved using rand() function in a single query does not work

2014-04-29 Thread Thomas Mueller
Hi, Yes, "sample" would be nice. With the new storage engine (MVStore), it should be possible to support it quite easily. It's also good to have for the query optimizer. There is something similar: "sample_size": http://h2database.com/html/grammar.html?highlight=SAMPLE_SIZE&search=sample_siz#selec

[h2] UnsupportedClassVersionError for User Defined Function

2014-04-29 Thread V
Hello, I'm trying to create an H2 function/alias from TeamCity, our Continuous Integration server using Maven, Flyway, and h2-maven-plugin. TeamCity has JDK 5, 6, and 7. My project needs to use JDK 6. When I set up TeamCity and maven-compiler-plugin to use JDK6, I'm still getting Unsupported

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread Noel Grandin
There is a conflict. The first time through testSimple(), it expects to see an IOException, but it sees NonWritableChannelException. The second time through testSimple, it does see an IOException. So your change is causing it to fail the second time through testSimple(). I suspect that your "ov

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread PN
I did that. Here's what I see happening. With testClassPath() disabled, the test certainly progressed further until it threw, again, the same assertion error on IOException vs NonWritableChannelException expectation, which I thought I had already taken care of with my earlier edit. So what is

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread Noel Grandin
Just temporarily comment out the testClasspath() method code, it's not strictly relevant to your filesystem changes. On 2014-04-29 10:47, PN wrote: Thanks for spotting the cause. Since my file-system code will refuse to run without bootclasspath/p, is there anything I can do on the H2 side to

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread PN
You are spot on, only that I wouldn't call it "messing with" :-) I'm overriding 4 classes of the java.io package (File, FileInputStream, FileOutputStream, and RandomAccessFile) to allow for a 'transparent' use of my custom file-system by legacy Java applications that don't know of and, so, cann

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread Noel Grandin
Are you messing with your bootstrap class path? Because the only way getClass().getClassLoader() returns null is if the class was loaded from the bootstrap class path, which should not be the case here. On 2014-04-29 09:54, PN wrote: which is the following code: private void testClasspa

Re: [h2] Any troubleshooting tips for an H2 Pluggable File System?

2014-04-29 Thread PN
On Tuesday, April 29, 2014 10:39:31 AM UTC+5:30, Thomas Mueller wrote: > > > No, TestFileSystem works for me if run alone. What operating system and > file system do you use? Is your file system read-only maybe? > I'm running Fedora 18. No, my file-system is not read-only -- this is the file-