GithubHelp home page GithubHelp logo

Comments (5)

Mayism avatar Mayism commented on June 1, 2024

@alterEgo123 The dependency related to the error exists in the demo and has been imported to the app.java file (for example, the BookInfo class exists in the directory of .\src\main\java\com\huawei\agc\clouddb\quickstart\model).Check whether the compiled demo project is consistent with that in the repo file and try again.for more guides,please refer to documents.

from agc-demos.

alterEgo123 avatar alterEgo123 commented on June 1, 2024

@Mayism Even the JavaScript demo doesn't work. It returns this error

    at Function.CloudDBSdkUtils.getCloudGwUrl (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/node_modules/@agconnect/database-server/dist/utils/CloudDBSdkUtils.js:34:56)
    at new HttpsCommunicator (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/node_modules/@agconnect/database-server/dist/communicator/https/HttpsCommunicator.js:79:64)
    at AGConnectCloudDB.CloudDBService (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/node_modules/@agconnect/database-server/dist/services/CloudDBService.js:29:30)
    at new AGConnectCloudDB (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/node_modules/@agconnect/database-server/dist/services/AGConnectCloudDB.js:31:28)
    at Function.AGConnectCloudDB.initialize (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/node_modules/@agconnect/database-server/dist/services/AGConnectCloudDB.js:49:37)
    at new CloudDBZoneWrapper (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/model/CloudDBZoneWrapper.js:15:38)
    at start (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/Start.js:6:32)
    at Object.<anonymous> (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/Start.js:56:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it
queryBooks=> TypeError: Cannot read property 'executeQuery' of undefined
    at CloudDBZoneWrapper.startAtQuery (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/model/CloudDBZoneWrapper.js:114:55)
    at start (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/Start.js:36:30)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
queryBooks=> TypeError: Cannot read property 'executeAverageQuery' of undefined
    at CloudDBZoneWrapper.averageQuery (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/model/CloudDBZoneWrapper.js:125:55)
    at start (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/Start.js:39:30)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
TypeError: Cannot read property 'runTransaction' of undefined
    at CloudDBZoneWrapper.deleteOverdueBooks (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/model/CloudDBZoneWrapper.js:143:54)
    at start (/home/rsf/Desktop/agc/agc-demos/Server/agc-clouddb-demo-javascript/src/Start.js:44:34)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
CloudDBClient is null, try re-initialize it
CloudDBClient is null, try re-initialize it

I have changed my credentials file and created the Cloud DB Zone as mentioned in the tutorial.

from agc-demos.

Mayism avatar Mayism commented on June 1, 2024

@alterEgo123 the property of 'executeQuery' depends on the javascript server sdk of clouddb. maybe you should integrate it firstly to solve the error.

from agc-demos.

alterEgo123 avatar alterEgo123 commented on June 1, 2024

'undefined' refers to cloudDBZoneClient in CloudDBZoneWrapper which is not being initialized, even though I've set credentialPath and zoneName

from agc-demos.

devwithzachary avatar devwithzachary commented on June 1, 2024

Hello, @alterEgo123 can you please provide the full stack trace of the java error. I shall take a look at this for you, lets focus on the java error first. If you do want to look into the javascript as well let's keep it on a separate ticket to avoid confusion.

Thank you!

from agc-demos.

Related Issues (3)

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.