Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I have code bellow mapped in Entity:
#Formula("(select c.cd_company from table_2 c where c.id = idTable2)")
private Integer company;
When execute code ocurred error:
o.h.e.j.s.SqlExceptionHelper:SqlExceptionHelper [http-bio-50001-exec-2] SQL Error: 17027, SQLState: 99999
o.h.e.j.s.SqlExceptionHelper:SqlExceptionHelper [http-bio-50001-exec-2] Stream has already been closed
But, if i change "company" to other name, for example, "ompany", its work normally without errors
execution query with success
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
in end of code is this error what problem? tried many fixes but no ones help
https://i.stack.imgur.com/jwosT.png
return (List<String>) ImmutableList.of();
The problem with this is that the type of ImmutableList.of() is determined before the cast is applied.
The type of ImmutableList.of() in that context is ImmutableList<Object>. An ImmutableList<Object> isn't an ImmutableList<String>.
I'm surprised you need any type hinting here:
return ImmutableList.of();
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
How to parse below result xml(?) using SimpleXML?
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>
I've solved parsing like this:
#Root(name="boolean")
public class LogonResult {
#Text
boolean _boolean;
}
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
Hey I am trying to run a java program in a Oracle sql load.sql file. Whilerunning the program I am getting the error "ORA-00920: invalid relational operator ". I think the issue is in where I prepare the sql statement and trying to execute it. I am trying to get information out from two sql tables: a2_loan and a2_customer. In a2_loan i want to get the loan_num and the contract_date, while in the table a2_customer I want the name and the ird_num. My statement is currently:
String sql = "select a.name, ird_num, loan_num, contract_date from a2_loan a, a2_customer b where a.name=b.name and b.name";
I think it is in here that the problem lies but if it is somewhere else please tell me and I will copy the rest of my code!
I want to be getting the loan_num and contract_date out of the table a2_loan
And the name and ird_num out of the table a2_customer
Your query, slightly reformatted, is
select a.name, ird_num, loan_num, contract_date
from a2_loan a,
a2_customer b
where a.name=b.name
and b.name
The problem is in the last line. and b.name - what? and b.name = something? We can't tell from your query what you're trying to do, but in the last line you must compare b.name to something, or else you need to get rid of the entire last line.
Best of luck.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I am getting this error while compiling my code. Please help me with this-
code is
mapConnectionProperties = new HashMap<String, Integer>();
mapConnectionProperties.put(mobileSeriesMappingDTO
.getExternalIP(), mobileSeriesMappingDTO.getExternalPort());
mobileSeriesMappingDTO.getExternalPort() is seemingly a String. Convert it to an Integer.
Integer.parseInt(mobileSeriesMappingDTO.getExternalPort())
Your mobileSeriesMappingDTO.getExternalPort() gives a String,
Transform it to an Integer with :
Integer.parseInt(mobileSeriesMappingDTO.getExternalPort())
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am facing the following probleme in my JPA Entity during the runtime.
"The positional input parameter ''{0}'' cannot use non-Integer characters"
JPA CODE:
#NamedQuery(name = "tableName.findMenueByBenutzerIDAndMandatID",
query = "select m from DOMenueVerwaltung m " + " where m.menue=?EN"),
What can be the cause of this?
Thanks for any suggestion
JPQL supports either named parameters (":myParam") or numbered parameters ("?1", "?2"). What you have there is neither (a question mark symbolising numbered parameter, but with a name after rather than number). Suggest reading any decent JPA docs