Wednesday, March 31, 2010

NullPointerException org.gjt.xpp.sax2.Driver.getIndex with cxf-codegen-plugin

If you faced with stacktrace as below:

mvn clean install -X -e


Caused by: java.lang.NullPointerException
<------>at org.gjt.xpp.sax2.Driver.getIndex(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor$AttributesImpl.getIndex(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader.selectLoader(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(
<------>at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$IntercepterLoader.startElement(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(
<------>at org.gjt.xpp.sax2.Driver.parseSubTree(
<------>at org.gjt.xpp.sax2.Driver.parse(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(
<------>at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
<------>at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(

By using the plugin


To exclude the dom4j dependency!

mvn dependency:tree > tree.txt

To find where dom4j comes.

Exclude the dependency:



And fuck off the "pull-parser".
Add it to the exclusions.

Monday, March 29, 2010

CMIS specification and documents

OASIS Content Management Interoperability Services (CMIS) TC Public Documents

WorkspaceInitializer: parameter

*WARN * [main] WorkspaceInitializer: [ws1] auto-init-root-nodetype (nt:unstructured) parameter is DEPRECATED ! Use instead.
To add "initializer" between "container" and "cache" components.


lib qt4 WebKit

error while loading shared libraries:
sudo apt-get install libqt4-webkit

Friday, March 26, 2010

Ubuntu: How to set a custom format for clock and date for clock applet

Run the command:
$ gconf-editor

Search (Ctrl+F):

Find clock applet

format is "custom"
custom_format is "%Y-%m-%d %H:%M:%S %a w%W"

HOWTO install Sun JDK for Ubuntu

I use:
1. Ubuntu 9.04
2. JDK 6 Update 18
3. "alexey" is my user name :)


1. Download JDK at
Platform - "Linux"
Cick "Continue"
Login for download - click "Skip this Step"
Click "jdk-6u18-linux-i586.bin"

2. Copy the downloaded file "jdk-6u18-linux-i586.bin" to the java folder

Chmod and run
chmod +x jdk-6u18-linux-i586.bin

If you have a problem with "Package libstdc++5 is not available"
create a symbolic link from to
:/usr/lib$ ln -s

Make linked directory

ln -s /home/alexey/java/jdk6 /home/alexey/java/jdk

Modified .bashrc file within your home folder with lines:

export JAVA_HOME=/home/alexey/java/jdk6/jdk
export PATH=$JAVA_HOME/bin:$PATH

To test write the command "java -version"

$ java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)

That's all.

Samba on Ubuntu 9.04

I did a post about samba configuration before at:

sudo apt-get install samba

Here is the updated configuration:
sudo gedit /etc/samba/smb.conf

security = share
path = /home/alexey/Desktop/sharesmb
comment = sharesmb
browseable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777

Restart the samba
sudo /etc/init.d/samba restart

To test this share just copy the url
to the Nautilus file browser Location.

Thursday, March 25, 2010

Eclipse: Save actions

Tuesday, March 23, 2010

Ubuntu how to edit iso image

Here is the ISO Master GUI program

Wifi connection with ubuntu 9.04 on Dell 1501

1. Install a driver
"Broadcom STA wireles driver"

2. /etc/network/interfaces

Add the lines below to the:
gksu gedit /etc/network/interfaces

iface eth1 inet dhcp
wpa-psk secret
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA
wpa-ssid dlink
auto eth1 - is a gateway IP
dhcp - is an option for dynamic IP
secret - is a password for access point
dlink - is a name of the point

3. /etc/resolv.conf
gksu gedit /etc/resolv.conf


Previous posts: