Похожие чаты

Hi guys. I was looking for a place to ask

a couple of questions about a problem I am having with ibatis + java. Is this allowed here? I dont wanna disturb the chat!

2 ответов

4 просмотра

Just ask your problem but please try and show some effort before you do.

.- Автор вопроса
Agent Q | PM me for Paid Support
Just ask your problem but please try and show some...

I was tasked to make some new developments to an already functioning app which uses Java and ibatis (mybatis) plus an informix database. Part of this development consists on calling an already existing SPL which was updated with some new parameters. So this SPL has been in use for quite some time now. I added all the parameters in the XML file where our queries and stuff are, did the Java logic and stuff to add them to the parameter hash map which is the argument for the SPL (as I have done other times)...but, when I want to call the procedure it gives me the following error: class: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [IX000]; error code [-674]; The error ocurred while executing query procedure. Check the {call XXXXX (...)}. --- Check the SQL Statement (preparation failed). --- Cause: java.sql.SQLException: Routine (XXXX) can not be resolved.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in xml/xxxx.xml. I don't think I can post code because it's probably confidential or something like that, so that's why I am not attaching the whole log (names and stuff like that). However, my workmates checked the SPL logs and they told me that Java wasn't even calling it so the error is right before the call. It's probably good to know that when a param #param# is empty, we send it as NULL. Before adding the new parameters the app executed this same SPL and it worked like a charm. I've searched on Google and stack, there are plenty of similar questions but none of them gave me a useful answer. Google said that this error means three things: bad number of params No permissions. Bad params types. I have checked the 1 and 2 stuff and I am pretty sure these are not the problems. I don't think the third option is the problem, because I have tried to do a hard-coded xml call with call xxxx (NULL, NULL...)(everything as null to avoid problem with variable types) and it keeps throwing me the error. Of course, I checked the Java logs and show that the params were correctly formed (they are mostly amounts with a couple decimals and some strings, I already checked the syntax of decimals and stuff like that)and the number was correct. So I copied the call from the log to my SQL workbench and it worked! But copying that same call into the xml file and trying to execute it through Java fails. So the question is: can you think of any other thing that may be causing the problem? The XML file with the SQL compiles, so it's not a syntax error either.

Похожие вопросы

Обсуждают сегодня

Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
38
Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
24
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
10
Хтось використовував Vapor на Windows?
Jaroshevskii
15
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
25
Тут кста кто-нибудь NeoVim использует?
Simple Sorcerer
13
А чем вам питонисты не угодили?😂
.
79
у меня вопрос на счет .global <name> для чего это нужно если я пишу на ассемблере? только для того что бы сделать это видимым для линкера? вот что написано в докумментации GA...
Simple Sorcerer
1
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
Карта сайта