Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OChannelBinaryServer]Error on unmarshalling content. Class: c #2924

Closed
laa opened this issue Oct 13, 2014 · 3 comments
Closed

OChannelBinaryServer]Error on unmarshalling content. Class: c #2924

laa opened this issue Oct 13, 2014 · 3 comments
Assignees
Milestone

Comments

@laa
Copy link
Member

laa commented Oct 13, 2014

Hi,

I have got logs in recent days, I don't understand why it happens, it worked before. Really strange!

"
2014-10-10 13:30:39:869 INFO /127.0.0.1:26725 - Read 237 bytes: ☺c ∩┐╜UPDATE Campaign SET EntityInfo.State = :state WHERE (EntityInfo.State <> :state) AND @Rid in ( SELECT Parent FROM RecipientSource WHERE (EntityInfo.State <> :state) AND (List = :p0) )☺ ▼params:{"p0":#39:9,"state":200} [OChannelBinaryServer]Error on unmarshalling content. Class: c
Error on unmarshalling field 'params' in record #-1:-1 with value:
-> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
-> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
-> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
-> java.lang.reflect.Constructor.newInstance(Constructor.java:525)
-> com.orientechnologies.common.log.OLogManager.exception(OLogManager.java:189)
-> com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV.fromString(ORecordSerializerSchemaAware2CSV.java:248)
-> com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.fromStream(ORecordSerializerStringAbstract.java:657)
-> com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.deserializeFields(ORecordSchemaAwareAbstract.java:436)
-> com.orientechnologies.orient.core.record.impl.ODocument.deserializeFields(ODocument.java:1471)
-> com.orientechnologies.orient.core.record.impl.ODocument.checkForFields(ODocument.java:1607)
-> com.orientechnologies.orient.core.record.impl.ODocument.rawField(ODocument.java:538)
-> com.orientechnologies.orient.core.record.impl.ODocument.field(ODocument.java:558)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:143)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:73)
-> com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:73)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1122)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:342)
-> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:169)
-> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
Cannot load map because the type was not the expected: key=state(type class java.lang.String), value=200(type class java.lang.String)
"

Any help will be very appreciated!

@tdhung80
Copy link

The issue is on OrientDB v1.7.

I have not tried it on v2.0-M, but I will do it soon.

@kadishmal
Copy link

Using:

  • OrientDB 2.0-rc1
  • oriento Node module

The error in server:

Error on unmarshalling content. Class: com.orientechnologies.orient.core.sql.OCommandSQL
java.lang.NumberFormatException: For input string: "-"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Long.parseLong(Long.java:433)
    at java.lang.Long.<init>(Long.java:702)
    at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.getTypeValue(ORecordSerializerStringAbstract.java:472)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:145)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:77)
    at com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:77)
    at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1149)
    at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:385)
    at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:216)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
Sent run-time exception to the client /10.0.2.2:53337: com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling content. Class: com.orientechnologies.orient.core.sql.OCommandSQL
com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling content. Class: com.orientechnologies.orient.core.sql.OCommandSQL
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.orientechnologies.common.log.OLogManager.error(OLogManager.java:171)
    at com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:80)
    at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1149)
    at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:385)
    at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:216)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
Caused by: java.lang.NumberFormatException: For input string: "-"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Long.parseLong(Long.java:433)
    at java.lang.Long.<init>(Long.java:702)
    at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract.getTypeValue(ORecordSerializerStringAbstract.java:472)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:145)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.fromStream(OCommandRequestTextAbstract.java:77)
    at com.orientechnologies.orient.core.serialization.serializer.stream.OStreamSerializerAnyStreamable.fromStream(OStreamSerializerAnyStreamable.java:77)
    ... 4 more

The error occurs when creating a vertex in oriento:

orientDB
    .create('VERTEX', 'User')
    .set({
      id: 12345,
      name: '韓宜洙',
      staffno: '1234567',
      department: '財務システムチーム',
      position: 'ZOO株式会社',
      job: '社員',
      email: 'email@gmail.com',
      outemail: 'outemail@gmail.com',
      cellphone: '-',
      officephone: '4351',
      importtime: '2012-11-22T17:07:01.134Z',
      sysflag: null,
      defaultproject: null,
      preferences: 'null',
      line_id: null 
    })
    .one()
    .then(function (vertex) {
        console.log('Created vertex.', vertex);
        done();
    })
    .catch(done);

Notice the value of cellphone which is a dash (-). For what reason OrientDB would complain accepting a dash as a property value?

Edit 1: The same error is encountered if the officephone is dash.

Edit 2: Basically the error occurs if the value starts with a dash. When outemail="-email-@gmail.com", the request throws an error.

This issue can be related to #3210 and #3151.

@lvca lvca added this to the 2.0 Final milestone Jan 2, 2015
@tglman
Copy link
Member

tglman commented Jan 14, 2015

added checks on the '-' sign, fixed, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants