Wednesday, February 03, 2010

Package skype-2.1.0.81-fc.i586.rpm is not signed

Workaround:
/etc/yum.repos.d$ sudo mv skype.repo skype.repo.bak

Update:
$> sudo yum update

Putback:
/etc/yum.repos.d$ sudo mv skype.repo.bak skype.repo

/var is full and needs cleanup

Step 1: Determine which folder in /var is full (Clean /var)

$> sudo du -csh /var/*

Now you need to dive deeper to figure out the culprits.

Typically the /var/log may be full or contains a lot of log messages. Get rid of the large log files.

Step 2:If your /var/cache/yum is large/full and needs cleanup (Clean /var/cache/yum).

$> sudo yum clean packages

If this does not bring the size of the folder down.
$> sudo yum clean all

Step 3: If you have upgraded Fedora via preupgrade, then your /var/cache/yum/preupgrade folder is large. (Clean /var/cache/yum/preupgrade)

$>sudo rm -fr /var/cache/yum/preupgrade*

Thursday, January 28, 2010

Error: elementGetText() function expects text only elment but START_ELEMENT was encountered

If you see the following exception,
====================================================================
javax.xml.stream.XMLStreamException: ParseError at [row,col]:
Message: elementGetText() function expects text only elment but START_ELEMENT was encountered.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.getElementText(Unknown Source)
at com.sun.xml.internal.stream.XMLEventReaderImpl.getElementText(Unknown Source)
at javax.xml.stream.util.EventReaderDelegate.getElementText(Unknown Source)
=====================================================================

it means that your STAX based parser is not handling the embedded xml properly. Your parser is expecting a regular text element and doing XMLEventReader.getElementText() call.

Solutions:
1) Bad: You can convert all "<" of your embedded xml to & l t ; (characters brought together).
2) Good: Let the parser peek at the next event and see if it is embedded xml and handle properly.