Unsupported operation camel and Ethereum - apache-camel

I am trying to use apache camel with ethereum. I want to retrieve the balance for an account but I got an error that the operation is unsupported.
Where can I view the supported operations ?
Below is the error message
Unsupported operation ETH_GET_BALANCE

For the component you can have a look here: https://camel.apache.org/components/latest/web3j-component.html
While in the producer you have the possible operation:
https://github.com/apache/camel/blob/master/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jProducer.java
We need to add the operations supported in the docs. Can you please open a JIRA issue for this here: https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-15238?filter=allopenissues

Related

delete_model() error when cleaning up AWS sagemaker

I followed the tutorial on https://aws.amazon.com/getting-started/hands-on/build-train-deploy-machine-learning-model-sagemaker/
I got an error when trying to clean up with the following code.
xgb_predictor.delete_endpoint()
xgb_predictor.delete_model()
ClientError: An error occurred (ValidationException) when calling the DescribeEndpointConfig operation: Could not find the endpoint configuration.
Does it mean I need to delete the model first instead?
I checked on the console and deleted the model manually.
No, you don't need to delete the model prior to deleting the endpoint. From the error logs looks like its not able to find the endpoint configuration. Can you verify if you are setting delete_endpoint_config to True
xgb_predictor.delete_endpoint(delete_endpoint_config=True)
Additionally, you can verify if the endpoint_config is still avaiable on the AWS console.

How to config activemq DB persistence to Oracle?

I need steps to configure Active MQ persistence to Oracle database. I was reading some blogs but couldn't find a solid solution. Can someone please guide me as I am new when it comes to configuring Active MQs.
Thanks in advance.
Edit 1 -
I followed steps mentioned on official blog, but ended up getting below error.
URL : https://activemq.apache.org/how-to-configure-a-new-database
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 92 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 92; columnNumber: 48; cvc-complex-type.2.4.a: Invalid content was found starting with element 'jdbcPersistence'. One of '{"http://activemq.apache.org/schema/core":jdbcPersistenceAdapter, "http://activemq.apache.org/schema/core":journalPersistenceAdapter, "http://activemq.apache.org/schema/core":kahaDB, "http://activemq.apache.org/schema/core":levelDB, "http://activemq.apache.org/schema/core":mKahaDB, "http://activemq.apache.org/schema/core":memoryPersistenceAdapter, "http://activemq.apache.org/schema/core":replicatedLevelDB, WC[##other:"http://activemq.apache.org/schema/core"]}' is expected.
Edit 2 -
I was able to achieve this. Now issue is messages are getting stored in DB as in BLOB format but I want them to be stored as in plain/text. Can someone please help?
Messages have to be stored as a BLOB, since ActiveMQ supports many non-text formats bytes, map, object and stream message types.

DH keypair exception in salesforce

I want to get access token of go instant api and I when I did this it send me following error
17:21:46:505 EXCEPTION_THROWN [10]|System.CalloutException:
java.lang.RuntimeException: Could not generate DH keypair
Please help me with this problem.
The issue has been resolved. It was due to a misconfiguration on our TLS endpoint that made it incompatible with Apex Callouts (and some Java versions). I've confirmed Apex Callouts are once again working.
It sounds like your SSL Library doesn't support 2048-bit DH parameters. Take a look at the BouncyCastle SSL Library as an alternative to what you're using. https://www.bouncycastle.org/latest_releases.html If you continue to have problems after changing to BouncyCastle, please email us at support at goinstant.com so we can do a more in-depth debug of your problems.
re: https://developers.goinstant.com/v1/rest-api/authentication.html#comment-1397240856

Read logs for multiple major versions ids?

I'm trying to fetch logs (using LogService API Java SDK 1.7.0) for multiple major version ids.
Example: fetch logs for app versions 1 and 2:
...
logquery.majorVersionIds(Arrays.asList("1","2"));
ls.fetch(logquery);
...
but it throws this exception:
com.google.appengine.api.log.InvalidRequestException: Exactly one major version id must be specified.
at com.google.appengine.api.log.LogServiceImpl$1.convertException(LogServiceImpl.java:108)
at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:106)
at com.google.appengine.api.log.LogServiceImpl.fetch(LogServiceImpl.java:31)
at com.google.appengine.api.log.LogServiceImpl.fetch(LogServiceImpl.java:22)
Am I doing something wrong or this is not supported?
Java doc says:
public LogQuery majorVersionIds(java.util.List<java.lang.String> versionIds)
A setter that allows the user to specify the major app versions whose log data should be read.
This is a problem of the documentation. The error you are getting is telling you that only one version_id can be specified at the time. The python docs state that:
Currently, you can specify only one version_id per fetch call.
In the future you can create an issue in the external issue tracker.
ps: I filed an internal issue to fix this.

status of AppEngine

Is there another way to find out the status of services on AppEngine other than the link given in the error below?
LogAndContinueErrorHandler handleServiceError: Service error in memcache
com.google.appengine.api.memcache.MemcacheServiceException: Memcache getIdentifiables: exception getting multiple keys
...
Caused by: com.google.apphosting.api.ApiProxy$CapabilityDisabledException: The API call memcache.Set() is temporarily unavailable: Memcache is temporarily unavailable. Please see http://code.google.com/status/appengine for more information.
I check it but it shows an error rate of 0% for all categories.
The specific memcache issue now appears to be resolved, but in general you should use the Capabilities API (Java and Python) to check if an API is currently unavailable.

Resources