Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo-samples-rest-springmvc-1 #1121

Merged
merged 4 commits into from
Aug 15, 2024
Merged

Conversation

QuYao-Fighting
Copy link
Contributor

No description provided.

@chickenlj
Copy link
Contributor

https://github.com/apache/dubbo-samples/actions/runs/8487553378/job/23255505102?pr=1121

Please make sure to add ASF headers for all the new files.

1 similar comment
@chickenlj
Copy link
Contributor

https://github.com/apache/dubbo-samples/actions/runs/8487553378/job/23255505102?pr=1121

Please make sure to add ASF headers for all the new files.

@chickenlj
Copy link
Contributor

The following test case failed:

getVariable(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.021 s
RestPutUpdateId(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.014 s
RestFilterGet(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.051 s
putUpdateId(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.024 s
RestPostBody(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.073 s
RestPostList(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.058 s  <<< ERROR!
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error: "{"message":"Failed to convert from type [java.util.ArrayList<?>] to type [java.util.List<org.apache.dubbo.rest.demo.pojo.User>] for value [[...]]","status":"500"}"
	at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:102)
	at org.springframework.web.client.StatusHandler.lambda$defaultHandler$3(StatusHandler.java:89)
	at org.springframework.web.client.StatusHandler.handle(StatusHandler.java:146)
	at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.applyStatusHandlers(DefaultRestClient.java:680)
	at org.springframework.web.client.DefaultRestClient.readWithMessageConverters(DefaultRestClient.java:200)
	at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.readBody(DefaultRestClient.java:667)
	at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.toEntityInternal(DefaultRestClient.java:637)
	at org.springframework.web.client.DefaultRestClient$DefaultResponseSpec.toEntity(DefaultRestClient.java:633)
	at org.apache.dubbo.rest.demo.test.ConsumerIT.RestPostList(ConsumerIT.java:449)
	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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:76)
	at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:206)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:161)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:84)
	at org.apache.dubbo.test.runner.ClassloaderSurefireStarter.runSuitesInProcess(ClassloaderSurefireStarter.java:78)
	at org.apache.dubbo.test.runner.TestRunnerMain.runInJunit4(TestRunnerMain.java:233)
	at org.apache.dubbo.test.runner.TestRunnerMain.main(TestRunnerMain.java:156)

RestPostUser(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.023 s
RestUseParams(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.051 s
RestDeleteId(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.025 s
RestPatchById(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.04 s
RestPostUseConsumesFormData(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.029 s
postUseConsumes(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.029 s
getParam(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.013 s
postParam(org.apache.dubbo.rest.demo.test.ConsumerIT)  Time elapsed: 0.014 s

Results:

Errors: 
  ConsumerIT.RestPostList:449 » InternalServer 500 Internal Server Error: "{"mes...

Tests run: 36, Failures: 0, Errors: 1, Skipped: 0

------------------------------------------------------------------------
Junit4: TEST FAILURE, Total: 36, Failures: 0, Errors: 1, Skipped: 0
------------------------------------------------------------------------

@chickenlj
Copy link
Contributor

Rerun this pull request when apache/dubbo#14334 is merged.

@chickenlj chickenlj merged commit 46a945c into apache:master Aug 15, 2024
50 of 55 checks passed
chickenlj added a commit that referenced this pull request Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants