text:
@Table Annotation is not honoured when joining on tables other than the aggregate root

Hi, I ran into a problem with a CrudRepository and aggregates that contain one-to-many relations and were annotated with @Table. Consider this example:
public interface AuthorRepository extends CrudRepository<AuthorRepository.AuthorRecord, String> {

  @Table("author")
  record AuthorRecord(@Id UUID id, String name, Set<Book> books) {}

  record Book(String title) {}
}

with the following schema:
CREATE TABLE author
(
    id   uuid PRIMARY KEY DEFAULT gen_random_uuid(),
    name text
);

CREATE TABLE book
(
    author uuid,
    title  text
);

Now if I execute the following test (BaseTestConfiguration just initialises a connection to a Postgres database).
class AuthorRepositoryIntegrationTest extends BaseTestConfiguration {

  @Autowired AuthorRepository authorRepository;

  @Test
  void should_persist_and_load_authors() {
    // arrange
    var authorRecord =
        new AuthorRepository.AuthorRecord(
            null, "authorName", Set.of(new AuthorRepository.Book("bookTitle")));

    // act
    authorRepository.save(authorRecord);
  }
}

it throws this error:
Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO "book" ("author_record", "title") VALUES (?, ?)]; nested exception is org.postgresql.util.PSQLException: ERROR: column "author_record" of relation "book" does not exist

