JDBC Wrapper format question

10 views
Skip to first unread message

Dan Skaggs

unread,
Dec 31, 2011, 8:43:52 PM12/31/11
to FusionReactor
I'm having an issue with FR's JDBC wrapper. I'm using Postgresql and
have set up my datasource as such:

jdbc:fusionreactor:wrapper:{jdbc:postgresql://127.0.0.1:5432/
demo};driver=org.postgresql.Driver

When I saved the datasource, it failed validation saying that it
couldn't find the specified Postgres driver. I downloaded the latest
JDBC 4 drivers and put the JAR file in Tomcat's lib folder and
restarted Tomcat.

After that the datasource validates okay but some of my queries are
returning syntax errors whenever I enable the JDBC wrapper (simple
stuff like SELECT count(field) FROM table ).

My question is, ColdFusion obviously was able to run these queries
before I downloaded the JDBC drivers. Does anyone know if there's a
different driver class name that I should be using in the last part of
the connection string that I could test out to see if it's an issue
with FR or an issue with the JDBC driver I'm telling it to use?

Thanks for any assistance.

Dan

charlie arehart

unread,
Dec 31, 2011, 10:18:21 PM12/31/11
to fusion...@googlegroups.com
Hey Dan, welcome to the list.

As for your challenge, I realize that getting a message saying the driver
couldn't be found might drive you to get new drivers, but that really wasn't
the answer, so you can likely undo that. :-) In fact, you could be having a
clash between those and the PostGres driver that come with CF.

Instead, you've hit a problem for which there is a known issue and solution.
Check out this technote:

http://www.fusion-reactor.com/support/kb/FRS-240.cfm

As for how you (or anyone with an error like this) might find such a
solution, I'll point out that the FR site has a support section
(http://www.fusion-reactor.com/fr/support.cfm), where you could for instance
drop in the error you got, which may have found it (whether in the technotes
or in this google group). (I appreciate you may well have tried it with some
specific error you got and found no answer. Indeed, I was surprised to see
that searching there for just "postgres" found only your new google group
message.)

You can also see a discussion of this issue above (again, not related to
Postgres) in the first few messages in this thread:

http://groups.google.com/group/fusionreactor/browse_thread/thread/28fa24e5fd
a10ce7/5f695b5f7aab34d2

Finally, as for the technote, you may notice that it says that it's usually
due to using drivers other than those built-in to CF. But I realize you
likely started out using the Postgres one that is built-in (meaning, when
you originally created the datasource in the CF Admin Datasource page, I
assume you selected postgres from the drop-down offered there.) In that
case, you were not in fact using a "third party driver", which you would do
if you had selected "other" form the drop down (though again, when you went
and downloaded the new drivers, you did then switch to using such an
"other", third-party driver. To be clear, I'm not referring to the creation
of the "wrapped" version of the datasource, which of course does use the
"other" driver option.)

But I see that it also says that this problem can happen when one has
manually installed FR. Did you by any chance do that? Just curious.

Either way, let's see if that technote's solution solves the problem for
you. If so, let us know.

And then do let us know also if it's that you had installed CF manually, or
perhaps you had originally used an "other" driver before ever trying to wrap
the DSN.

Hope that's helpful.

/charlie

> --
> You received this message because you are subscribed to the Google
> Groups "FusionReactor" group.
> To post to this group, send email to fusion...@googlegroups.com.
> To unsubscribe from this group, send email to
> fusionreacto...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fusionreactor?hl=en.


Dan Skaggs

unread,
Jan 1, 2012, 2:09:45 AM1/1/12
to FusionReactor
Thanks for the info Charlie.

I originally created the DSNs with CF's built-in Postgres option. It
was only when I tried to wrap them by manually configuring the "other"
type that I got the error.

The other point in the tech note though does apply to me. I have ACF9
deployed as a WAR file to Tomcat 7. I installed FR with the Linux
shell script as per the instructions but I had to manually configure
the new FR instance for my application to get it up and running.

I'll buzz through the tech note here in a bit and see if the steps in
there solve the issue for me.

Thanks again,
Dan


On Dec 31 2011, 9:18 pm, "charlie arehart"
<charlie_li...@carehart.org> wrote:
> Hey Dan, welcome to the list.
>
> As for your challenge, I realize that getting a message saying the driver
> couldn't be found might drive you to get new drivers, but that really wasn't
> the answer, so you can likely undo that. :-) In fact, you could be having a
> clash between those and the PostGres driver that come with CF.
>
> Instead, you've hit a problem for which there is a known issue and solution.
> Check out this technote:
>
> http://www.fusion-reactor.com/support/kb/FRS-240.cfm
>
> As for how you (or anyone with an error like this) might find such a
> solution, I'll point out that the FR site has a support section
> (http://www.fusion-reactor.com/fr/support.cfm), where you could for instance
> drop in the error you got, which may have found it (whether in the technotes
> or in this google group). (I appreciate you may well have tried it with some
> specific error you got and found no answer. Indeed, I was surprised to see
> that searching there for just "postgres" found only your new google group
> message.)
>
> You can also see a discussion of this issue above (again, not related to
> Postgres) in the first few messages in this thread:
>
> http://groups.google.com/group/fusionreactor/browse_thread/thread/28f...

Dan Skaggs

unread,
Jan 1, 2012, 7:16:31 PM1/1/12
to FusionReactor
Charlie...

I ran through the tech note earlier today and applied the fix as
specified there as well as removed the Postgres JDBC drivers I'd
downloaded. Once I restarted everything I started getting an Hibernate
error on every query (sorry, I don't have the exact error message
right now). Anyway, I decided to just roll back to my un-wrapped DSN
for now.We're going live with this application in the morning and you
know what the final hours before go-live are like.

I'll see about troubleshooting it further this week after the initial
crush from the launch has (hopefully) subsided. I may build a Linux VM
to test it later this week and will definitely let the list know if I
find anything useful.

Thanks again,
Dan


On Dec 31 2011, 9:18 pm, "charlie arehart"
<charlie_li...@carehart.org> wrote:
> Hey Dan, welcome to the list.
>
> As for your challenge, I realize that getting a message saying the driver
> couldn't be found might drive you to get new drivers, but that really wasn't
> the answer, so you can likely undo that. :-) In fact, you could be having a
> clash between those and the PostGres driver that come with CF.
>
> Instead, you've hit a problem for which there is a known issue and solution.
> Check out this technote:
>
> http://www.fusion-reactor.com/support/kb/FRS-240.cfm
>
> As for how you (or anyone with an error like this) might find such a
> solution, I'll point out that the FR site has a support section
> (http://www.fusion-reactor.com/fr/support.cfm), where you could for instance
> drop in the error you got, which may have found it (whether in the technotes
> or in this google group). (I appreciate you may well have tried it with some
> specific error you got and found no answer. Indeed, I was surprised to see
> that searching there for just "postgres" found only your new google group
> message.)
>
> You can also see a discussion of this issue above (again, not related to
> Postgres) in the first few messages in this thread:
>
> http://groups.google.com/group/fusionreactor/browse_thread/thread/28f...

charlie arehart

unread,
Jan 1, 2012, 7:32:54 PM1/1/12
to fusion...@googlegroups.com
OK, thanks for the update, Dan. Sorry that it didn't work out. It's possible
that in trying to get the split jar setup working (per the technote), while
under the crush of preparing for your prod rollout, you may have missed
something.

If you have time when things settle, yes it will be great to hear if first
you can recreate the original problem you had, and then can apply the
split-jar solution to make it go away. Certainly if you try it and still
can't get it working, do just share more info. You'll find that the
Intergral support folks here are wonderful. I don't think I've seen a
problem presented yet that they couldn't solve. :-)

Happy new year, to one and all.

Reply all
Reply to author
Forward
0 new messages