I think that might just move the problem to the validate method but I will test commenting out the nullpointer throwing myself, unless there is some other stuff that you know of.

The weird thing also Stefan is that when using HSQLDB the value column is never null but an empty string "" so the error doesn't appear there.
I'm wondering if the storing of parameters has changed also so that now slide stores empty strings rather than null values but didn't in 2.1.


cheers
Eiki, idega.



On 19.1.2005, at 14:05, Stefan Lützkendorf wrote:

Well,
I didn't see any problem adding this test, and in my environment it works, but id don't use RDBMS stuff.


I'll remove this check.
Stefan

Eirikur Hrafnsson wrote:

Hi,
I switched from my test environment to an already made Slide 2.1 repo. running on Oracle and just upgraded to the Slide head source.
And I have a fatal error in Slide when trying to get anything because a nullpointerexception is thrown intentionally in NodeProperty if a value of a property is null.
From StandardRDBMSAdapter:
statement =
connection.prepareStatement(
"select PROPERTY_NAME, PROPERTY_NAMESPACE, PROPERTY_VALUE, PROPERTY_TYPE, IS_PROTECTED from PROPERTIES where VERSION_ID = ?");
statement.setLong(1, versionId);
res = statement.executeQuery();
while (res.next()) {
String propertyName = res.getString(1);
String propertyNamespace = res.getString(2);
NodeProperty property =
new NodeProperty(
propertyName,
res.getString(3),
propertyNamespace,
res.getString(4),
res.getInt(5) == 1);
properties.put(propertyNamespace + propertyName, property);
}
} finally {
close(statement, res);
}
From NodeProperty:
/**
* Constructor.
*
* @param name Name
* @param value Value
* @param namespace Namespace
*/
public NodeProperty(String name, Object value, String namespace) {
if (value == null) throw new NullPointerException();
this.propertyName = PropertyName.getPropertyName(name, namespace);
this.value = value;
this.type = "";
this.kind = determineKind(this.propertyName.getNamespace(),
this.propertyName.getName());
}
In Slide 2.1 there wasn't a null check and I'm wondering why it was added since lots of properties (in my database at least)
have null values such as "source", "resourcetype" etc.
Best regards
Eiki, idega.
On 19.1.2005, at 11:00, Stefan Lützkendorf wrote:
Eirikur,
I know this need too, but we have not a solution yet :-(.

Stefan


Eirikur Hrafnsson wrote:

Hi all,
I have an existing slide repo. that I need indexed by the Lucene indexers and extractors so they give me some search results :)
Any way to do that?
Best Regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com
-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Stefan Lützkendorf  --  [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Best Regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- Stefan Lützkendorf -- [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Best Regards

Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to