Trying to build my first app on react-native , of an existing project but unfortunately getting an error while building the app by react-native run-android
seems everything working fine but getting this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
can anybody hints me whats wrong ?
Full error log =>
cd android && ./gradlew installDebug --stacktrace
Configure project :realm
WARNING: The following project options are deprecated and have been removed:
android.enableAapt2
This property has no effect, AAPT2 is now always used.
WARNING: The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.0.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Task :react-native-music-control:compileDebugJavaWithJavac FAILED
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:26: error: package androidx.media.app.NotificationCompat does not exist
import androidx.media.app.NotificationCompat.MediaStyle;
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:4: error: package androidx.media does not exist
import androidx.media.VolumeProviderCompat;
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:92: error: cannot find symbol
public static class VolumeListener extends VolumeProviderCompat {
^
symbol: class VolumeProviderCompat
location: class MusicControlListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:122: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:135: error: cannot find symbol
nb.setStyle(new MediaStyle().setMediaSession(session.getSessionToken()));
^
symbol: class MediaStyle
location: class MusicControlModule
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:298: error: cannot find symbol
int maxVol = info.hasKey("maxVolume") ? info.getInt("maxVolume") : volume.getMaxVolume();
^
symbol: method getMaxVolume()
location: variable volume of type VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:299: error: cannot find symbol
int vol = info.hasKey("volume") ? info.getInt("volume") : volume.getCurrentVolume();
^
symbol: method getCurrentVolume()
location: variable volume of type VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:323: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume.create(null, maxVol, vol));
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:385: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
if(remoteVolume) session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:390: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:96: error: cannot find symbol
super(changeable ? VOLUME_CONTROL_ABSOLUTE : VOLUME_CONTROL_FIXED, maxVolume, currentVolume);
^
symbol: variable VOLUME_CONTROL_ABSOLUTE
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:96: error: cannot find symbol
super(changeable ? VOLUME_CONTROL_ABSOLUTE : VOLUME_CONTROL_FIXED, maxVolume, currentVolume);
^
symbol: variable VOLUME_CONTROL_FIXED
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:101: error: cannot find symbol
return getVolumeControl() != VolumeProviderCompat.VOLUME_CONTROL_FIXED;
^
symbol: method getVolumeControl()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:101: error: cannot find symbol
return getVolumeControl() != VolumeProviderCompat.VOLUME_CONTROL_FIXED;
^
symbol: variable VolumeProviderCompat
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:104: error: method does not override or implement a method from a supertype
#Override
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:106: error: cannot find symbol
setCurrentVolume(volume);
^
symbol: method setCurrentVolume(int)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:110: error: method does not override or implement a method from a supertype
#Override
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:112: error: cannot find symbol
int maxVolume = getMaxVolume();
^
symbol: method getMaxVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:114: error: cannot find symbol
int volume = Math.max(Math.min(getCurrentVolume() + tick, maxVolume), 0);
^
symbol: method getCurrentVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:116: error: cannot find symbol
setCurrentVolume(volume);
^
symbol: method setCurrentVolume(int)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:122: error: cannot find symbol
currentVolume = getCurrentVolume();
^
symbol: method getCurrentVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:124: error: cannot find symbol
setCurrentVolume(currentVolume);
^
symbol: method setCurrentVolume(Integer)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:128: error: cannot find symbol
if(maxVolume == null) maxVolume = getMaxVolume();
^
symbol: method getMaxVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:130: error: cannot find symbol
if(changeable == isChangeable() && maxVolume == getMaxVolume()) return this;
^
symbol: method getMaxVolume()
location: class VolumeListener
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
24 errors
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:74)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:143)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:40)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33)
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:355)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:49)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:35)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:59)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:43)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:153)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:121)
at com.android.build.gradle.tasks.AndroidJavaCompile.compile(AndroidJavaCompile.kt:233)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
at
If you are using React Native >= 0.60 please ensure to migrate your dependencies from android.support to androidx by running npx jetify. Make sure that gradle.properties file contains following lines:
android.useAndroidX=true
android.enableJetifier=true
Related
Hello I am new to PyFlink. I try to convert a pandas table including strings to a DataStream object in Flink.
Take the following as an example code:
from pyflink.datastream import *
from pyflink.table import *
import pandas as pd
import numpy as np
env = StreamExecutionEnvironment.get_execution_environment()
t_env = StreamTableEnvironment.create(env)
env.set_parallelism(1)
# Create a Pandas DataFrame
#pdf = pd.DataFrame(np.random.rand(1000, 5))
pdf = pd.DataFrame(["abc", "def"])
# Create a PyFlink Table from a Pandas DataFrame
table = t_env.from_pandas(pdf)
table.execute().print()
# interpret the insert-only Table as a DataStream again
res_ds = t_env.to_data_stream(table)
# add a printing sink and execute in DataStream API
res_ds.print()
env.execute()
I get the following error:
Caused by: java.lang.ClassCastException: class org.apache.flink.table.data.binary.BinaryStringData cannot be cast to class java.lang.String (org.apache.flink.table.data.binary.BinaryStringData is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
The problem seems to be the conversion from the table to the datastream object. The first print function is executed.
Output:
$ python PandasConv.py
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.flink.api.python.shaded.py4j.reflection.MethodInvoker$1 (file:/home/user/Flink/Python_Projects/flinkenv/lib/python3.8/site-packages/pyflink/opt/flink-python-1.16.0.jar) to method java.time.ZoneRegion.getId()
WARNING: Please consider reporting this to the maintainers of org.apache.flink.api.python.shaded.py4j.reflection.MethodInvoker$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
+----+--------------------------------+
| op | 0 |
+----+--------------------------------+
| +I | abc |
| +I | def |
+----+--------------------------------+
2 rows in set
Traceback (most recent call last):
File "PandasConv.py", line 25, in <module>
env.execute()
File "/home/user/Flink/Python_Projects/flinkenv/lib/python3.8/site-packages/pyflink/datastream/stream_execution_environment.py", line 764, in execute
return JobExecutionResult(self._j_stream_execution_environment.execute(j_stream_graph))
File "/home/user/Flink/Python_Projects/flinkenv/lib/python3.8/site-packages/py4j/java_gateway.py", line 1321, in __call__
return_value = get_return_value(
File "/home/user/Flink/Python_Projects/flinkenv/lib/python3.8/site-packages/pyflink/util/exceptions.py", line 146, in deco
return f(*a, **kw)
File "/home/user/Flink/Python_Projects/flinkenv/lib/python3.8/site-packages/py4j/protocol.py", line 326, in get_return_value
raise Py4JJavaError(
py4j.protocol.Py4JJavaError: An error occurred while calling o46.execute.
: org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
at org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:144)
at org.apache.flink.runtime.minicluster.MiniClusterJobClient.lambda$getJobExecutionResult$3(MiniClusterJobClient.java:141)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at org.apache.flink.runtime.rpc.akka.AkkaInvocationHandler.lambda$invokeRpc$1(AkkaInvocationHandler.java:268)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at org.apache.flink.util.concurrent.FutureUtils.doForward(FutureUtils.java:1277)
at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.lambda$null$1(ClassLoadingUtils.java:93)
at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:68)
at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.lambda$guardCompletionWithContextClassLoader$2(ClassLoadingUtils.java:92)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
at org.apache.flink.runtime.concurrent.akka.AkkaFutureUtils$1.onComplete(AkkaFutureUtils.java:47)
at akka.dispatch.OnComplete.internal(Future.scala:300)
at akka.dispatch.OnComplete.internal(Future.scala:297)
at akka.dispatch.japi$CallbackBridge.apply(Future.scala:224)
at akka.dispatch.japi$CallbackBridge.apply(Future.scala:221)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at org.apache.flink.runtime.concurrent.akka.AkkaFutureUtils$DirectExecutionContext.execute(AkkaFutureUtils.java:65)
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:68)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:284)
at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:284)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:284)
at akka.pattern.PromiseActorRef.$bang(AskSupport.scala:621)
at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:24)
at akka.pattern.PipeToSupport$PipeableFuture$$anonfun$pipeTo$1.applyOrElse(PipeToSupport.scala:23)
at scala.concurrent.Future.$anonfun$andThen$1(Future.scala:532)
at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)
at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: org.apache.flink.runtime.JobException: Recovery is suppressed by NoRestartBackoffTimeStrategy
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.handleFailure(ExecutionFailureHandler.java:139)
at org.apache.flink.runtime.executiongraph.failover.flip1.ExecutionFailureHandler.getFailureHandlingResult(ExecutionFailureHandler.java:83)
at org.apache.flink.runtime.scheduler.DefaultScheduler.recordTaskFailure(DefaultScheduler.java:256)
at org.apache.flink.runtime.scheduler.DefaultScheduler.handleTaskFailure(DefaultScheduler.java:247)
at org.apache.flink.runtime.scheduler.DefaultScheduler.onTaskFailed(DefaultScheduler.java:240)
at org.apache.flink.runtime.scheduler.SchedulerBase.onTaskExecutionStateUpdate(SchedulerBase.java:738)
at org.apache.flink.runtime.scheduler.SchedulerBase.updateTaskExecutionState(SchedulerBase.java:715)
at org.apache.flink.runtime.scheduler.SchedulerNG.updateTaskExecutionState(SchedulerNG.java:78)
at org.apache.flink.runtime.jobmaster.JobMaster.updateTaskExecutionState(JobMaster.java:477)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.lambda$handleRpcInvocation$1(AkkaRpcActor.java:309)
at org.apache.flink.runtime.concurrent.akka.ClassLoadingUtils.runWithContextClassLoader(ClassLoadingUtils.java:83)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcInvocation(AkkaRpcActor.java:307)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleRpcMessage(AkkaRpcActor.java:222)
at org.apache.flink.runtime.rpc.akka.FencedAkkaRpcActor.handleRpcMessage(FencedAkkaRpcActor.java:84)
at org.apache.flink.runtime.rpc.akka.AkkaRpcActor.handleMessage(AkkaRpcActor.java:168)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24)
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20)
at scala.PartialFunction.applyOrElse(PartialFunction.scala:123)
at scala.PartialFunction.applyOrElse$(PartialFunction.scala:122)
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:171)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:172)
at akka.actor.Actor.aroundReceive(Actor.scala:537)
at akka.actor.Actor.aroundReceive$(Actor.scala:535)
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580)
at akka.actor.ActorCell.invoke(ActorCell.scala:548)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
at akka.dispatch.Mailbox.run(Mailbox.scala:231)
at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
... 5 more
Caused by: java.lang.ClassCastException: class org.apache.flink.table.data.binary.BinaryStringData cannot be cast to class java.lang.String (org.apache.flink.table.data.binary.BinaryStringData is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
at org.apache.flink.table.runtime.typeutils.serializers.python.StringSerializer.serialize(StringSerializer.java:41)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serializePositionBased(RowSerializer.java:306)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serialize(RowSerializer.java:280)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serialize(RowSerializer.java:72)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serializePositionBased(RowSerializer.java:306)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serialize(RowSerializer.java:280)
at org.apache.flink.api.java.typeutils.runtime.RowSerializer.serialize(RowSerializer.java:72)
at org.apache.flink.streaming.api.operators.python.process.AbstractExternalOneInputPythonFunctionOperator.processElement(AbstractExternalOneInputPythonFunctionOperator.java:142)
at org.apache.flink.streaming.api.operators.python.process.ExternalPythonProcessOperator.processElement(ExternalPythonProcessOperator.java:111)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.pushToOperator(CopyingChainingOutput.java:82)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:57)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:29)
at org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:56)
at org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:29)
at org.apache.flink.table.runtime.operators.sink.OutputConversionOperator.processElement(OutputConversionOperator.java:105)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.pushToOperator(CopyingChainingOutput.java:82)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:57)
at org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:29)
at org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:56)
at org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:29)
at org.apache.flink.streaming.api.operators.StreamSourceContexts$ManualWatermarkContext.processAndCollect(StreamSourceContexts.java:418)
at org.apache.flink.streaming.api.operators.StreamSourceContexts$WatermarkContext.collect(StreamSourceContexts.java:513)
at org.apache.flink.streaming.api.operators.StreamSourceContexts$SwitchingOnClose.collect(StreamSourceContexts.java:103)
at org.apache.flink.table.runtime.arrow.sources.ArrowSourceFunction.run(ArrowSourceFunction.java:200)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67)
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:333)
I tried to cast explicit, e.g. by "dtype='String'" or in Flink "DataType.STRING()". Problem not solved.
I have read the following article https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/ops/debugging/debugging_classloading/#x-cannot-be-cast-to-x-exceptions
But I do not know where to find the config file.
I would like to pass the integrated gpu from the host os (ubuntu 20.04) to the windows 10 guest os with xen. This is because xen works great for me,better than qemu-kvm for my specific needs and because I have only two graphic cards. The nvidia rtx 2080 ti that I have already passed to the guest,and the intel UHD 630,that can be duplicated from the host to the guest so that it can be used in both places without interruptions. So I'm trying to build this repository :
https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt
but at some point,I get these errors :
../../libacpi/build.c: In function ‘construct_secondary_tables’:
../../libacpi/build.c:384:49: error: ‘ssdt_pm’ undeclared (first use in this function); did you mean ‘ssdt’?
384 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_pm), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:384:49: note: each undeclared identifier is reported only once for each function it appears in
../../libacpi/build.c:392:49: error: ‘ssdt_s3’ undeclared (first use in this function); did you mean ‘ssdt’?
392 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_s3), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:402:49: error: ‘ssdt_s4’ undeclared (first use in this function); did you mean ‘ssdt’?
402 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_s4), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:412:49: error: ‘ssdt_laptop_slate’ undeclared (first use in this function); did you mean ‘ssdt
_laptop_slate_aml_code’?
412 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_laptop_slate), 16);
| ^~~~~~~~~~~~~~~~~
| ssdt_laptop_slate_aml_code
../../libacpi/build.c:426:49: error: ‘ssdt_tpm’ undeclared (first use in this function)
426 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_tpm), 16);
| ^~~~~~~~
do u know if there is a patch ? where I can get it ? how can I fix these errors ? very thanks.
This is the content of the file build.c
https://pastebin.com/sUFp4N8V
I'm trying to use the native-image-maven-plugin to build a Java project but I'm getting the following error:
[ERROR] Failed to execute goal com.oracle.substratevm:native-image-maven-plugin:19.1.0:native-image (default) on project yolo-parent: Execution default of goal com.oracle.substratevm:native-image-maven-plugin:19.1.0:native-image failed: A required class was missing while executing com.oracle.substratevm:native-image-maven-plugin:19.1.0:native-image: jdk/vm/ci/services/Services
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.oracle.substratevm:native-image-maven-plugin:19.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/native-image-maven-plugin/19.1.0/native-image-maven-plugin-19.1.0.jar
[ERROR] urls[1] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/svm-driver/19.1.0/svm-driver-19.1.0.jar
[ERROR] urls[2] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/library-support/19.1.0/library-support-19.1.0.jar
[ERROR] urls[3] = file:/Users/johndoe/.m2/repository/org/graalvm/sdk/graal-sdk/19.1.0/graal-sdk-19.1.0.jar
[ERROR] urls[4] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/svm/19.1.0/svm-19.1.0.jar
[ERROR] urls[5] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/svm-hosted-native-linux-amd64/19.1.0/svm-hosted-native-linux-amd64-19.1.0.tar.gz
[ERROR] urls[6] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/svm-hosted-native-darwin-amd64/19.1.0/svm-hosted-native-darwin-amd64-19.1.0.tar.gz
[ERROR] urls[7] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/svm-hosted-native-windows-amd64/19.1.0/svm-hosted-native-windows-amd64-19.1.0.tar.gz
[ERROR] urls[8] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/pointsto/19.1.0/pointsto-19.1.0.jar
[ERROR] urls[9] = file:/Users/johndoe/.m2/repository/org/graalvm/truffle/truffle-nfi/19.1.0/truffle-nfi-19.1.0.jar
[ERROR] urls[10] = file:/Users/johndoe/.m2/repository/org/graalvm/truffle/truffle-nfi-native-linux-amd64/19.1.0/truffle-nfi-native-linux-amd64-19.1.0.tar.gz
[ERROR] urls[11] = file:/Users/johndoe/.m2/repository/org/graalvm/truffle/truffle-nfi-native-linux-aarch64/19.1.0/truffle-nfi-native-linux-aarch64-19.1.0.tar.gz
[ERROR] urls[12] = file:/Users/johndoe/.m2/repository/org/graalvm/truffle/truffle-nfi-native-darwin-amd64/19.1.0/truffle-nfi-native-darwin-amd64-19.1.0.tar.gz
[ERROR] urls[13] = file:/Users/johndoe/.m2/repository/com/oracle/substratevm/objectfile/19.1.0/objectfile-19.1.0.jar
[ERROR] urls[14] = file:/Users/johndoe/.m2/repository/org/graalvm/compiler/compiler/19.1.0/compiler-19.1.0.jar
[ERROR] urls[15] = file:/Users/johndoe/.m2/repository/org/graalvm/truffle/truffle-api/19.1.0/truffle-api-19.1.0.jar
[ERROR] urls[16] = file:/Users/johndoe/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar
[ERROR] urls[17] = file:/Users/johndoe/.m2/repository/org/codehaus/plexus/plexus-archiver/3.3/plexus-archiver-3.3.jar
[ERROR] urls[18] = file:/Users/johndoe/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
[ERROR] urls[19] = file:/Users/johndoe/.m2/repository/org/codehaus/plexus/plexus-io/2.7.1/plexus-io-2.7.1.jar
[ERROR] urls[20] = file:/Users/johndoe/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[21] = file:/Users/johndoe/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar
[ERROR] urls[22] = file:/Users/johndoe/.m2/repository/org/iq80/snappy/snappy/0.4/snappy-0.4.jar
[ERROR] urls[23] = file:/Users/johndoe/.m2/repository/org/tukaani/xz/1.5/xz-1.5.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : jdk.vm.ci.services.Services
The jdk.vm.ci.services.Services should come from the JDK you are using to build the native image. You need to make sure the JAVA_HOME environment variable points to a GraalVM.
You can find useful information about using this plugin on this page.
I would like to use Slick (3.2.3) to connect to a MSSQL database.
Currently, my project is the following.
In application.conf, I have
somedbname = {
driver = "slick.jdbc.SQLServerProfile$"
db {
host = "somehost"
port = "someport"
databaseName = "Recupel.Datawarehouse"
url = "jdbc:sqlserver://"${somedbname.db.host}":"${somedbname.db.port}";databaseName="${somedbname.db.databaseName}";"
user = "someuser"
password = "somepassword"
}
}
The "somehost" looks like XX.X.XX.XX where X's are numbers.
My build.sbt contains
name := "test-slick"
version := "0.1"
scalaVersion in ThisBuild := "2.12.7"
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.2.3",
"com.typesafe.slick" %% "slick-hikaricp" % "3.2.3",
"org.slf4j" % "slf4j-nop" % "1.6.4",
"com.microsoft.sqlserver" % "mssql-jdbc" % "7.0.0.jre10"
)
The file with the "main" object contains
import slick.basic.DatabaseConfig
import slick.jdbc.JdbcProfile
import slick.jdbc.SQLServerProfile.api._
import scala.concurrent.Await
import scala.concurrent.duration._
val dbConfig: DatabaseConfig[JdbcProfile] = DatabaseConfig.forConfig("somedbname")
val db: JdbcProfile#Backend#Database = dbConfig.db
def main(args: Array[String]): Unit = {
try {
val future = db.run(sql"SELECT * FROM somettable".as[(Int, String, String, String, String,
String, String, String, String, String, String, String)])
println(Await.result(future, 10.seconds))
} finally {
db.close()
}
}
}
This, according to all the documentation that I could find, should be enough to connect to the database. However, when I run this, I get
[error] (run-main-0) java.sql.SQLTransientConnectionException: somedbname.db - Connection is not available, request timed out after 1004ms.
[error] java.sql.SQLTransientConnectionException: somedbname.db - Connection is not available, request timed out after 1004ms.
[error] at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:548)
[error] at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:186)
[error] at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:145)
[error] at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:83)
[error] at slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)
[error] at slick.jdbc.JdbcBackend$BaseSession.<init>(JdbcBackend.scala:453)
[error] at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:46)
[error] at slick.jdbc.JdbcBackend$DatabaseDef.createSession(JdbcBackend.scala:37)
[error] at slick.basic.BasicBackend$DatabaseDef.acquireSession(BasicBackend.scala:249)
[error] at slick.basic.BasicBackend$DatabaseDef.acquireSession$(BasicBackend.scala:248)
[error] at slick.jdbc.JdbcBackend$DatabaseDef.acquireSession(JdbcBackend.scala:37)
[error] at slick.basic.BasicBackend$DatabaseDef$$anon$2.run(BasicBackend.scala:274)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[error] at java.base/java.lang.Thread.run(Thread.java:844)
[error] Nonzero exit code: 1
Perhaps related and also annoying, when I run this code for the second (and subsequent) times, I get the following error instead:
Failed to get driver instance for jdbcUrl=jdbc:sqlserver://[...]
which forces me to kill and reload sbt each time.
What am I doing wrong? Worth noting: I can connect to the database with the same credential from a software like valentina.
As suggested by #MarkRotteveel, and following this link, I found a solution.
First, I explicitly set the driver, adding the line
driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"
in the db dictionary, after password = "somepassword".
Secondly, the default timeout (after one second) appears to be too short for my purposes, and therefore I added the line
connectionTimeout = "30 seconds"
after the previous driver line, still in the db dictionary.
Now it works.
I am new to kernel compilation. I want to create the Blinking LED driver for Raspberry Pi 1 Model B but as a first step towards the goal, I am trying to cross-compile unmodified Raspberry pi Kernel and following this article.
Everything goes fine until step 7. In step 7, when I enter cross compile command, it shows this:
$ make ARCH=arm CROSS_COMPILE=${CCPREFIX}
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
In file included from ./arch/arm/include/asm/irqflags.h:6:0,
from include/linux/irqflags.h:15,
from ./arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
./arch/arm/include/asm/ptrace.h:125:1: error: unknown type name 'bool'
./arch/arm/include/asm/ptrace.h: In function 'regs_get_register':
./arch/arm/include/asm/ptrace.h:141:6: error: expected expression before 'struct'
In file included from include/linux/bitops.h:36:0,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
./arch/arm/include/asm/bitops.h:38:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h:38:23: note: each undeclared identifier is reported only once for each function it appears in
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
./arch/arm/include/asm/bitops.h:50:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_change_bit':
./arch/arm/include/asm/bitops.h:62:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_set_bit':
./arch/arm/include/asm/bitops.h:76:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_clear_bit':
./arch/arm/include/asm/bitops.h:93:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_change_bit':
./arch/arm/include/asm/bitops.h:110:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
In file included from ./arch/arm/include/asm/bitops.h:122:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
include/asm-generic/bitops/non-atomic.h:17:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__clear_bit':
include/asm-generic/bitops/non-atomic.h:25:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__change_bit':
include/asm-generic/bitops/non-atomic.h:42:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_set_bit':
include/asm-generic/bitops/non-atomic.h:59:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_clear_bit':
include/asm-generic/bitops/non-atomic.h:78:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_change_bit':
include/asm-generic/bitops/non-atomic.h:90:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function 'test_bit':
include/asm-generic/bitops/non-atomic.h:105:21: error: 'BITS_PER_LONG' undeclared (first use in this function)
In file included from ./arch/arm/include/asm/bitops.h:312:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/fls64.h: At top level:
include/asm-generic/bitops/fls64.h:33:2: error: #error BITS_PER_LONG not 32 or 64
In file included from ./arch/arm/include/asm/bitops.h:314:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/sched.h: In function 'sched_find_first_bit':
include/asm-generic/bitops/sched.h:27:2: error: #error BITS_PER_LONG not defined
In file included from include/linux/log2.h:16:0,
from kernel/bounds.c:12:
include/linux/bitops.h: At top level:
include/linux/bitops.h:202:37: error: unknown type name 'u64'
include/linux/bitops.h:208:2: error: #error BITS_PER_LONG not 32 or 64
In file included from kernel/bounds.c:12:0:
include/linux/log2.h:32:17: error: unknown type name 'u32'
include/linux/log2.h:40:17: error: unknown type name 'u64'
include/linux/log2.h:52:1: error: unknown type name 'bool'
Kbuild:44: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:1004: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I have not made any changes in any kernel file. I am not sure why bounds.c has a problem. Also, I downloaded the compressed version of the kernel file so I don't think it is a checkout/update issue. I have to confess I am confused as to what this error actually means. Am I missing something?
Thanks in advance
EDIT:
(1) printenv before step #6
$ printenv
XDG_VTNR=7
XDG_SESSION_ID=c2
CLUTTER_IM_MODULE=xim
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/omkar
SESSION=ubuntu
GPG_AGENT_INFO=/home/omkar/.gnupg/S.gpg-agent:0:1
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=4205
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
WINDOWID=58720266
KERNEL_SRC=/home/bhargav/rpi/linux-rpi-3.2.27
OLDPWD=/home/omkar/rpi
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1623
GNOME_KEYRING_CONTROL=
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=omkar
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
QT_ACCESSIBILITY=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
PATH=/home/omkar/bin:/home/omkar/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DESKTOP_SESSION=ubuntu
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
XDG_SESSION_TYPE=x11
PWD=/home/omkar/rpi/linux-rpi-4.4.y
JOB=unity-settings-daemon
XMODIFIERS=#im=ibus
GNOME_KEYRING_PID=
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
IM_CONFIG_PHASE=1
COMPIZ_CONFIG_PROFILE=ubuntu
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
HOME=/home/omkar
XDG_SEAT=seat0
SHLVL=1
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
UPSTART_EVENTS=xsession started
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=omkar
COMPIZ_BIN_PATH=/usr/bin/
QT4_IM_MODULE=xim
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-S9i5BrLSwB
CCPREFIX=/home/omkar/rpi/tools-master/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=
UPSTART_JOB=unity7
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/home/omkar/.Xauthority
_=/usr/bin/printenv
(2) Output of step #6
$ make ARCH=arm CROSS_COMPILE=${CCPREFIX} bcmrpi_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#