ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Paschenko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-4312) DML: update causes IgniteCheckedException: Invalid flag value: -2
Date Sun, 27 Nov 2016 22:51:58 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15700442#comment-15700442
] 

Alexander Paschenko edited comment on IGNITE-4312 at 11/27/16 10:51 PM:
------------------------------------------------------------------------

And I again get {{Invalid flag value: -2}} when I do this (again re-assign binary field value,
but this time for {{BinaryObjectImpl}}, not enum):

{code:java}
{ // Weird binary object field operations showcase
    BinaryObject bval = ig.binary().toBinary(val);

    Object objVal = bval.field("innerTypesCol"); // objVal is BinaryObjectImpl at this point

    BinaryObjectBuilder bldr = ig.binary().builder(bval.type().typeName());

    bldr.setField("innerTypesCol", objVal);

    bldr.build();
}
{code}

Fails as follows:
{code}
Exception in thread "main" class org.apache.ignite.binary.BinaryObjectException: Invalid flag
value: -2
	at org.apache.ignite.internal.binary.builder.BinaryBuilderReader.parseValue(BinaryBuilderReader.java:761)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:285)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:100)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:53)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:292)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:100)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:53)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:316)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.build(BinaryObjectBuilderImpl.java:186)
	at org.apache.ignite.examples.datagrid.ExtSqlExample.main(ExtSqlExample.java:199)
{code}

Again, no SQL/DML involved. is this by design that I can't pass a binary object to a builder
as a field value? Or is this a bug?


was (Author: al.psc):
And I again get {{Invalid flag value: -2}} when I do this (again re-assign binary field value,
but this time for {{BinaryObjectImpl}}, not enum):

{code:java}
{ // Weird binary enum operations showcase
    BinaryObject bval = ig.binary().toBinary(val);

    Object objVal = bval.field("innerTypesCol"); // objVal is BinaryObjectImpl at this point

    BinaryObjectBuilder bldr = ig.binary().builder(bval.type().typeName());

    bldr.setField("innerTypesCol", objVal);

    bldr.build();
}
{code}

Fails as follows:
{code}
Exception in thread "main" class org.apache.ignite.binary.BinaryObjectException: Invalid flag
value: -2
	at org.apache.ignite.internal.binary.builder.BinaryBuilderReader.parseValue(BinaryBuilderReader.java:761)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:285)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:100)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:53)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:292)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:100)
	at org.apache.ignite.internal.binary.builder.BinaryBuilderSerializer.writeValue(BinaryBuilderSerializer.java:53)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:316)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.build(BinaryObjectBuilderImpl.java:186)
	at org.apache.ignite.examples.datagrid.ExtSqlExample.main(ExtSqlExample.java:199)
{code}

Again, no SQL/DML involved. is this by design that I can't pass a binary object to a builder
as a field value? Or is this a bug?

> DML: update causes IgniteCheckedException: Invalid flag value: -2
> -----------------------------------------------------------------
>
>                 Key: IGNITE-4312
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4312
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 1.8
>            Reporter: Sergey Kozlov
>            Assignee: Alexander Paschenko
>             Fix For: 1.8
>
>         Attachments: IGNITE-4312.zip
>
>
> {noformat}
> [15:58:04] Ignite node stopped OK [uptime=00:00:00:111]
> Exception in thread "main" javax.cache.CacheException: class org.apache.ignite.IgniteException:
Invalid flag value: -2
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:761)
> 	at org.apache.ignite.examples.datagrid.ExtSqlExample.main(ExtSqlExample.java:201)
> 	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:140)
> Caused by: class org.apache.ignite.IgniteException: Invalid flag value: -2
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:817)
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.query(IgniteCacheProxy.java:749)
> 	... 6 more
> Caused by: class org.apache.ignite.IgniteCheckedException: Invalid flag value: -2
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:1788)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.queryTwoStep(GridQueryProcessor.java:810)
> 	... 7 more
> Caused by: class org.apache.ignite.binary.BinaryObjectException: Invalid flag value:
-2
> 	at org.apache.ignite.internal.binary.builder.BinaryBuilderReader.parseValue(BinaryBuilderReader.java:761)
> 	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:285)
> 	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.build(BinaryObjectBuilderImpl.java:186)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.doUpdate(DmlStatementsProcessor.java:524)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.executeUpdateStatement(DmlStatementsProcessor.java:256)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFields(DmlStatementsProcessor.java:134)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFieldsTwoStep(DmlStatementsProcessor.java:160)
> 	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryTwoStep(IgniteH2Indexing.java:1266)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor$4.applyx(GridQueryProcessor.java:812)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor$4.applyx(GridQueryProcessor.java:810)
> 	at org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(IgniteOutClosureX.java:36)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:1765)
> 	... 8 more
> Process finished with exit code 1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message