Git Product home page Git Product logo

petstore-component-java's Introduction

petstore-component-java

Petstore Java component template for the elastic.io platform

This is a component template which we commonly refer as the first step of the development for creating a component to deploy into our platform. This component comes with a basic architecture which can be used on our platform. You can clone it and use it. However, if you plan to deploy it into elastic.io platform you must follow sets of instructions to succeed.

Before you Begin

Before you can deploy any code into our system you must be a registered elastic.io platform user. Please see our home page at https://www.elastic.io to learn how.

Any attempt to deploy a code into our platform without a registration would be rejected.

After the registration and opening of the account you must upload your SSH Key into our platform.

If you fail to upload you SSH Key you will get permission denied error during the deployment.

Getting Started

After registration and uploading of your SSH Key you can proceed to deploy it into our system. At this stage we suggest you to:

  • Create a team to work on your new component. This is not required but will be automatically created using random naming by our system so we suggest you name your team accordingly.
  • Create a repository where your new component is going to reside inside the team that you have just created.
$ git clone https://github.com/elasticio/petstore-component-java.git your-repository

$ cd your-repository

Now you can edit your version of petstore-component-java component and build your desired component. Or you can just PUSHit into our system to see the process in action:

$ git remote add elasticio [email protected]:your-repository.git

$ git push elasticio master

Obviously the naming of your team and repository is entirely up-to you and if you do not put any corresponding naming our system will auto generate it for you but the naming might not entirely correspond to your project requirements.

File Structure

The structure of petstore-component-java component is quite flexible. elastic.io platform expects only two files to be present in the main directory. These are the component.json and package.json. Our documentation on how to build a component in Java has more about each file and their function.

petstore-component-java's People

Contributors

a3a3e1 avatar hannatrotsenko avatar shkarupanick avatar zuker avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

petstore-component-java's Issues

verify credentials fails

The recently updated version of the component (6.02.2020) gives an error on verify credentials part.

Starting your Docker container ...
Starting slug download ...
Starting application in apprunner...
[INFO  tini (1)] Spawned child process '/run.sh' with pid '7'
Successfully downloaded and extracted slug file
08:32:32,633 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
08:32:33,296 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
08:32:33,297 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
08:32:32,633 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/apprunner/build/elasticio/dependencies/sailor-jvm-2.1.2.jar!/logback.xml]
08:32:32,786 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
08:32:32,859 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:22 - no applicable action for [pattern], current ElementPath  is [[configuration][appender][encoder][pattern]]
08:32:32,633 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
08:32:32,801 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
08:32:33,297 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
08:32:32,650 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@369f73a2 - URL [jar:file:/home/apprunner/build/elasticio/dependencies/sailor-jvm-2.1.2.jar!/logback.xml] is not of type file
08:32:32,806 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
08:32:33,302 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1f28c152 - Registering current configuration as safe fallback point
(no message)
Starting execution of verifyCredentials
Component descriptor from classpath: /component.json
(no message)
Caused by: java.lang.IllegalStateException: Component descriptor /component.json is not found in the classpath
at io.elastic.sailor.Service.main(Service.java:58)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at io.elastic.sailor.Service.getServiceInstanceAndExecute(Service.java:79)
Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.IllegalStateException: Component descriptor /component.json is not found in the classpath
for the 1st parameter of io.elastic.sailor.Service.<init>(Service.java:31)
while locating io.elastic.sailor.Service
(no message)
at io.elastic.sailor.ComponentDescriptorResolver.loadComponentJson(ComponentDescriptorResolver.java:37)
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
while locating io.elastic.sailor.ComponentDescriptorResolver
at io.elastic.sailor.ComponentDescriptorResolver.<init>(ComponentDescriptorResolver.java:25)
1 error
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
at io.elastic.sailor.Service.createServiceInstanceAndExecute(Service.java:73)
at io.elastic.sailor.ComponentDescriptorResolver.<init>(ComponentDescriptorResolver.java:26)
at io.elastic.sailor.ComponentDescriptorResolver$$FastClassByGuice$$4dbcba79.newInstance(<generated>)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110)
... 4 more
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
[INFO  tini (1)] Main child exited normally (with status '1')

Umlaut is displayed like unsupported symbol

STR:

  1. Add new flow
  2. Set Salesforce as trigger, choose Querry
  3. Use the next query SELECT Name FROM Contact LIMIT 10
  4. Retrieve samples, choose sample Name: Daniel Hägele
  5. Set JAVA Petstore as action
  6. Mapp Name with Daniel Hägele and status with e.g. sold
  7. Retrieve sample from Petstore
    AR: Umlaut is displayed like unsupported symbol
    image

ER: No changes for umlaut

Uses an outdated gradle version

Following warning pops up during the build:

Support for builds using Gradle older than 2.6 was deprecated and will be removed in 5.0. You are currently using Gradle version 2.0. You should upgrade your Gradle build to use Gradle 2.6 or later.

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.