#Service--CLASS
#Autowired
JdbcTemplate jdbcTemplate;
public List<Map<String, Object>> amount(int id) {
Food food = new Food();
String query = " SELECT id, sum(breakfast + lunch+dinner) as amount FROM food WHERE id =?";
int Id = food.getId();
String breakfast = food.getBreakfast();
String lunch = food.getLunch();
String dinner = food.getDinner();
return jdbcTemplate.queryForList(query, Id, breakfast, lunch, dinner);
}
**iam trying to sum values which is present in my table **
java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.ClientPreparedStatement.checkBounds(ClientPreparedStatement.java:1345) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.ClientPreparedStatement.getCoreParameterIndex(ClientPreparedStatement.java:1358) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.mysql.cj.jdbc.ClientPreparedStatement.setNull(ClientPreparedStatement.java:1613) ~[mysql-connector-j-8.0.31.jar:8.0.31]
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.setNull(HikariProxyPreparedStatement.java) ~[HikariCP-4.0.3.jar:na]
at org.springframework.jdbc.core.StatementCreatorUtils.setNull(StatementCreatorUtils.java:283) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.StatementCreatorUtils.setParameterValueInternal(StatementCreatorUtils.java:234) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.StatementCreatorUtils.setParameterValue(StatementCreatorUtils.java:168) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.ArgumentPreparedStatementSetter.doSetValue(ArgumentPreparedStatementSetter.java:69) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.ArgumentPreparedStatementSetter.setValues(ArgumentPreparedStatementSetter.java:50) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:720) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:651) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:713) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:744) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:810) ~[spring-jdbc-5.3.23.jar:5.3.23]
at org.springframework.jdbc.core.JdbcTemplate.queryForList(JdbcTemplate.java:942) ~[spring-jdbc-5.3.23.jar:5.3.23]
at com.mss.service.FoodService.amount(FoodService.java:40) ~[classes/:na]
at com.mss.controller.UserController.amount(UserController.java:60) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.3.23.jar:5.3.23]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:670) ~[tomcat-embed-core-9.0.68.jar:4.0.FR]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.23.jar:5.3.23]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:779) ~[tomcat-embed-core-9.0.68.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.23.jar:5.3.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.23.jar:5.3.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.23.jar:5.3.23]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.68.jar:9.0.68]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
inside your query there is a unique ?, This means that the jdbcTemplate.queryForList method accept only one value, which I assume is the variable id.
So either you forgot to add other conditions in the query or you are passing additional values.
Tried following installation guide, got this issue.
Python 3.11, updated pip and numpy.
Tried to focus on the not available aspect of the error, but again all information tells to reinstall numpy which I have done many a times.
PS C:\WINDOWS\system32> pip install -r C:\Users\Rmuij\OneDrive\Bureaublad\SkyblockSniper-main\SkyblockSniper-main\requirements.txt pip install -r C:\Users\Rmuij\OneDrive\Bureaublad\SkyblockSniper-main\SkyblockSniper-main\requirements.txtCollecting requests==2.25.1Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)Collecting pandas==1.3.2Using cached pandas-1.3.2.tar.gz (4.7 MB)Installing build dependencies ... errorerror: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.exit code: 1╰─> [319 lines of output]Ignoring numpy: markers 'python_version == "3.7" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environmentIgnoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environmentIgnoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your environmentIgnoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your environmentIgnoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environmentIgnoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environmentCollecting setuptools>=51.0.0Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB)Collecting wheelUsing cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)Collecting Cython<3,>=0.29.21Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)Collecting numpy==1.19.3Using cached numpy-1.19.3.zip (7.3 MB)Installing build dependencies: startedInstalling build dependencies: finished with status 'done'Getting requirements to build wheel: startedGetting requirements to build wheel: finished with status 'done'Preparing metadata (pyproject.toml): startedPreparing metadata (pyproject.toml): finished with status 'error'error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.exit code: 1
[282 lines of output]setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.11.warnings.warn(Running from numpy source directory.setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templatesrun_build = parse_setuppy_commands()Processing numpy/random_bounded_integers.pxd.inProcessing numpy/random\bit_generator.pyxProcessing numpy/random\mtrand.pyxProcessing numpy/random_bounded_integers.pyx.inProcessing numpy/random_common.pyxProcessing numpy/random_generator.pyxProcessing numpy/random_mt19937.pyxProcessing numpy/random_pcg64.pyxProcessing numpy/random_philox.pyxProcessing numpy/random_sfc64.pyxCythonizing sourcesblas_opt_info:blas_mkl_info:No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutilscustomize MSVCCompilerlibraries mkl_rt not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
blis_info:libraries blis not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
openblas_info:libraries openblas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'customize GnuFCompilerCould not locate executable g77Could not locate executable f77customize IntelVisualFCompilerCould not locate executable ifortCould not locate executable iflcustomize AbsoftFCompilerCould not locate executable f90customize CompaqVisualFCompilerCould not locate executable DFcustomize IntelItaniumVisualFCompilerCould not locate executable eflcustomize Gnu95FCompilerCould not locate executable gfortranCould not locate executable f95customize G95FCompilerCould not locate executable g95customize IntelEM64VisualFCompilercustomize IntelEM64TFCompilerCould not locate executable efortCould not locate executable efccustomize PGroupFlangCompilerCould not locate executable flangdon't know how to compile Fortran code on platform 'nt'NOT AVAILABLE
atlas_3_10_blas_threads_info:Setting PTATLAS=ATLASlibraries tatlas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
atlas_3_10_blas_info:libraries satlas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
atlas_blas_threads_info:Setting PTATLAS=ATLASlibraries ptf77blas,ptcblas,atlas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
atlas_blas_info:libraries f77blas,cblas,atlas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
accelerate_info:NOT AVAILABLE
C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\system_info.py:1914: UserWarning:Optimized (vendor) Blas libraries are not found.Falls back to netlib Blas library which has worse performance.A better performance should be easily gained by switchingBlas library.if self._calc_info(blas):blas_info:libraries blas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\system_info.py:1914: UserWarning:Blas (http://www.netlib.org/blas/) libraries not found.Directories to search for the libraries can be specified in thenumpy/distutils/site.cfg file (section [blas]) or by settingthe BLAS environment variable.if self._calc_info(blas):blas_src_info:NOT AVAILABLE
C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\system_info.py:1914: UserWarning:Blas (http://www.netlib.org/blas/) sources not found.Directories to search for the sources can be specified in thenumpy/distutils/site.cfg file (section [blas_src]) or by settingthe BLAS_SRC environment variable.if self._calc_info(blas):NOT AVAILABLE
non-existing path in 'numpy\distutils': 'site.cfg'lapack_opt_info:lapack_mkl_info:libraries mkl_rt not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
openblas_lapack_info:libraries openblas not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
openblas_clapack_info:libraries openblas,lapack not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
flame_info:libraries flame not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
atlas_3_10_threads_info:Setting PTATLAS=ATLASlibraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries tatlas,tatlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries lapack_atlas not found in C:libraries tatlas,tatlas not found in C:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libslibraries tatlas,tatlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>NOT AVAILABLE
atlas_3_10_info:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries satlas,satlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries lapack_atlas not found in C:libraries satlas,satlas not found in C:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libslibraries satlas,satlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs<class 'numpy.distutils.system_info.atlas_3_10_info'>NOT AVAILABLE
atlas_threads_info:Setting PTATLAS=ATLASlibraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries ptf77blas,ptcblas,atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries lapack_atlas not found in C:libraries ptf77blas,ptcblas,atlas not found in C:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libslibraries ptf77blas,ptcblas,atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs<class 'numpy.distutils.system_info.atlas_threads_info'>NOT AVAILABLE
atlas_info:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries f77blas,cblas,atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\liblibraries lapack_atlas not found in C:libraries f77blas,cblas,atlas not found in C:libraries lapack_atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libslibraries f77blas,cblas,atlas not found in C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs<class 'numpy.distutils.system_info.atlas_info'>NOT AVAILABLE
lapack_info:libraries lapack not found in ['C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\lib', 'C:\', 'C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\libs']NOT AVAILABLE
C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\system_info.py:1748: UserWarning:Lapack (http://www.netlib.org/lapack/) libraries not found.Directories to search for the libraries can be specified in thenumpy/distutils/site.cfg file (section [lapack]) or by settingthe LAPACK environment variable.return getattr(self, 'calc_info{}'.format(name))()lapack_src_info:NOT AVAILABLE
C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\system_info.py:1748: UserWarning:Lapack (http://www.netlib.org/lapack/) sources not found.Directories to search for the sources can be specified in thenumpy/distutils/site.cfg file (section [lapack_src]) or by settingthe LAPACK_SRC environment variable.return getattr(self, 'calc_info{}'.format(name))()NOT AVAILABLE
numpy_linalg_lapack_lite:FOUND:language = cdefine_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\dist.py:275: UserWarning: Unknown distribution option: 'define_macros'warnings.warn(msg)running dist_inforunning build_srcbuild_srcbuilding py_modules sourcescreating buildcreating build\src.win-amd64-3.11creating build\src.win-amd64-3.11\numpycreating build\src.win-amd64-3.11\numpy\distutilsbuilding library "npymath" sourcesTraceback (most recent call last):File "C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 351, in <module>main()File "C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 333, in mainjson_out['return_val'] = hook(**hook_input['kwargs'])^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pep517\in_process_in_process.py", line 152, in prepare_metadata_for_build_wheelreturn hook(metadata_directory, config_settings)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools\build_meta.py", line 157, in prepare_metadata_for_build_wheelself.run_setup()File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools\build_meta.py", line 249, in run_setupself).run_setup(setup_script=setup_script)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setupexec(compile(code, file, 'exec'), locals())File "setup.py", line 508, in <module>setup_package()File "setup.py", line 500, in setup_packagesetup(**metadata)File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\core.py", line 169, in setupreturn old_setup(**new_attr)^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_init_.py", line 165, in setupreturn distutils.core.setup(**attrs)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\core.py", line 148, in setupdist.run_commands()File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commandsself.run_command(cmd)File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 986, in run_commandcmd_obj.run()File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools\command\dist_info.py", line 31, in runegg_info.run()File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\egg_info.py", line 24, in runself.run_command("build_src")File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_commandself.distribution.run_command(command)File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 986, in run_commandcmd_obj.run()File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\build_src.py", line 144, in runself.build_sources()File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\build_src.py", line 155, in build_sourcesself.build_library_sources(libname_info)File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\build_src.py", line 288, in build_library_sourcessources = self.generate_sources(sources, (lib_name, build_info))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\build_src.py", line 378, in generate_sourcessource = func(extension, build_dir)^^^^^^^^^^^^^^^^^^^^^^^^^^File "numpy\core\setup.py", line 658, in get_mathlib_infost = config_cmd.try_link('int main(void) { return 0;}')^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\command\config.py", line 243, in try_linkself._link(body, headers, include_dirs,File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\config.py", line 162, in _linkreturn self._wrap_method(old_config._link, lang,^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\config.py", line 96, in _wrap_methodret = mth(((self,)+args))^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\command\config.py", line 137, in _link(src, obj) = self._compile(body, headers, include_dirs, lang)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\config.py", line 105, in _compilesrc, obj = self._wrap_method(old_config._compile, lang,^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\command\config.py", line 96, in _wrap_methodret = mth(*((self,)+args))^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils\command\config.py", line 132, in _compileself.compiler.compile([src], include_dirs=include_dirs)File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils_msvccompiler.py", line 401, in compileself.spawn(args)File "C:\Users\Rmuij\AppData\Local\Temp\pip-build-env-6q0wq8a0\overlay\Lib\site-packages\setuptools_distutils_msvccompiler.py", line 505, in spawnreturn super().spawn(cmd, env=env)^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Rmuij\AppData\Local\Temp\pip-install-5e71ys0j\numpy_3501de011f2d41f48272ef5a36b5d0c8\numpy\distutils\ccompiler.py", line 90, in <lambda>m = lambda self, *args, **kw: func(self, *args, **kw)^^^^^^^^^^^^^^^^^^^^^^^TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.error: metadata-generation-failedEncountered error while generating package metadata.See above for output.note: This is an issue with the package mentioned above, not pip.hint: See above for details.
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.error: subprocess-exited-with-errorpip subprocess to install build dependencies did not run successfully.exit code: 1See above for output.note: This error originates from a subprocess, and is likely not a problem with pip.
Tried to run the line, and expected it to complete the setup. What happened error.
Downgrading seemed to work as a temporarily fix. Created a 3.7.8 environment.
From the Infinispan 14.0.0.Dev03 release blog:
Jakarta EE
JavaEE is dead. Long-live JakartaEE. Wherever we used to depend on
javax APIs, we now depend on their jakarta equivalent. We still
provide compatibility artifacts for legacy deployments.
When I test all Infinispan 14.0.0.Dev03 or other newer versions, the exception shows javax.transaction.TransactionManager used.
org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component org.infinispan.globalstate.GlobalConfigurationManager failed to start
at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:778)
at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:742)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:303)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:177)
at com.cc.billing.domain.rating.RatingTest.testRateWithCache(RatingTest.java:57)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:95)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:91)
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:60)
at org.eclipse.jdt.internal.junit5.runner.JUnit5TestReference.run(JUnit5TestReference.java:98)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:529)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:756)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:452)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)
Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000659: Component org.infinispan.globalstate.GlobalConfigurationManager failed to start
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:585)
at org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:808)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:357)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:250)
at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:774)
... 73 more
Caused by: java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at org.infinispan.configuration.cache.TransactionConfiguration.<clinit>(TransactionConfiguration.java:31)
at org.infinispan.configuration.cache.TransactionConfigurationBuilder.<init>(TransactionConfigurationBuilder.java:43)
at org.infinispan.configuration.cache.ConfigurationBuilder.<init>(ConfigurationBuilder.java:51)
at org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:95)
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:60)
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:48)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:617)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:608)
at org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:577)
... 77 more
Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 86 more
You need to use
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core-jakarta</artifactId>
<version>14.0.0.Final</version>
</dependency>
while I am excuting my app this folloeing error has generated.
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugKotlin'.
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.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:68)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
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 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.api.GradleException: Compilation error. See log for more details
at org.jetbrains.kotlin.gradle.tasks.TasksUtilsKt.throwGradleExceptionIfError(tasksUtils.kt:14)
at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:135)
at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:152)
at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:147)
at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompilerAsync(GradleKotlinCompilerRunner.kt:87)
at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:409)
at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:319)
at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:276)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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 org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
... 115 more
The crucial part of your output is:
Caused by: org.gradle.api.GradleException: Compilation error. See log for more details
This failure in the task execution means that the Kotlin compiler failed and returned an error.
You can usually find the error description and location of the problematic code in the Gradle log above, where the :app:compileDebugKotlin task's log is aggregated.
Here's an example output (note: I didn't add --stacktrace, so Gradle doesn't print the whole stack trace of the exception thrown by the task):
> Task :compileKotlinJvm6 FAILED
e: /mnt/c/foo/Foo.kt: (3, 1): Modifier 'expect' is incompatible with 'actual'
e: /mnt/c/foo/Foo.kt: (3, 8): Modifier 'actual' is incompatible with 'expect'
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlinJvm6'.
> Compilation error. See log for more details
In your logs, look for lines starting with e: , this is how the errors are reported by the compiler.