Hi

I think this can help:
https://github.com/orientechnologies/orientdb/issues/3365

in short: '|alter database custom standardElementConstraints=false|'

Bye
Emenuel

On 01/22/2015 03:26 PM, Fabian Renner wrote:
> There is no check if validation is enabled or not in:
> com.tinkerpop.blueprints.impls.orient.OrientElement#setPropertyInternal
>
> Am Donnerstag, 22. Januar 2015 16:24:14 UTC+1 schrieb Fabian Renner:
>
>     Hey guys, 
>
>
>     I do a massive insert in a orient graph db. 
>     I declared the massive insert intend and have values, that are
>     "null" in my to be imported records (NOT_NULL constraint is not
>     set!!!)
>
>     Then I get this exception:
>
>     Exception in thread "main" java.lang.IllegalArgumentException:
>     Property value can not be null
>     at
>     
> com.tinkerpop.blueprints.util.ExceptionFactory.propertyValueCanNotBeNull(ExceptionFactory.java:60)
>     at
>     
> com.tinkerpop.blueprints.impls.orient.OrientElement.validateProperty(OrientElement.java:536)
>     at
>     
> com.tinkerpop.blueprints.impls.orient.OrientElement.setPropertyInternal(OrientElement.java:621)
>     at
>     
> com.tinkerpop.blueprints.impls.orient.OrientElement.setProperties(OrientElement.java:150)
>     at de.foconis.DBFGraphImporter.doThisImport(DBFGraphImporter.java:67)
>     at de.foconis.DBFImporter.batchImportDBF(DBFImporter.java:151)
>     at de.foconis.DBFImporter.importDbf(DBFImporter.java:68)
>     at de.foconis.DBFImporter.startImporting(DBFImporter.java:54)
>     at de.foconis.Main.main(Main.java:61)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>     
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>     
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at
>     com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
>
>     I thought validation is disabled on massive insert intend???
>
>
>     The code I use to insert: 
>
>     |
>     OrientVertexv =graph.addVertex(String.format("class:%s",tableName));
>     Mapmap =rec.toMap();
>     v.setProperties(map);
>     |
>
>     the map contains "null" values.
>
>     This is stupid. I don't know what to do. 
>     Any help please???
>
> -- 
>
> ---
> You received this message because you are subscribed to the Google
> Groups "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to