Git Product home page Git Product logo

alto-domain-agent's People

Contributors

fno2010 avatar yjlcoder avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yjlcoder

alto-domain-agent's Issues

alto-nova cannot work well with java external call

Error log as following:

[Thread-21] ERROR org.snlab.unicorn.handlers.OrchestratorQueryHandler - Traceback (most recent call last):  File "/usr/bin/nova", line 4, in <module>    __import__('pkg_resources').run_script('alto-nova==0.1', 'nova')  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 748, in run_script    self.require(requires)[0].run_script(script_name, ns)  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1517, in run_script    exec(code, namespace, namespace)  File "/usr/lib/python3.4/site-packages/alto_nova-0.1-py3.4.egg/EGG-INFO/scripts/nova", line 12, in <module>    response_body = json.loads(sys.argv[1])  File "/usr/lib64/python3.4/json/__init__.py", line 318, in loads    return _default_decoder.decode(s)  File "/usr/lib64/python3.4/json/decoder.py", line 343, in decode    obj, end = self.raw_decode(s, idx=_w(s, 0).end())  File "/usr/lib64/python3.4/json/decoder.py", line 361, in raw_decode    raise ValueError(errmsg("Expecting value", s, err.value)) from NoneValueError: Expecting value: line 1 column 1 (char 0)

Maybe the python version issue.

Wrong accepted action

With request {'action': 'new', 'query-type': 'path-query', 'query-desc': [], 'query-id': 1}, the agent throw an exception. Here is the dump.

[qtp1692036285-22] ERROR org.snlab.unicorn.handlers.OrchestratorQueryHandler - Invalid query body:
com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'action': was expecting ('true', 'false' or 'null')
 at [Source: action=new&query-type=resource-query&query-id=2; line: 1, column: 7]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:2839)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1903)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:749)
        at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3850)
        at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3799)
        at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2858)
        at org.snlab.unicorn.handlers.OrchestratorQueryHandler.parseBody(OrchestratorQueryHandler.java:68)
        at org.snlab.unicorn.handlers.OrchestratorQueryHandler.handle(OrchestratorQueryHandler.java:76)
        at org.snlab.unicorn.UnicornService$ControlServiceResource.getControlStreamQuery(UnicornService.java:117)

HTTP Fluent Client: Response content has been already consumed

Exception in thread "Thread-21" java.lang.IllegalStateException: Response content has been already consumed
	at org.apache.http.client.fluent.Response.assertNotConsumed(Response.java:56)
	at org.apache.http.client.fluent.Response.handleResponse(Response.java:88)
	at org.apache.http.client.fluent.Response.returnContent(Response.java:97)
	at org.snlab.unicorn.adapter.ODLAdapter.getResource(ODLAdapter.java:225)
	at org.snlab.unicorn.handlers.OrchestratorQueryHandler.doResourceQuery(OrchestratorQueryHandler.java:154)
	at org.snlab.unicorn.handlers.OrchestratorQueryHandler.doQuery(OrchestratorQueryHandler.java:137)
	at org.snlab.unicorn.handlers.OrchestratorQueryHandler.lambda$loopForQueryUpdate$0(OrchestratorQueryHandler.java:197)
	at java.lang.Thread.run(Thread.java:748)

No RSA in the current resource query? I think

I think the current resource query do not provide RSA. So it is the full path vector information in the resource query response.

Require an external process to handle stateless RSA request. No need a http server, I prefer an external subprocess wrapper.

Migrate javax.json to jackson if possible

Some classes are using javax.json to serialize/deserialize JSON strings and objects. It is time to migrate the parser to com.fastxml.jackson. It will clean up the code and improve the maintainability.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.