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



PROBLEM:

Caused by: java.lang.NullPointerException
<------>at org.gjt.xpp.sax2.Driver.getIndex(Driver.java:98)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor$AttributesImpl.getIndex(InterningXmlVisitor.java:112)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.XsiNilLoader.selectLoader(XsiNilLoader.java:62)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:53)
<------>at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$IntercepterLoader.startElement(ElementBeanInfoImpl.java:231)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:455)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:433)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
<------>at org.gjt.xpp.sax2.Driver.parseSubTree(Driver.java:362)
<------>at org.gjt.xpp.sax2.Driver.parse(Driver.java:310)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
<------>at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
<------>at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
<------>at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.getPlugin(PluginLoader.java:253)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.getPlugin(PluginLoader.java:212)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.loadPlugin(PluginLoader.java:140)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.loadPlugins(PluginLoader.java:115)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.init(PluginLoader.java:84)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.(PluginLoader.java:72)
<------>at org.apache.cxf.tools.wsdlto.core.PluginLoader.getInstance(PluginLoader.java:121)
<------>at org.apache.cxf.tools.wsdlto.WSDLToJava.(WSDLToJava.java:45)


By using the plugin


org.apache.cxf
cxf-codegen-plugin



SOLUTION:
To exclude the dom4j dependency!


mvn dependency:tree > tree.txt


To find where dom4j comes.

Exclude the dependency:



found_dependency
found_dependency
test


dom4j
dom4j





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

http://www.oasis-open.org/committees/documents.php?num_per_wg=100&wg_abbrev=cmis&sort_field=d1.submission_date&sort_type=DESC






WorkspaceInitializer: parameter

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

 





lib qt4 WebKit

PROBLEM:
error while loading shared libraries: libQtWebKit.so.4
SOLUTION:
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):
"applet_"

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 :)

HOWTO:

1. Download JDK at http://java.sun.com/javase/downloads/widget/jdk6.jsp
------------
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
./jdk-6u18-linux-i586.bin


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

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
[sharesmb]
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
http://www.littlesvr.ca/isomaster/community/

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
gateway 192.168.0.2
wpa-psk secret
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA
wpa-ssid dlink
auto eth1


192.168.0.2 - 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

nameserver 192.168.0.2


Previous posts:
http://zavizionov.blogspot.com/2009/04/dsl-wifi-ubuntu-static.html
http://zavizionov.blogspot.com/2009/02/wifi-configure.html