<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8844286293876990466</id><updated>2012-02-16T12:43:17.287+01:00</updated><title type='text'>Sander Buskens</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pinsol.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://pinsol.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sander</name><uri>http://www.blogger.com/profile/07418570863816608206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8844286293876990466.post-8701079458471839237</id><published>2011-05-05T14:27:00.003+02:00</published><updated>2011-05-06T10:31:13.354+02:00</updated><title type='text'>JDBC comments</title><content type='html'>Today we deployed a new version of an application which uses a Sybase stored procedure to transfer some data across. On the first attempt to process some data we got a very interesting yet weird error in our logs when the application tried to execute this stored procedure:&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;SQL Error: 102, SQLState: 42000&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;com.sybase.jdbc3.jdbc.SybSQLException: Incorrect syntax near '@p0'.&lt;/div&gt;&lt;br /&gt;Our log revealed the stored procedure to be called however as:&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;exec some_stored_procedure(3)&lt;/div&gt;&lt;br /&gt;We figured something was probably wrong with the stored procedure so used a SQL client to perform the same call. Funnily enough the stored procedure worked just fine.&lt;br /&gt;&lt;br /&gt;Something had to be wrong with our code yet we had not changed any code related to executing the stored procedure.&lt;br /&gt;&lt;br /&gt;We reverted to a previous build where the error didn't occur and verified everything was working ok in that version.&lt;br /&gt;&lt;br /&gt;We then configured log4jdbc to see the exact SQL going over the wire, ran the previous version of the application and then tried the faulty new build.&lt;br /&gt;&lt;br /&gt;The SQL being executed was exactly the same save for one minute detail: in the new build all JDBC queries were prefixed by /* ... */ comments. Surely this couldn't be the source of the problem as all insert and update operations were being executed just fine and were also prefixed by comments.&lt;br /&gt;Also we hadn't changed anything to do with emitting JDBC comments, or had we? We looked at the Hibernate config in the Spring application context file and found out that indeed hibernate.use_sql_comments had the value of 'true'.&lt;br /&gt;So we changed this to false and reran the the code that triggered the stored procedure.&lt;br /&gt;Everything was now working well.&lt;br /&gt;&lt;br /&gt;I guess Sybase really doesn't like JDBC comments in combination with stored procedures ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844286293876990466-8701079458471839237?l=pinsol.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pinsol.blogspot.com/feeds/8701079458471839237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pinsol.blogspot.com/2011/05/jdbc-comments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/8701079458471839237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/8701079458471839237'/><link rel='alternate' type='text/html' href='http://pinsol.blogspot.com/2011/05/jdbc-comments.html' title='JDBC comments'/><author><name>Sander</name><uri>http://www.blogger.com/profile/07418570863816608206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8844286293876990466.post-7372884901260273096</id><published>2011-04-05T08:05:00.000+02:00</published><updated>2011-04-05T08:05:19.047+02:00</updated><title type='text'>java.lang.LinkageError in Weblogic</title><content type='html'>Yesterday I deployed a webservice which had been built by a third party on our Weblogic server.&lt;br /&gt;This went fairly well apart from a few minor issues and everything was up and running faster than I'd anticipated.&lt;br /&gt;After the application server and application had started I entered the endpoint URL which worked just fine, next step was to retrieve the WSDL so I could create a few simple test requests with SoapUI.&lt;br /&gt;Retrieving the WSDL resulted in an error page displaying an all too familiair exception:&lt;br /&gt;&lt;span style="font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt;"&gt;java.lang.LinkageError: Class javax/xml/namespace/QName violates loader constraints&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I'm sure we all now about it by now but in case we don't: don't package API classes if you don't have to, as different versions are usually already on the application server classpath resulting in the exception mentioned above.&lt;br /&gt;&lt;br /&gt;Nine out of ten times these API jars "accidentally" end up in your war/ear as they're pulled in as a Maven dependency so I make a habit of checking the war/ear from time to time (when dependencies have been added) and excluding any unwanted API jars.&lt;br /&gt;&lt;br /&gt;In this case it turned out a version of xpp was being used that packaged this particular class, bumping up the version number solved the problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844286293876990466-7372884901260273096?l=pinsol.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pinsol.blogspot.com/feeds/7372884901260273096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pinsol.blogspot.com/2011/04/javalanglinkageerror-in-weblogic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/7372884901260273096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/7372884901260273096'/><link rel='alternate' type='text/html' href='http://pinsol.blogspot.com/2011/04/javalanglinkageerror-in-weblogic.html' title='java.lang.LinkageError in Weblogic'/><author><name>Sander</name><uri>http://www.blogger.com/profile/07418570863816608206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8844286293876990466.post-5004302325227726343</id><published>2011-04-05T07:42:00.000+02:00</published><updated>2011-04-05T07:45:58.927+02:00</updated><title type='text'>It's about time really</title><content type='html'>So I've decided to finally start up a blog. The idea has been playing on my mind for a while and seeing more and more of my colleagues starting up blogs I figured it's about time really.&lt;br /&gt;&lt;br /&gt;So what am I going to blog about? Mostly IT related stuff I'd say. A couple of years ago I setup this private Wiki on my dedicated server and started putting solutions to problems I'd come across in there. Going all security paranoid I secured this Wiki with 2-way SSL and needless to say a couple of years down the line the Wiki is not being maintained anymore as I've long since lost the client certificate.&lt;br /&gt;&lt;br /&gt;So blogging about the technical problems I come across on a regular basis at work and at home will basically serve three purposes: a) I build up my knowledge base, b) it's public so I'll have a harder time locking myself out and c) from time to time the solutions I blog about will be of help to others out there which is wonderful as knowledge is there to be shared in my humble opinion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844286293876990466-5004302325227726343?l=pinsol.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pinsol.blogspot.com/feeds/5004302325227726343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://pinsol.blogspot.com/2011/04/its-about-time-really.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/5004302325227726343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844286293876990466/posts/default/5004302325227726343'/><link rel='alternate' type='text/html' href='http://pinsol.blogspot.com/2011/04/its-about-time-really.html' title='It&apos;s about time really'/><author><name>Sander</name><uri>http://www.blogger.com/profile/07418570863816608206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