To me it looks like the @Table annotation is not honoured. Once I rename AuthorRecord to Author and drop the Annotation everything works fine. (Switching records to classes doesn't change the result.)
During debugging I stumbled upon org.springframework.data.relational.core.mapping.NamingStrategy#getTableName, were the table name is derived from the type. I assume the problem could be fixed by looking for the annotation before defaulting to type.getSimpleName(). I'm happy to try to submit a fix for it if necessary.

pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.6.3</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.example</groupId>
	<artifactId>demo</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>demo</name>
	<description>Demo project for Spring Boot</description>
	<properties>
		<java.version>17</java.version>
		<testcontainers.version>1.16.2</testcontainers.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jdbc</artifactId>
		</dependency>
		<dependency>
			<groupId>org.flywaydb</groupId>
			<artifactId>flyway-core</artifactId>
		</dependency>

		<dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testcontainers</groupId>
			<artifactId>junit-jupiter</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.testcontainers</groupId>
			<artifactId>postgresql</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.testcontainers</groupId>
				<artifactId>testcontainers-bom</artifactId>
				<version>${testcontainers.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

This behaviour is actually intended this way, and probably quite some users probably depend on it by now.
Therefore the fix should probably be to document it accordingly.

We decided to split this issue into three.
The current one should be just the documentation update.
#1161 makes the behavior configurable.
#1162 switches the default with the 3.0 release.

I'm happy to look into this (and #1161 and #1162) and will try to come up with a PR as soon as I find the time (hopefully this week).

authors: janmax schauder

repo: spring-projects/spring-data-relational


text:
CommonDelegatingErrorHandler does not check delegates compatibility correctly

Backport of gh-3050

Fixed via 978a0c5d8ded51fef8216f51e615deed32485737

source: gharchive/issue

repo: spring-projects/spring-kafka

license_type: permissive

license_source: github-api


text:
Single embedded kafka as mvn/gradle plugin

Maybe will be good idea to put "embedded kafka" on to separated maven/gradle plugin
it can allow creation single kafka node per integration test phase
I`m trying to put 1.1.0 kafka to the
https://github.com/charithe/kafka-maven-plugin
It`s no a very successful or useful for now but want to ask advises pros/cons to this staff
Maybe there  is way to create single kafka per tests but I miss it
Or etc

code
@Mojo(name = "start-kafka-broker")
class StartKafkaBrokerMojo(): AbstractMojo() {

    @Parameter(defaultValue = "9092")
    val kafkaPort: Int = 29092

    @Parameter(defaultValue = "2181")
    val zookeeperPort: Int = 22181

    @Throws(MojoExecutionException::class, MojoFailureException::class)
    override fun execute() {
        try {
            log.info("Starting Zookeeper on port $zookeeperPort and Kafka broker on port $kafkaPort")
            KafkaHandler.start(zookeeperPort, kafkaPort)
        } catch (e: Exception) {
            log.error("Failed to start Kafka broker", e)
            throw MojoExecutionException("Failed to start Kafka broker")
        }

    }
}

@Mojo(name = "stop-kafka-broker")
class StopKafkaBrokerMojo : AbstractMojo() {

    @Parameter(defaultValue = "29092")
    val kafkaPort: Int = 29092

    @Parameter(defaultValue = "22181")
    val zookeeperPort: Int = 22181

    @Throws(MojoExecutionException::class, MojoFailureException::class)
    override fun execute() {
        log.info("Attempting to stop the Kafka broker")
        KafkaHandler.stop()
    }
}

object KafkaHandler {
    private lateinit var zookeeper: TestingServer
    private lateinit var kafkaServer: KafkaServerStartable
    private lateinit var kafkaLogDir: Path

    private fun buildKafkaConfig(zookeeperQuorum: String, kafkaPort: Int): KafkaConfig {
        kafkaLogDir = Files.createTempDirectory("kafka_maven")

        val props = Properties().apply {
            put("port", "$kafkaPort")
            put("broker.id", "1")
            put("log.dirs", kafkaLogDir.toAbsolutePath().toString())
            put("zookeeper.connect", zookeeperQuorum)
        }
        return KafkaConfig(props)
    }

    fun start(zookeeperPort: Int, kafkaPort: Int) {
        zookeeper = TestingServer(zookeeperPort, true)
        val zookeeperConnectionString = zookeeper.getConnectString()
        val kafkaConfig = buildKafkaConfig(zookeeperConnectionString, kafkaPort)
        kafkaServer = KafkaServerStartable(kafkaConfig)
        kafkaServer.startup()
    }

    fun stop() {
        try {
            kafkaServer.shutdown()
            zookeeper.close()

            if (Files.exists(kafkaLogDir)) {
                Files.walkFileTree(kafkaLogDir, object : SimpleFileVisitor<Path>() {
                    @Throws(IOException::class)
                    override fun visitFile(file: Path, attrs: BasicFileAttributes): FileVisitResult {
                        Files.deleteIfExists(file)
                        return FileVisitResult.CONTINUE
                    }

                    @Throws(IOException::class)
                    override fun postVisitDirectory(dir: Path, exc: IOException?): FileVisitResult {
                        Files.deleteIfExists(dir)
                        return FileVisitResult.CONTINUE
                    }
                })
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}

See this issue and its related PR as well as the documentation.

I would say this goes out of scope of this project.
Perhaps better to ask for such a functionality in Apache Kafka community.
Although it isn't clear why would one need to have an embedded Kafka in the plugin since it is going to be semantically the same as have a standalone Kafka Broker...

@artembilan - probably this ticket can be closed - I wold prefer use testcontainers next time for this purpose.

Closed as Won't Fix.

authors: artembilan garyrussell mykolapolonskyi


text:
Polish KafkaMessageListenerContainer

remove checkAckMode because ContainerProperties.ackCount and ContainerProperties.ackTime have init value.
change ListenerConsumer.offsets type to Map<TopicPartition, Long>.
replace ListenerConsumer.setupSubBatchPerPartition to ContainerProperties.isSubBatchPerPartition.
add method ListenerConsumer.commitOffsets and ListenerConsumer.commitOffsetsInTransactions
remove properties ListenerConsumer.this.commitRecovered.
refactor method ListenerConsumer.processCommits.
refactor method  ListenerConsumer.ackCurrent.

@Wzy19930507 There are test failures in the PR: https://github.com/spring-projects/spring-kafka/actions/runs/8115263868/job/22182761295?pr=3090. Could you take a look?

introduced a unit test bug from https://github.com/spring-projects/spring-kafka/issues/2287, sorry for it.
When AckMode.RECORD and early is false, the last execute method is RecordInterceptor.afterRecord, but i forget a 'CountDownLatch' to wait 'RecordInterceptor.   afterRecord 'completes execution.

source: gharchive/pull-request


text:
spring.messaging.ems not compatible for tibco 8.3.0 version

Hi,
I am using spring and spring.messaging.ems listeners for xml configuration for tibco communication. This was working fine until I upgraded tibco version. I am now getting runtime exception that says "cannot load assembly" because spring is looking for tibco 1.0.0 assembly with which spring was compiled. I am using spring 1.3. I think all the versions of spring are compiled with tibco version 1.0
Is there a way I can use tibco 8.3 version with spring?
One solution I believe is to get this source code and update tibco dll reference and compile and use the new output?

Yes, recompiling the sources against the new TIBCO binaries is certainly one option.  However if the only 'public' difference between the older and newer TIBCO binaries is their version number (e.g., there haven't been any breaking changes in the public API exposed by the TIBCO libraries), I'd probably recommend that you first attempt to solve this by just adding a <bindingRedirect> to your app.config file.
See https://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx for more info on this approach.
As mentioned, this will only work if there aren't any breaking changes in the 'public' surface area of the TIBCO binaries between these two versions, but of course if there were breaking changes then even compiling the SPRNET source against the new binaries wouldn't work since you'd get compilation errors rather than the runtime errors you're experiencing now (meaning that to support the later version of TIBCO we'd have to adjust the SPRNET source and release separate support for the new version of TIBCO).
Let us know how/if this approach works for you, and good luck!

Thanks Steve, this works!
Luckily, the TIBCO interfaces have not changed in newer version and just adding a 'binding redirection' config solves the problem.
For the benefit of the people who will hit by same problem, here is what I added to the app.config -

authors: pa-vishal sbohlen

repo: spring-projects/spring-net

license_source: bigquery


text:
mongodb sink exception

Hello, I am trying to test mongodb sink. I tried inserting a simple string like below
{ name : "mongo" }
The stream I created is as below. mongodb runs on default port in localhost.
xd:>stream create --name mongostream2 --definition "file --outputType=text/plain | mongodb --databaseName=mydb" --deploy
Created and deployed new stream 'mongostream2'
I am getting the exceptions as below, any help is very much appreciated. I am running in Mac OS X 10.9.2
11:41:32,816 ERROR task-scheduler-2 handler.LoggingHandler:145 - org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.mongodb.outbound.MongoDbStoringMessageHandler#0]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:84)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.handleMessage(SimpleMessageHandlerMetrics.java:106)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.invoke(SimpleMessageHandlerMetrics.java:86)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy124.handleMessage(Unknown Source)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:255)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:223)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.DirectChannelMetrics.monitorSend(DirectChannelMetrics.java:113)
at org.springframework.integration.monitor.DirectChannelMetrics.doInvoke(DirectChannelMetrics.java:97)
at org.springframework.integration.monitor.DirectChannelMetrics.invoke(DirectChannelMetrics.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy121.send(Unknown Source)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:260)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:241)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:205)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:199)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:177)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:255)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:223)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:260)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:241)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:205)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:199)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:177)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.DirectChannelMetrics.monitorSend(DirectChannelMetrics.java:113)
at org.springframework.integration.monitor.DirectChannelMetrics.doInvoke(DirectChannelMetrics.java:97)
at org.springframework.integration.monitor.DirectChannelMetrics.invoke(DirectChannelMetrics.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy58.send(Unknown Source)
at org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel.send(MessageHandlerChain.java:263)
at org.springframework.integration.handler.MessageHandlerChain$ReplyForwardingMessageChannel.send(MessageHandlerChain.java:255)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:260)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:241)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:205)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:199)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:177)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.handleMessage(SimpleMessageHandlerMetrics.java:106)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.invoke(SimpleMessageHandlerMetrics.java:86)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy108.handleMessage(Unknown Source)
at org.springframework.integration.handler.MessageHandlerChain$1.send(MessageHandlerChain.java:150)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:260)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:241)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:205)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:199)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:177)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.handleMessage(SimpleMessageHandlerMetrics.java:106)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.invoke(SimpleMessageHandlerMetrics.java:86)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy108.handleMessage(Unknown Source)
at org.springframework.integration.handler.MessageHandlerChain.handleMessageInternal(MessageHandlerChain.java:131)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.handleMessage(SimpleMessageHandlerMetrics.java:106)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.invoke(SimpleMessageHandlerMetrics.java:86)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy109.handleMessage(Unknown Source)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:255)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:223)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.DirectChannelMetrics.monitorSend(DirectChannelMetrics.java:113)
at org.springframework.integration.monitor.DirectChannelMetrics.doInvoke(DirectChannelMetrics.java:97)
at org.springframework.integration.monitor.DirectChannelMetrics.invoke(DirectChannelMetrics.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy58.send(Unknown Source)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:175)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.handleMessage(SimpleMessageHandlerMetrics.java:106)
at org.springframework.integration.monitor.SimpleMessageHandlerMetrics.invoke(SimpleMessageHandlerMetrics.java:86)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy107.handleMessage(Unknown Source)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:255)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:223)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.integration.monitor.DirectChannelMetrics.monitorSend(DirectChannelMetrics.java:113)
at org.springframework.integration.monitor.DirectChannelMetrics.doInvoke(DirectChannelMetrics.java:97)
at org.springframework.integration.monitor.DirectChannelMetrics.invoke(DirectChannelMetrics.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy58.send(Unknown Source)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:114)
at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:44)
at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:93)
at org.springframework.integration.endpoint.SourcePollingChannelAdapter.handleMessage(SourcePollingChannelAdapter.java:110)
at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:205)
at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:55)
at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:149)
at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146)
at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:284)
at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49)
at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:278)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.data.mapping.model.MappingException: Could not parse given String to save into a JSON document!
at org.springframework.data.mongodb.core.MongoTemplate.toDbObject(MongoTemplate.java:738)
at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:882)
at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:833)
at org.springframework.integration.mongodb.outbound.MongoDbStoringMessageHandler.handleMessageInternal(MongoDbStoringMessageHandler.java:123)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
... 201 more
Caused by: com.mongodb.util.JSONParseException:
3210#"! U�:ixr3037831c1cb7742/private/tmp/xd/input/mongostream2/mongo
^
at com.mongodb.util.JSONParser.parse(JSON.java:216)
at com.mongodb.util.JSONParser.parse(JSON.java:163)
at com.mongodb.util.JSON.parse(JSON.java:99)
at com.mongodb.util.JSON.parse(JSON.java:79)
at org.springframework.data.mongodb.core.MongoTemplate.toDbObject(MongoTemplate.java:736)
... 205 more

