oslc / iotp-adaptor Goto Github PK
View Code? Open in Web Editor NEWAn OSLC adaptor for IBM Watson IoT Platform and Bluemix resources, created using Lyo Designer
License: Eclipse Public License 1.0
An OSLC adaptor for IBM Watson IoT Platform and Bluemix resources, created using Lyo Designer
License: Eclipse Public License 1.0
Large preview dialogs are either blank or show the same content as the small preview. This is because handling the large preview uses the HTML rendering, and this is currently modified by user code to redirect the user to the Watson IoT platform. The code to render HTML is essentially dead code.
We need updates to the Lyo Designer templates to generate separate REST services for large previews (same as for small preview). This will provide flexibility for implementations.
I followed the steps in the docs but the iotp fails to launch.
29-Jan-2020 10:07:52.030 SEVERE [main] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [CredentialsFilter]
...
Caused by: java.lang.NullPointerException: inStream parameter is null
at java.base/java.util.Objects.requireNonNull(Objects.java:247)
at java.base/java.util.Properties.load(Properties.java:404)
at com.ibm.oslc.adaptor.iotp.impl.CredentialsFilter.(CredentialsFilter.java:85)
This line of the CredentialsFilter.java code tries to load /config.properties.
85 configProperties.load(TRSObject.class.getResourceAsStream("/config.properties"));
Is config.properties a file? This file does not exist. Is that because it's in a .gitignore? The instructions do not mention this file. It is referred to in multiple parts of the code. Only two other lyo projects on GitHub have a config.properties file (org.eclipse.lyo.adapter.magicdraw/configuration/config.properties), oslc4simulink/configuration/config.properties) but I have no information about where this file should go and what should be in this file, if that is really the problem.
I want to get iotp-adaptor running, but what step am I missing?
This file should be stored in a secure place on a sample server.
apiKey and user credentials - should be encrypted.
import com.ibm.team.repository.common.util.ObfuscationHelper;
// use this to encrypt the apiKey and TRS user's password to put in config.properties
encryptedPassword = ObfuscationHelper.encryptString(password)
System.out.println(encryptedPassword)
password = ObfuscationHelper.decryptString((String)clientProperties.getProperty("password"));
This is because the base and change log are not persisted across server restarts. The TRS provider should be viewed as a simple sample that provides minimal TRS capability. There's lots more that would need to be done for a production TRS provider.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.