a2aproject / a2aproject/a2a-samples
DateTime stamp format issues when using mixed A2A language implementations (python + Java)
- 主要語言
- Jupyter Notebook
- 星號
- 1.8k
- 分支
- 751
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### What happened?
When using a python based Agent which is fronted with a Java based orchestrator, there is a conflict with datetime format pattern.
Issues:
When sending a message from the Java orchestrator to the python agent and getting response, the unmarshall of the response throws an error about the datetime format. Java code expects a "yyyy-MM-dd'T'HH:mm:ss.SSSSSS" format while the python back end sent date time in "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSXX" format.
Workaround:
Changed the python A2A library to send it in the Java expected format.
### Relevant log output
```shell
Failed to send message: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDateTime` from String "2025-07-02T18:43:53.974294+00:00"
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
貢獻指南
研究方向
Look at the A2A protocol message serialization/deserialization code in both the Java orchestrator and Python agent libraries. Identify where datetime formatting is configured. The fix likely involves aligning the timestamp format in one library to match the other's expectation, possibly by modifying a date formatter pattern. Test by sending a message between the two and verifying the datetime field parses correctly.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java, python
- 領域
- api, backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100