Did you ever make progress with this?

Hello @petergdoyle !
Not sure what is the question. The issue is closed and it confirmed by reporter that his solution works.

Thanks for responding so quickly. When I saw "My main goal is to use JMS as source." that is more of what I was looking for not a resolution to the defined problem. But you are right, the original question was answered.
thanks

authors: artembilan petergdoyle sathiyas

repo: spring-projects/spring-xd


text:
Springfox swagger UI new version

Latest Springfox Swagger UI which Is version 2.9.2 uses not latest version of
Swagger UI but IT uses version 3.17.1 where is this bug. https://github.com/swagger-api/swagger-ui/issues/4817#issue
My question Is when will be new version of Springfox available which will use more recent version of Swagger UI?
Thanks

Will get the latest when 3.0.0 is released

authors: CaptainAgilek dilipkrish

repo: springfox/springfox


text:
Unable to infer base url

I am trying to use swagger UI with spring boot 2, but when I visit URL
http://localhost:9095/swagger-ui.html
then it shows alert with below message:
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:
and in page console errors are
Failed to load resource: the server responded with a status of 404 ()
swagger-resources/configuration/security:1 Failed to load resource: the server responded with a status of 404 ()
swagger-resources:1 Failed to load resource: the server responded with a status of 404 ()
ui:1 Failed to load resource: the server responded with a status of 404 ().
my maven is
<dependency> 		    <groupId>io.springfox</groupId> 		    <artifactId>springfox-swagger-ui</artifactId> 		    <version>2.9.2</version> 		</dependency> 		<dependency> 		    <groupId>io.springfox</groupId> 		    <artifactId>springfox-swagger2</artifactId> 		    <version>2.9.2</version> 		</dependency>
and Swagger configuration class is
`public class SwaggerConfig {
@Bean
public Docket postsApi() {
return new Docket(DocumentationType.SWAGGER_2).groupName("public-api").apiInfo(metadata()).
select().paths(regex("/service/*")).build();
}
@SuppressWarnings("deprecation")
private ApiInfo metadata() {
	return new ApiInfoBuilder().title("API Docs").
			description("API reference guide for developers").
			termsOfServiceUrl("https://newsoftware.com/").contact("newteam, newteam").version("1.0").build();
}

}
controller class has below code
`import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.apache.poi.EncryptedDocumentException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
@RestController
@RequestMapping(path = "/service")
public class ServiceController implements AnnotBeanConfig {
private final GetResponseCode getRespCode = GetResponseCode.instance;
private final Settings setting = Settings.instance;
private static final Logger logger = LoggerFactory.getLogger(ServiceController.class);
DefaultServices defServ = null;
ApplicationContext ctx = null;
ControllerFactory controller = null;
@GetMapping(path="/", produces = "application/json")
public DefaultServices getServices(){
annotBeanInject();
defServ = ctx.getBean(DefaultServices.class);
defServ.getServiceList().add(new DefaultService(JsonKey.ERROR, getRespCode.getResponseCode("accessdenied")));
return defServ;
}
@PostMapping(path= "/", produces = "application/json")
public DefaultServices postServices(){
	annotBeanInject();
	defServ = ctx.getBean(DefaultServices.class);
	defServ.getServiceList().add(new DefaultService(JsonKey.ERROR, getRespCode.getResponseCode("accessdenied")));
	return defServ;

}
@PutMapping(path= "/", produces = "application/json")
public DefaultServices putServices(){
	annotBeanInject();
	defServ = ctx.getBean(DefaultServices.class);
	defServ.getServiceList().add(new DefaultService(JsonKey.ERROR, getRespCode.getResponseCode("accessdenied")));
	return defServ;

}
@DeleteMapping(path= "/", produces = "application/json")
public DefaultServices deleteServices(){
	annotBeanInject();
	defServ = ctx.getBean(DefaultServices.class);
	defServ.getServiceList().add(new DefaultService(JsonKey.ERROR, getRespCode.getResponseCode("accessdenied")));
	return defServ;

}
@Override
public void annotBeanInject(){
	try{
		ctx = new AnnotationConfigApplicationContext(DefaultConfig.class);
	}catch(Exception ex){
		logger.error("Exception in ServiceController");
		logger.error(DownloadException.stackTraceToString(ex));
	}
}

}
`

`

