<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>victor.octavski.thought</title>
	<atom:link href="http://victoroctavski.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://victoroctavski.wordpress.com</link>
	<description>victor.octavski.thought</description>
	<lastBuildDate>Thu, 24 Sep 2009 13:05:37 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='victoroctavski.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5d1261c172b16e513c26b936c5265320?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>victor.octavski.thought</title>
		<link>http://victoroctavski.wordpress.com</link>
	</image>
			<item>
		<title>hibernate problem @ OC4J</title>
		<link>http://victoroctavski.wordpress.com/2009/09/24/hibernate-problem-oc4j/</link>
		<comments>http://victoroctavski.wordpress.com/2009/09/24/hibernate-problem-oc4j/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 12:55:32 +0000</pubDate>
		<dc:creator>victoroctavski</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[antlr]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[HQL]]></category>
		<category><![CDATA[oc4j]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[toplink]]></category>

		<guid isPermaLink="false">http://victoroctavski.wordpress.com/?p=26</guid>
		<description><![CDATA[Reproducing error :
Deploying process were fine. Seems no problem at all.
But, when i start the application and login to it -which did a database process-, it threw ClassNotFoundException.
org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
This error threw when I was utilizing any HQL things.
The conflicting antlr.jar files seem to be the cause of the problem.
There is a conflict between antlr.jar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=26&subd=victoroctavski&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Reproducing error</strong> :<br />
Deploying process were fine. Seems no problem at all.<br />
But, when i start the application and login to it -which did a database process-, it threw <em>ClassNotFoundException</em>.</p>
<blockquote><p>org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken</p></blockquote>
<p>This error threw when I was utilizing any HQL things.<br />
The conflicting antlr.jar files seem to be the cause of the problem.</p>
<p>There is a conflict between antlr.jar which is included in the TopLink folder of the oc4j distribution and antlr-2.7.6.jar in my application library classpath which is used by Hibernate.</p>
<p>It seems OC4J prioritize to use the TopLink version.</p>
<p><strong>Two solving solutions </strong>:<br />
1. <span style="text-decoration:line-through;">Unless you are using toplink, just delete the entire toplink folder.</span> (avoid this one !)<br />
2. <a title="Doug Clarke's Blog" href="http://java-persistence.blogspot.com/" target="_blank">Doug Clarke</a> show me the better one :<br />
The better solution for handling conflicts between TopLink and other libraries when TopLink is not being used<br />
is to remove it as a shared library for you application.<br />
- Modify <em>orion-application.xml</em> under web-apps&#8217; <em>application-deployments</em> folder.<br />
This can be done by adding with the following:</p>
<pre class="brush: xml;">
&lt;imported-shared-libraries&gt;
&lt;remove-inherited name=&quot;oracle.toplink&quot;/&gt;
&lt;/imported-shared-libraries&gt;
</pre>
<p>- Restart OC4j instance.</p>
<p>It worked like a charm.</p>
<p><strong>Different approach solution in production environment by oreo_masta</strong>.<br />
Above configuration worked out slick for OC4J standalone server.<br />
When it came time to deploy to OAS production server, the configuration did not stick.<br />
Follow <a href="http://download.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#CIHFABFI" target="_blank">this </a>instructions of this article to remove the import upon deploying time.</p>
<p><strong>Environment</strong><br />
- OC4J 10g 10.1.3.5.0 (Standalone)<br />
- Hibernate3<br />
- Spring 2.5.x<br />
- JDK 1.5</p>
<p><strong>References </strong>: <a href="http://forums.oracle.com/forums/thread.jspa?messageID=2022327" target="_blank">1</a>, <a href="http://download.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm">2</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoroctavski.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoroctavski.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoroctavski.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoroctavski.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoroctavski.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoroctavski.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoroctavski.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoroctavski.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoroctavski.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoroctavski.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=26&subd=victoroctavski&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://victoroctavski.wordpress.com/2009/09/24/hibernate-problem-oc4j/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab957bc0c499d90b85ff6dc163c501d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">victoroctavski</media:title>
		</media:content>
	</item>
		<item>
		<title>jBpm rocks !</title>
		<link>http://victoroctavski.wordpress.com/2009/03/12/jbpm-rocks/</link>
		<comments>http://victoroctavski.wordpress.com/2009/03/12/jbpm-rocks/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 03:06:36 +0000</pubDate>
		<dc:creator>victoroctavski</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://victoroctavski.wordpress.com/?p=21</guid>
		<description><![CDATA[Lately i got my feet wet with jBpm.
I will write several posts about it.
v
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=21&subd=victoroctavski&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Lately i got my feet wet with <a href="http://www.jbpm.org/">jBpm</a>.<br />
I will write several posts about it.</p>
<p>v</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoroctavski.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoroctavski.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoroctavski.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoroctavski.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoroctavski.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoroctavski.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoroctavski.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoroctavski.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoroctavski.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoroctavski.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=21&subd=victoroctavski&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://victoroctavski.wordpress.com/2009/03/12/jbpm-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab957bc0c499d90b85ff6dc163c501d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">victoroctavski</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Hibernate with DB2-AS/400</title>
		<link>http://victoroctavski.wordpress.com/2009/01/11/using-hibernate-with-db2-as400/</link>
		<comments>http://victoroctavski.wordpress.com/2009/01/11/using-hibernate-with-db2-as400/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 18:29:31 +0000</pubDate>
		<dc:creator>victoroctavski</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[AS/400]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[Hibernate]]></category>

		<guid isPermaLink="false">http://victoroctavski.wordpress.com/?p=16</guid>
		<description><![CDATA[I was using Hibernate to do some CRUD-things to AS/400 DB2 tables.
And then, i got this message error on stacktrace of the Hibernate exception :

java.sql.SQLException: [SQL7008] MY_TABLE in MY_DATABASE not valid for operation.

After googling by using the error codes.
Got the clue that i was dealing with the object journal issue.
It&#8217;s like, you must journal the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=16&subd=victoroctavski&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was using <a href="http://www.hibernate.org">Hibernate</a> to do some CRUD-things to AS/400 DB2 tables.<br />
And then, i got this message error on stacktrace of the Hibernate exception :</p>
<pre class="brush: delphi;">
java.sql.SQLException: [SQL7008] MY_TABLE in MY_DATABASE not valid for operation.
</pre>
<p>After googling by using the error codes.<br />
Got the <a href="http://www.websina.com/bugzero/faq.html#exception-as400">clue</a> that i was dealing with the object journal issue.<br />
It&#8217;s like, you must journal the table before you do some CRUD-things on it.</p>
<p>It says that you should did some kicking-ass AS/400 commands for journaling table :<br />
1. Create the journal receiver by using the Create Journal Receiver (CRTJRNRCV) command, as follows:</p>
<pre class="brush: delphi;">
CRTJRNRCV JRNRCV(LIB_NAME/JOURNAL_RECEIVER_NAME) THRESHOLD(100000) TEXT('PUT_WHATEVER_TEXT_DESC_HERE')
</pre>
<p>2. Create a journal for your object file by using the Create Journal (CRTJRN) command:</p>
<pre class="brush: delphi;">
CRTJRN JRN(LIB_NAME/JOURNAL_NAME) JRNRCV(LIB_NAME/JOURNAL_RECEIVER_NAME) MNGRCV(*SYSTEM) DLTRCV(*YES) TEXT('PUT_WHATEVER_TEXT_DESC_HERE')
</pre>
<p>3. Start journaling the physical file by using the Start Journal Physical File (STRJRNPF) command:</p>
<pre class="brush: delphi;">
STRJRNPF FILE(LIB_NAME/TABLE_SYS_NAME) JRN(LIB_NAME/JOURNAL_NAME) OMTJRNE(*OPNCLO)
</pre>
<p>Voila. It solved.</p>
<p>Since i&#8217;m not an AS/400 engineer, i did not write the detail about AS/400 commands that i was used above. Feel free to <a href="http://www.google.com">google</a> it.<br />
And again, Google has saved my weekend. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>v</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoroctavski.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoroctavski.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoroctavski.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoroctavski.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoroctavski.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoroctavski.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoroctavski.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoroctavski.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoroctavski.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoroctavski.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=16&subd=victoroctavski&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://victoroctavski.wordpress.com/2009/01/11/using-hibernate-with-db2-as400/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab957bc0c499d90b85ff6dc163c501d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">victoroctavski</media:title>
		</media:content>
	</item>
		<item>
		<title>Assigning timezone explicitly in Java Webstart app</title>
		<link>http://victoroctavski.wordpress.com/2008/11/05/assigning-timezone-explicitly-in-java-webstart-app/</link>
		<comments>http://victoroctavski.wordpress.com/2008/11/05/assigning-timezone-explicitly-in-java-webstart-app/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 11:24:29 +0000</pubDate>
		<dc:creator>victoroctavski</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jnlp]]></category>
		<category><![CDATA[jre142]]></category>
		<category><![CDATA[jws]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[webstart]]></category>

		<guid isPermaLink="false">http://victoroctavski.wordpress.com/?p=5</guid>
		<description><![CDATA[Did anyone here ever set Timezone properties for Java Webstart application ?
I&#8217;ve tried it using VM argument &#8216;user.timezone&#8217;. And yes, it was going smoothly when i tested it as an standalone Java application argument (using -Duser.timezone).
But, when it was applied at JNLP script, it did nothing. It didn&#8217;t change application timezone to my pre-define &#8216;user.timezone&#8217; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=5&subd=victoroctavski&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Did anyone here ever set Timezone properties for Java Webstart application ?</p>
<p>I&#8217;ve tried it using VM argument &#8216;user.timezone&#8217;. And yes, it was going smoothly when i tested it as an standalone Java application argument (using -Duser.timezone).</p>
<p>But, when it was applied at JNLP script, it did nothing. It didn&#8217;t change application timezone to my pre-define &#8216;user.timezone&#8217; value. Still using my OS timezone. It seems JNLP ignored that properties.</p>
<p>FYI, i was using JRE 1.4.2.05.</p>
<p>I prefer modifying the JNLP script rather than modifying the java code, since i do not need to build a new jar file for my app. But it seems it didn&#8217;t work unless i modify the java code.</p>
<p>So, I added this code to the main class which was loaded in a first priority.</p>
<pre class="brush: java;">
TimeZone.setDefault(TimeZone.getTimeZone(&quot;Asia/Bangkok&quot;));
</pre>
<p>And it worked. No matter what type of timezone was set in client terminal, our apps still using the new-predefined one.</p>
<p>I think the &#8220;user.timezone&#8221; is considered as an &#8217;something-unsafe&#8217; property and can not be set by JNLP script.</p>
<p>It seems there is a bug in the previous version of JRE 1.5 due to this <a href="http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=6b9d55215e8685ffffffff9a61810d4f68191?bug_id=6242673">link</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoroctavski.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoroctavski.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoroctavski.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoroctavski.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoroctavski.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoroctavski.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoroctavski.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoroctavski.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoroctavski.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoroctavski.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=5&subd=victoroctavski&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://victoroctavski.wordpress.com/2008/11/05/assigning-timezone-explicitly-in-java-webstart-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab957bc0c499d90b85ff6dc163c501d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">victoroctavski</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world !!</title>
		<link>http://victoroctavski.wordpress.com/2008/11/05/hello-world/</link>
		<comments>http://victoroctavski.wordpress.com/2008/11/05/hello-world/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 05:20:20 +0000</pubDate>
		<dc:creator>victoroctavski</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[abstracts]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi lad.
Welcome to victoroctavski.wordpress.com.
This is my first post.
I modify this post from the default one.
Let see if i can blog faster than my shadow.  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=1&subd=victoroctavski&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi lad.</p>
<p>Welcome to victoroctavski.wordpress.com.</p>
<p>This is my first post.</p>
<p>I modify this post from the default one.</p>
<p>Let see if i can blog faster than my shadow. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoroctavski.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoroctavski.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoroctavski.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoroctavski.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoroctavski.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoroctavski.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoroctavski.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoroctavski.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoroctavski.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoroctavski.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoroctavski.wordpress.com&blog=5411889&post=1&subd=victoroctavski&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://victoroctavski.wordpress.com/2008/11/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ab957bc0c499d90b85ff6dc163c501d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">victoroctavski</media:title>
		</media:content>
	</item>
	</channel>
</rss>