Hi All,
Happens with Oracle Service Bus and Eclipse.
I have found, that stopping coherence and osb and then starting coherence and starting osb solved for me the issue.
Hoped it helped,
Dor
Feb 16, 2015
Oct 23, 2014
Infinispan listener event owner
It took me a while to find this, it exists from version 5.3 of infinispan.
I have a cluster and i want that only the instance which got that event and insert it into the cache will handle - in my case, save it to the db. Other replicated instances caches listeners won't work because in this particular event they aren't the owners .
You just need to annotate this above your listener : @Listener(primaryOnly = true)
See this for further information
I have a cluster and i want that only the instance which got that event and insert it into the cache will handle - in my case, save it to the db. Other replicated instances caches listeners won't work because in this particular event they aren't the owners .
You just need to annotate this above your listener : @Listener(primaryOnly = true)
Sep 18, 2014
org.hsqldb.HsqlException: data exception: string data, right truncation; table
Hi,
I had this exception while testing (junit) my code.
It seems that when you use +Hibernate.org Lob annotation and use HsqlDB, the default column size is probably less than the actual size you are trying to insert. In my case i annotated String with Lob (hibernate knows it should be clob) while my string length was huge -> got this exception.
To fix this, add hibernate column annotation with column length bigger like 15000 , this will solve it (for example of course).
Hoped it helped,
Dor
I had this exception while testing (junit) my code.
It seems that when you use +Hibernate.org Lob annotation and use HsqlDB, the default column size is probably less than the actual size you are trying to insert. In my case i annotated String with Lob (hibernate knows it should be clob) while my string length was huge -> got this exception.
To fix this, add hibernate column annotation with column length bigger like 15000 , this will solve it (for example of course).
Hoped it helped,
Dor
Labels:
blob,
clob,
column,
exception,
hibernate,
hsqldatabase,
hsqldb,
hsqlexception,
junit,
length,
lob,
test
Aug 27, 2014
Exec Maven Plugin vm arguments
i configured mine to be used by using dedicated specific profile, here is the part from my pom.
<profiles>
<profile>
<id>myTest</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<mainClass>com.mytest.Test</mainClass>
<!-- below are the command line parameters separated -->
<arguments>
<argument>0</argument>
</arguments>
<!-- for example -Dcom.blabla=1 put it under system properties with key and value -->
<systemProperties>
<systemProperty><key>com.blabla</key><value>1</value></systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
hope it helps.
Dor
<profiles>
<profile>
<id>myTest</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<mainClass>com.mytest.Test</mainClass>
<!-- below are the command line parameters separated -->
<arguments>
<argument>0</argument>
</arguments>
<!-- for example -Dcom.blabla=1 put it under system properties with key and value -->
<systemProperties>
<systemProperty><key>com.blabla</key><value>1</value></systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
hope it helps.
Dor
Labels:
-D,
arguments,
exec:exec,
exec:java,
execution,
executions,
java,
maven,
mojo,
plugin,
plugins,
vm arguments
Aug 18, 2014
fedora 19 alacarte doesn't add icons to new applications
After wondering for a while,
I have found that you need to go to ~/.local/share/applications
I have found that you need to go to ~/.local/share/applications
edit each alacarte desktop file and fill manually the icon location and extension.
Worked for me.
Dor
Jun 24, 2014
dpkg: error: parsing file '/var/lib/dpkg/status' near line 9941 package 'libcloog-isl4:amd64'
After wasting let's say one hour, this solved it for me :
'sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status'
Dor
'sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status'
Dor
Jun 19, 2014
Set up gradle to build with alternative java
I am using ubuntu 14.04 LTS
Having java 7 and 8 installed from oracle.
Using alternative and working with java 7 but one of my projects use java 8.
gradle build --version
returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.
Solution: creating in the java 8 project, in the root directory, file named gradle.properties
inside it for example in my case :
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/
this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.
Hoped it helped,
Dor
Having java 7 and 8 installed from oracle.
Using alternative and working with java 7 but one of my projects use java 8.
gradle build --version
returns that it works with java 7 -> since most of my projects use this version, i don't want to change this.
Solution: creating in the java 8 project, in the root directory, file named gradle.properties
inside it for example in my case :
org.gradle.java.home=/usr/lib/jvm/java-8-oracle/
this way, when you will do gradle build in this project, gradle will use this version instead of the one defined for him.
Hoped it helped,
Dor
Subscribe to:
Posts (Atom)