I was missing @Configuration
@EnableSwagger2 from swagger config.

At SpringSecurity config add "/swagger-resources/**" to permitted antMatchers


text:
Use ResponseBodyAdvice to wrap the responsemodel, but swagger-ui can not show it

For example,
	@GetMapping("/{id}")
	public Activity get(@PathVariable Long id) {
		return activityService.get(id);
	}

and I use ResponseBodyAdvice to wrap my Response model. The http response body is like this:
{
  "code": 200,
  "message": "SUCCESS",
  "data": {
    "id": 1,
    "category": "bbq1",
    "detail": "bbq_detail...",
    "startTime": "2021-05-01T00:00:00Z",
    "endTime": "2021-05-11T17:00:00Z",
    "liked": 11
  }
}

This can be work, but in my swagger-UI, the response only shows the ActivityModel.
not show the wrapper.
{
  "code": 200,
  "message": "SUCCESS",
  "data": {...}
}

How to resolve it?

同遇到这样的问题，题主解决了么？

看来这个问题无法解决了

How to solve it ?

authors: cycle2zhou darshan-mehta hi-mamba wangcanfengxs


text:
🛑 Mattermost Chat is down

In 0aaac39, Mattermost Chat (https://mattermost.sp-ps.ch) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mattermost Chat is back up in ddffa1b after 11 minutes.

repo: spschweiz/status

license: MIT


text:
Terminal plugin fails - unable to find 127.0.0.1

Description
What steps will reproduce the problem?

Installed spyder-terminal, via anaconda3 64b, to spyder4, and started spyder. Startup ends with Spyder Terminal Error popup. Followed instruction to debug spyder; got an error file, terminal output in terminal window, and an empty terminal_out.log file.
Terminal Edrror log:
2020-07-31 20:10:55 LAPTOP-VESB5F0J main[1366932] INFO Server is now at: 127.0.0.1:8071
2020-07-31 20:10:55 LAPTOP-VESB5F0J main[1366932] INFO Shell: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Traceback (most recent call last):
File "C:\Users\space.conda\envs\spyder\lib\runpy.py", line 192, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\space.conda\envs\spyder\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\space.conda\envs\spyder\lib\site-packages\spyder_terminal\server_main.py", line 59, in
main(port, shell)
File "C:\Users\space.conda\envs\spyder\lib\site-packages\spyder_terminal\server_main.py", line 44, in main
application.listen(port, address='127.0.0.1')
File "C:\Users\space.conda\envs\spyder\lib\site-packages\tornado\web.py", line 2116, in listen
server.listen(port, address)
File "C:\Users\space.conda\envs\spyder\lib\site-packages\tornado\tcpserver.py", line 152, in listen
self.add_sockets(sockets)
File "C:\Users\space.conda\envs\spyder\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
self._handlers[sock.fileno()] = add_accept_handler(
File "C:\Users\space.conda\envs\spyder\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
io_loop.add_handler(sock, accept_handler, IOLoop.READ)
File "C:\Users\space.conda\envs\spyder\lib\site-packages\tornado\platform\asyncio.py", line 100, in add_handler
self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
File "C:\Users\space.conda\envs\spyder\lib\asyncio\events.py", line 501, in add_reader
raise NotImplementedError
NotImplementedError
Screen I/O:
(spyder) C:\Users\space>spyder
2020-07-31 20:07:57,962 [INFO] [spyder.app.mainwindow] -> Start of MainWindow constructor
2020-07-31 20:07:57,992 [INFO] [spyder.app.mainwindow] -> appusermodelid: 0
2020-07-31 20:07:58,005 [INFO] [spyder.app.mainwindow] -> End of MainWindow constructor
2020-07-31 20:07:58,005 [INFO] [spyder.app.mainwindow] -> *** Start of MainWindow setup ***
2020-07-31 20:07:58,005 [INFO] [spyder.app.mainwindow] -> Updating PYTHONPATH
2020-07-31 20:07:59,035 [DEBUG] [spyder.api.panel] -> LineNumberArea visibility changed
2020-07-31 20:07:59,038 [DEBUG] [spyder.api.panel] -> ClassFunctionDropdown visibility changed
2020-07-31 20:07:59,157 [INFO] [spyder.app.mainwindow] -> Loading outline explorer...
2020-07-31 20:07:59,203 [INFO] [spyder.app.mainwindow] -> Loading editor...
2020-07-31 20:07:59,314 [INFO] [spyder.app.mainwindow] -> Launching code completion client for Python...
2020-07-31 20:07:59,337 [DEBUG] [spyder.plugins.completion.kite.plugin] -> Kite was found on the system: C:\Program Files\Kite\kited.exe
2020-07-31 20:10:53,189 [DEBUG] [spyder.plugins.completion.kite.utils.status] -> Kite process already running with PID 16484
2020-07-31 20:10:53,189 [DEBUG] [spyder.plugins.completion.kite.client] -> Starting Kite HTTP session...
2020-07-31 20:10:53,196 [DEBUG] [urllib3.connectionpool] -> Starting new HTTP connection (1): 127.0.0.1:46624
2020-07-31 20:10:53,197 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "GET /clientapi/languages HTTP/1.1" 200 16
2020-07-31 20:10:53,198 [DEBUG] [spyder.plugins.completion.kite.plugin] -> Kite client is available for ['go', 'python']
2020-07-31 20:10:53,201 [INFO] [spyder.plugins.completion.languageserver.plugin] -> Starting LSP client for python...
2020-07-31 20:10:53,222 [INFO] [spyder.plugins.completion.languageserver.client] -> Starting server: C:\Users\space.conda\envs\spyder\python.exe -m pyls --host 127.0.0.1 --port 2088 --tcp --check-parent-process --log-file C:\Users\space.spyder-py3\lsp_logs\server_python_1366068.log -vv
2020-07-31 20:10:55,007 [INFO] [spyder.app.mainwindow] -> Loading third-party plugins...
2020-07-31 20:10:55,050 [DEBUG] [urllib3.connectionpool] -> Starting new HTTP connection (1): 127.0.0.1:8071
2020-07-31 20:10:57,095 [INFO] [spyder.app.mainwindow] -> Setting up main window...
2020-07-31 20:11:00,755 [DEBUG] [spyder.plugins.completion.languageserver.client] -> Perform request textDocument/didOpen with id 3
2020-07-31 20:11:00,756 [DEBUG] [spyder.plugins.editor.widgets.codeeditor] -> Completion services available for: C:\Users\space.conda\envs\spyder\lib\typing.py
2020-07-31 20:11:00,757 [DEBUG] [spyder.plugins.completion.kite.client] -> Perform request textDocument/didOpen with id 0
2020-07-31 20:11:00,757 [DEBUG] [spyder.plugins.completion.fallback.actor] -> Perform request textDocument/didOpen with id 0
2020-07-31 20:11:00,757 [DEBUG] [spyder.plugins.editor.widgets.editor] -> Set focus to: C:\Users\space.conda\envs\spyder\lib\typing.py
2020-07-31 20:11:00,759 [DEBUG] [spyder.plugins.editor.widgets.editor] -> Current changed: 0 - C:\Users\space.conda\envs\spyder\lib\typing.py
2020-07-31 20:11:00,762 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "GET /clientapi/status?filename=C%3A%5CUsers%5Cspace%5C.conda%5Cenvs%5Cspyder%5Clib%5Ctyping.py HTTP/1.1" 200 121
2020-07-31 20:11:00,769 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "POST /clientapi/editor/event HTTP/1.1" 200 0
2020-07-31 20:11:00,831 [DEBUG] [traitlets] -> Received history reply with 171 entries
2020-07-31 20:11:00,831 [DEBUG] [traitlets] -> handle_msg[79593ef5d38b11eaa2121005014b4f93]({'header': {'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_11', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'cc34953b-8af5ac00fc94f9e925071b58', 'date': datetime.datetime(2020, 8, 1, 0, 10, 58, 889826, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_11', 'msg_type': 'comm_msg', 'parent_header': {'msg_id': 'b49d991e-d6891421ad7f38f13664adc1_3', 'msg_type': 'comm_open', 'username': 'username', 'session': 'b49d991e-d6891421ad7f38f13664adc1', 'date': datetime.datetime(2020, 8, 1, 0, 10, 57, 802827, tzinfo=tzutc()), 'version': '5.3'}, 'metadata': {}, 'content': {'data': {'spyder_msg_type': 'remote_call', 'content': {'call_name': '_set_comm_port', 'call_id': '91af35b1f6fe45e38820cff893fd9bda', 'settings': {'blocking': False, 'timeout': None, 'send_reply': False}, 'comm_port': 61313, 'pickle_highest_protocol': 5}, 'pickle_protocol': 5, 'python_version': '3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]'}, 'comm_id': '79593ef5d38b11eaa2121005014b4f93'}, 'buffers': [<memory at 0x0000021A37B397C0>]})
2020-07-31 20:11:00,833 [DEBUG] [traitlets] -> Connecting to: tcp://127.0.0.1:61313
2020-07-31 20:11:00,836 [DEBUG] [traitlets] -> handle_msg[79593ef5d38b11eaa2121005014b4f93]({'header': {'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_12', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'cc34953b-8af5ac00fc94f9e925071b58', 'date': datetime.datetime(2020, 8, 1, 0, 10, 58, 889826, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_12', 'msg_type': 'comm_msg', 'parent_header': {'msg_id': 'b49d991e-d6891421ad7f38f13664adc1_3', 'msg_type': 'comm_open', 'username': 'username', 'session': 'b49d991e-d6891421ad7f38f13664adc1', 'date': datetime.datetime(2020, 8, 1, 0, 10, 57, 802827, tzinfo=tzutc()), 'version': '5.3'}, 'metadata': {}, 'content': {'data': {'spyder_msg_type': 'remote_call', 'content': {'call_name': '_set_pickle_protocol', 'call_id': 'cbbc4d7dca8647d0bf1aab58486d4bf2', 'settings': {'blocking': False, 'timeout': None, 'send_reply': False}, 'comm_port': 61313, 'pickle_highest_protocol': 5}, 'pickle_protocol': 5, 'python_version': '3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]'}, 'comm_id': '79593ef5d38b11eaa2121005014b4f93'}, 'buffers': [<memory at 0x0000021A2DE3B040>]})
2020-07-31 20:11:00,837 [DEBUG] [traitlets] -> handle_msg[79593ef5d38b11eaa2121005014b4f93]({'header': {'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_15', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'cc34953b-8af5ac00fc94f9e925071b58', 'date': datetime.datetime(2020, 8, 1, 0, 10, 58, 891829, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_15', 'msg_type': 'comm_msg', 'parent_header': {'msg_id': 'b49d991e-d6891421ad7f38f13664adc1_4', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'b49d991e-d6891421ad7f38f13664adc1', 'date': datetime.datetime(2020, 8, 1, 0, 10, 57, 803828, tzinfo=tzutc()), 'version': '5.3'}, 'metadata': {}, 'content': {'data': {'spyder_msg_type': 'remote_call', 'content': {'call_name': '_set_comm_port', 'call_id': 'e552b76a537b479a9af16c6977682046', 'settings': {'blocking': False, 'timeout': None, 'send_reply': False}, 'comm_port': 61313, 'pickle_highest_protocol': 5}, 'pickle_protocol': 5, 'python_version': '3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]'}, 'comm_id': '79593ef5d38b11eaa2121005014b4f93'}, 'buffers': [<memory at 0x0000021A2DE3B100>]})
2020-07-31 20:11:00,837 [DEBUG] [traitlets] -> handle_msg[79593ef5d38b11eaa2121005014b4f93]({'header': {'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_16', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'cc34953b-8af5ac00fc94f9e925071b58', 'date': datetime.datetime(2020, 8, 1, 0, 10, 58, 891829, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'cc34953b-8af5ac00fc94f9e925071b58_16', 'msg_type': 'comm_msg', 'parent_header': {'msg_id': 'b49d991e-d6891421ad7f38f13664adc1_4', 'msg_type': 'comm_msg', 'username': 'username', 'session': 'b49d991e-d6891421ad7f38f13664adc1', 'date': datetime.datetime(2020, 8, 1, 0, 10, 57, 803828, tzinfo=tzutc()), 'version': '5.3'}, 'metadata': {}, 'content': {'data': {'spyder_msg_type': 'remote_call', 'content': {'call_name': '_set_pickle_protocol', 'call_id': '72e216984f4b4a06b9b88de6bacadb7b', 'settings': {'blocking': False, 'timeout': None, 'send_reply': False}, 'comm_port': 61313, 'pickle_highest_protocol': 5}, 'pickle_protocol': 5, 'python_version': '3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]'}, 'comm_id': '79593ef5d38b11eaa2121005014b4f93'}, 'buffers': [<memory at 0x0000021A2DE3B1C0>]})
2020-07-31 20:11:00,839 [DEBUG] [traitlets] -> execute_reply: {'status': 'ok', 'execution_count': 0, 'user_expressions': {}, 'payload': []}
2020-07-31 20:11:00,847 [DEBUG] [urllib3.connectionpool] -> Starting new HTTP connection (1): 127.0.0.1:8071
2020-07-31 20:11:02,887 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 0 Got response from kite
2020-07-31 20:11:02,904 [DEBUG] [spyder.plugins.completion.languageserver.client] -> python response: textDocument/publishDiagnostics
2020-07-31 20:11:05,416 [DEBUG] [spyder.api.panel] -> LineNumberArea visibility changed
2020-07-31 20:11:05,420 [DEBUG] [spyder.api.panel] -> ClassFunctionDropdown visibility changed
2020-07-31 20:11:07,572 [DEBUG] [spyder.plugins.editor.plugin] -> Perform request textDocument/didOpen for: C:\Users\space.conda\envs\spyder\lib\site-packages\PySimpleGUI\PySimpleGUI.py
2020-07-31 20:11:07,573 [DEBUG] [spyder.plugins.completion.languageserver.client] -> Perform request textDocument/didOpen with id 9
2020-07-31 20:11:07,576 [DEBUG] [spyder.plugins.editor.widgets.codeeditor] -> Completion services available for: C:\Users\space.conda\envs\spyder\lib\site-packages\PySimpleGUI\PySimpleGUI.py
2020-07-31 20:11:07,576 [DEBUG] [spyder.plugins.completion.kite.client] -> Perform request textDocument/didOpen with id 6
2020-07-31 20:11:07,576 [DEBUG] [spyder.plugins.completion.fallback.actor] -> Perform request textDocument/didOpen with id 6
2020-07-31 20:11:07,582 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "GET /clientapi/status?filename=C%3A%5CUsers%5Cspace%5C.conda%5Cenvs%5Cspyder%5Clib%5Csite-packages%5CPySimpleGUI%5CPySimpleGUI.py HTTP/1.1" 200 58
2020-07-31 20:11:07,602 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "POST /clientapi/editor/event HTTP/1.1" 200 0
2020-07-31 20:11:07,713 [DEBUG] [spyder.plugins.editor.widgets.editor] -> Updating queue:
2020-07-31 20:11:07,713 [DEBUG] [spyder.plugins.editor.widgets.editor] ->     started: 0
2020-07-31 20:11:07,714 [DEBUG] [spyder.plugins.editor.widgets.editor] ->     pending: 1
2020-07-31 20:11:07,715 [DEBUG] [spyder.plugins.editor.widgets.editor] -> ===>starting: <spyder.plugins.editor.widgets.editor.AnalysisThread object at 0x0000021A2DEBE430>
2020-07-31 20:11:07,720 [DEBUG] [urllib3.connectionpool] -> Starting new HTTP connection (1): 127.0.0.1:8071
2020-07-31 20:11:09,748 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 4 timed out
2020-07-31 20:11:09,748 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 5 timed out
2020-07-31 20:21:04,876 [DEBUG] [spyder.plugins.completion.kite.client] -> Perform request textDocument/hover with id 32
2020-07-31 20:21:04,877 [DEBUG] [spyder.plugins.completion.fallback.actor] -> Perform request textDocument/hover with id 32
2020-07-31 20:21:04,880 [DEBUG] [spyder.plugins.completion.kite.providers.document] -> C::Users:space:.conda:envs:spyder:lib:typing.py
2020-07-31 20:21:04,902 [DEBUG] [urllib3.connectionpool] -> http://127.0.0.1:46624 "GET /api/buffer/spyder/%3Awindows%3AC%3AUsers%3Aspace%3A.conda%3Aenvs%3Aspyder%3Alib%3Atyping.py/9420c0593f9ff685b7cf76bf43b3640c/hover?cursor_runes=102 HTTP/1.1" 200 0
2020-07-31 20:21:04,904 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 32 Got response from kite
2020-07-31 20:21:05,072 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 32 timed out
2020-07-31 20:21:05,382 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 32 Got response from lsp
2020-07-31 20:21:05,383 [DEBUG] [spyder.plugins.completion.plugin] -> Completion plugin: Request 32 removed
2020-07-31 20:21:05,392 [DEBUG] [spyder.plugins.completion.plugin] -> Gather responses for textDocument/hover
USER : CTRIL-C
Handling signal: 0
Traceback (most recent call last):
File "C:\Users\space.conda\envs\spyder\lib\site-packages\spyder\widgets\dock.py", line 35, in eventFilter
def eventFilter(self, obj, event):
KeyboardInterrupt
2020-07-31 20:21:17,892 [INFO] [spyder.plugins.completion.languageserver.plugin] -> Shutting down LSP manager...
2020-07-31 20:21:17,893 [INFO] [spyder.plugins.completion.languageserver.plugin] -> Stopping LSP client for python...
2020-07-31 20:21:17,893 [INFO] [spyder.plugins.completion.languageserver.client] -> Stopping python client...
2020-07-31 20:21:17,895 [DEBUG] [spyder.plugins.completion.kite.client] -> Closing Kite HTTP session...
2020-07-31 20:21:17,896 [DEBUG] [spyder.plugins.completion.fallback.actor] -> Fallback plugin stopping...
(spyder) C:\Users\space>
Versions

Spyder version: 4.1.4
Python version: 3.8.0
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0           :  1.4.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.5.0 (OK)
diff_match_patch >=20181111    :  20200713 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.16.1 (OK)
jedi =0.17.1                   :  0.17.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  1.1.0 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.7.0                   :  0.7.0 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=1.0                   :  2.5.3 (OK)
pyls >=0.34.0;<1.0.0           :  0.34.1 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.2 (OK)
qtconsole >=4.6.0              :  4.7.5 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.1.2 (OK)
spyder_kernels >=1.9.2;<1.10.0 :  1.9.2 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.1 (OK)

# Optional:
cython >=0.21                  :  None (OK)
matplotlib >=2.0.0             :  None (OK)
numpy >=1.7                    :  None (OK)
pandas >=0.13.1                :  None (OK)
scipy >=0.17.0                 :  None (OK)
sympy >=0.7.3                  :  None (OK)

# Spyder plugins:
spyder_terminal                :  0.4.0 (OK)

The error log file and terminal I/O:
spyder_terminal_err.log
spyder_terminal_output.txt

repo: spyder-ide/spyder


text:
codes are not running fully !!!!

Description
What steps will reproduce the problem?

i have ran a line of code or if i go and run my code then its not running .
Traceback
Traceback (most recent call last):
  File "C:\Users\Prince rajput\anaconda3\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\Users\Prince rajput\anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 278, in _handle_input_request
    return super(DebuggingWidget, self)._handle_input_request(msg)
  File "C:\Users\Prince rajput\anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 512, in _handle_input_request
    self._readline(msg['content']['prompt'], callback=callback, password=msg['content']['password'])
  File "C:\Users\Prince rajput\anaconda3\lib\site-packages\qtconsole\console_widget.py", line 2422, in _readline
    self._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument 'separator'

Versions

Spyder version: 5.1.5
Python version: 3.9.12
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  8.2.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.1 (OK)
jsonschema >=3.2.0            :  4.4.0 (OK)
keyring >=17.0.0              :  23.4.0 (OK)
nbconvert >=4.0               :  6.4.4 (OK)
numpydoc >=0.6.0              :  1.2 (OK)
paramiko >=2.4.0              :  2.8.1 (OK)
parso >=0.7.0;<0.9.0          :  0.8.3 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.11.2 (OK)
pylint >=2.5.0;<2.10.0        :  2.9.6 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.2.2;<1.3.0          :  1.2.4 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.3.0 (OK)
qtpy >=1.5.0                  :  2.0.1 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  61.2.0 (OK)
sphinx >=0.6.6                :  4.4.0 (OK)
spyder_kernels >=2.1.1;<2.2.0 :  2.1.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  0.29.28 (OK)
matplotlib >=2.0.0            :  3.5.1 (OK)
numpy >=1.7                   :  1.21.5 (OK)
pandas >=1.1.1                :  1.4.2 (OK)
scipy >=0.17.0                :  1.7.3 (OK)
sympy >=0.7.3                 :  1.10.1 (OK)

it did not work , i am not able toh use the function download and install , if i put it then also its not downloading