UDF creation on Ksql db - java

Trying to create UDF on KSQL on linux servers using gradle. We are using Confluent 7.1.1 and Gradle 6.3. Using the mentioned steps in the link to create UDF.
https://developer.confluent.io/tutorials/udf/ksql.html
While running the ./gradlew build we are facing the below error.
Task :compileJava FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':compileJava'.
Could not resolve all files for configuration ':compileClasspath'.
Could not resolve io.confluent.ksql:ksql-udf:5.4.7.
Required by:
project :
> Could not resolve io.confluent.ksql:ksql-udf:5.4.7.
> Could not get resource 'https://packages.confluent.io/maven/io/confluent/ksql/ksql-udf/5.4.7/ksql-udf-5.4.7.pom'.
> Could not GET 'https://packages.confluent.io/maven/io/confluent/ksql/ksql-udf/5.4.7/ksql-udf-5.4.7.pom'.
> Connection reset
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 832ms

Related

React Native android release error A problem occurred evaluating project ':app'. > Could not find method splits() for arguments error

i have a problem when receiving application release
yarn android --variant release i'm running this command and gives me the following error;
yarn android --variant release
yarn run v1.22.19
$ react-native run-android --variant release
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
5 actionable tasks: 5 up-to-date
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\user_0\Desktop\AwesomeProject\android\app\build.gradle' line: 216
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method splits() for arguments [build_9cj0nm0uy7u5p9mmnrxyr8ysi$_run_closure6#3c34a482] on project ':app' of type org.gradle.api.Project.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BU�LD FAILED in 3s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installRelease -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\user_0\Desktop\AwesomeProject\android\app\build.gradle' line: 216
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method splits() for arguments [build_9cj0nm0uy7u5p9mmnrxyr8ysi$_run_closure6#3c34a482] on project ':app' of type org.gradle.api.Project.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BU�LD FAILED in 3s
at makeError (C:\Users\user_0\Desktop\AwesomeProject\node_modules\execa\index.js:174:9)
at C:\Users\user_0\Desktop\AwesomeProject\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\user_0\Desktop\AwesomeProject\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Users\user_0\Desktop\AwesomeProject\node_modules\#react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
https://reactnative.dev/docs/signed-apk-android i followed these steps exactly. i tried again 3-4 times but nothing changes. how can i fix this ?

How do I fix the "Configuration with name 'compile' not found" Error when building my Fabric Mod

When trying to build the Fabric ExampleMod(link) I get this Error:
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\Programmieren\Minecraft\Mods\Advanced Totems\build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'fabric-loom', version: '0.5-SNAPSHOT']
> Failed to apply plugin 'fabric-loom'.
> Configuration with name 'compile' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
I have followed this tutorial(link)
What I have tried:
Updating Java to Version 16
./gradlew --stop
starting debug mode
Please help!

I am new to flutter app development. Got handover of the flutter project and tried to run, but getting Build Failed Exception by terminal command

My app was working fine and all of a sudden this error popped up and no longer works
Launching lib\main.dart on Redmi Note 9S in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\abumo.gradle\caches\transforms-2\files-2.1\e8b87230ecc8f4137f972d2f499610c1\play-services-ads-lite-20.0.0\AndroidManifest.xml:27:5-43:15: AAPT: error: unexpected element found in .
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 46s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin apple_sign_in...
Running Gradle task 'assembleAarRelease'...
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'apple_sign_in'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 5s
Exception: The plugin apple_sign_in could not be built due to the issue above.
pleas help me

Flutter FireBase Storage setup .......... can't even build empty project

I have watched every YouTube video and I can't get right
I followed the firebase docs step by step
still it gives me this
error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':firebase_storage:javaPreCompileRelease'.
> Could not resolve all files for configuration ':firebase_storage:releaseCompileClasspath'.
> Could not find firebase-common.jar (com.google.firebase:firebase-common:17.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-common/17.0.0/firebase-common-17.0.0.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 45s
Running Gradle task 'assembleRelease'... 46.4s
Gradle task assembleRelease failed with exit code 1
Process finished with exit code 1
Please help.
I lowered the version of Flutter storage package to 3.0.0 and it works fine.

How to build java chaincode behind proxy

Does anyone know how to build java chaincode behind proxy?
On instantiating a java chaincode behind proxy I'm getting the following error.
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "Gradle build
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.+.
Required by:
project :
> Failed to list versions for org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed: connect timed out
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
1 actionable task: 1 executed
BUILD FAILED in 37s
"
I'm using sample chaincode (fabirc-samples/chaincode/chaincode-example02/java)
I solved the problem by myself.
The solution is building image that has proxy setting like below one before instantiating chaincode.
FROM hyperledger/fabric-javaenv
ENV JAVA_OPTS "-Dhttps.proxyPort=8080 -Dhttps.proxyHost=your.proxy.com - Dhttp.proxyPort=8080 -Dhttp.proxyHost=your.proxy.com"

Categories

Resources