๋ชฉ์ฐจ
240228 - ๋ฌธ/๋ทฐ์์ฑ๊ถํ๋ฏธ๋ถ์ฌ
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to perform a database operation without
the necessary privileges.
*Action: Ask your database administrator or designated security
administrator to grant you the necessary privileges
→ ๋ทฐ ์์ฑ ๊ถํ ๋ฏธ ๋ถ์ฌ ์๋ฌ
240228 - ๋ฐ/๋ทฐ ์กฐํ๋์ง ์์
-> DB์ start ๊ฐ ์์ฝ์ด
240229 - ์ค/mybatis ์ฐ๊ฒฐ์ด ์ฒ์์๋ง ๋๊ณ , ์ดํ ์ฐ๊ฒฐ๋์ง ์์(jsp ๋จ๋ ํ์ด์ง๋ ์ ์์ด๋ฆผ)
git์ ์ฐ๊ฒฐํ ํ๋ก์ ํธ์์๋ง ๋ฌธ์ ๋ฐ์.
์๋ฌด๋๋ git ์ฐ๊ฒฐ๋ ์ค์ ์ ํ์ ์ปดํจํฐ์ด๊ณ ๋ฐ๋ผ์ ํด๋น metadata๋ก ์ ํ ๋๊ฒ์ผ๋ก ์๊ฐ๋จ.
๊ทธ๋ฐ๋ฐ ์ปดํจํฐ git์ ๊ฒฝ์ฐ ํ์ metadata์ ๋ค๋ฅด๋ฏ๋ก ๊ฐ์์ ์ธ ํ์ผ์ด๋ ํด๋๊ตฌ์กฐ๋ ๊ฐ์ง๋ง ์ค ์ ํ ๋ด์ฉ์ด ๋ค๋ฅด๊ธฐ ๋๋ฌธ์ ์คํ๋์ง ์์.
240229 - ๋ฐ/๋๋น์ฐ๊ฒฐ์ ๋์์ผ๋ ๋ด์ฉ ๋ ธ์ถ์๋จ(์ค๋ฅ๋จ์ง ์์)
→ ํ ์ด๋ธ๊ณผ ์ํ์ค๋ฅผ ์ญ์ ํ๊ณ ๋ค์ ๋ทฐ๋ฅผ ์์ฑํ์ง ์์์ ๋ฐ์
240229 - ๋ฌธ/ ใ กmapper ์ฐ๊ฒฐ ์๋ชป๋์ด ์๋ฌ๋ฐ์
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Type interface com.itmeet
up.mybatis.IIndictDAO is not known to the MapperRegistry
240229 - ๋ฌธ/ ํ์ด์ง ๋ ธ์ถx
Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
→ DAO.xml์์ ‘ ;’(์ธ๋ฏธ์ฝ๋ก ) ์ญ์ ํ์
์ฐธ๊ณ 1: https://thisisprogrammingworld.tistory.com/167
240229 - ์/ - jsp ํ์ผ ๊ฒฐ๊ณผ๊ฐ ์๋์ฌ์
→ DTO.java ์ DAO.xml ์ด๋ jsp์ ์ด ๋ณ์๋ช ์ด ์ด๋ฆ์ด ๊ฐ์์ผ ํ๋ค. ๋์๋ฌธ์๋ ์๊ด ์์ผ๋, dto์ ๋ณ์๋ช ์ ํ์ธํ๊ธฐ
240209 - ์ด / ๋ฐ์ดํฐ ์ถ๋ ฅํ ๋ ๋ ์ง๊ฐ ๋
์ ์ผ ์ ๋ถ ์ด๊ฐ ๋์ด
→ TRUNC๋ฅผ ์จ์ ๋ฒ๋ฆฌ๋ ค๊ณ ํ์ง๋ง ์ ๋จนํ์ ๊ฒฐ๊ตญ TO_CHAR ์จ์ ํด๊ฒฐํจ ใ
ใ
; ;
240209 - ๋ฐ / DB์ ๋งคํ์ด ์๋จ(DAO.xml ์ ์ฟผ๋ฆฌ๋ฌธ๊ณผ IDAO.java)
→ resultType ์ ์ฟผ๋ฆฌ๋ฌธ ํ๋ ๊ธฐ์ค์ผ๋ก ์ง์ ํด์ฃผ์ด์ผ ํ๋๋ฐ ์ ์ฒด๋ก ์๊ฐํ์!
ex. ์ฌ๋ฌ ๊ธฐ์ ์ ๊ฐ์ ธ์ฌ ๋
240302 - ์ค / ํ๋ผ๋ฏธํฐ๋ฅผ ์ฐพ์ง ๋ชปํ ์ค๋ฅ
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'piId' not found. Available parameters are [arg1, arg0, param1, param2]
→ sql mapper ๋ฉ์๋๋ ํ๋์ ํ๋ผ๋ฏธํฐ๋ง ์ฝ์.(ํ๋ผ๋ฏธํฐ 2๊ฐ ์ด์์ ๋ฐ์)
ํด๋น ํ๋ผ๋ฏธํฐ๊ฐ ์ด๋ค ๊ฒ์ธ์ง @param์ผ๋ก ๋ช
์ํ์ฌ ํด๊ฒฐ
์ฐธ๊ณ 1: https://velog.io/@gpfl5202/Available-parameters-are-arg1-arg0-param1-param2-%EC%98%A4%EB%A5%98
์ฐธ๊ณ 2: https://blog.naver.com/hj_kim97/222739563456
240302 - ์ค / ๋ด๋ถํ๊ธฐ๋ณํ์ค๋ฅ
Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column 'PIMEMCODE' from result set. Cause: java.sql.SQLException: ๋ด๋ถ ํ๊ธฐ๋ก ๋ณํํ ์ ์์ต๋๋ค
→ pimemcode๊ฐ string์ธ๋ฐ dto์ int๋ก ๊ธฐ์ฌ๋์ด์์
240304 - ์ค / mapper ์ฐ๊ฒฐ์ด ์ ํ์ ์ผ๋ก ๋จ
→ mapper name์ด mapper์ ์์น๋ฅผ ์ฐ๊ฒฐํด์ฃผ๋ ์ญํ ์ ํจ. ์ง์ ํ์ง ์์ ๊ฒฝ์ฐ ๋ง์ด๋ฐํฐ์ค๊ฐ ์์ฒด์ ์ผ๋ก ์ฐ๊ฒฐ. ํ์ง๋ง ๊ถ์ฅ๋์ง ์์
240304 - ์ค / <c:forEach>์์ ๋ณ์๋ 1๊ฐ๋ง ์ฌ์ฉ๊ฐ๋ฅ
์๋ฆฌ๋จผํธ ๋ด์์ ์์ฑ์ qualified ์ด๋ฆ๋ค์ ๋ฐ๋์ ์ ์ผํด์ผ ํฉ๋๋ค.
→ varStatus="status" ์ถ๊ฐ ํ ํ์์์ ${status.index + 1} ์ด๋ ๊ฒ ๋ฒํธ๋ถ์ฌ
ex.) <c:forEach var="meetItem" items="${meets }" varStatus="status">
240305 - ์ค / ํ๋ก์์ ๋ฅผ ๋ง์ด๋ฐํฐ์ค์์ ์ฌ์ฉ์ ์ถ๊ฐ์ ์ธ ๊ตฌ๋ฌธ์ด ํ์
Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
→ (1) statementType="CALLABLE"
(2) {์ CALL์ฌ์ด์๋ ํ์นธ์ ๊ณต๊ฐ๋ง ํ์ฉ(๋ถ์ฌ์ฐ์!)
(3) ๋งค๊ฐ๋ณ์ IN or OUT ์ฒ๋ฆฌํด์ฃผ๊ธฐ
<!-- ์ง์
์ถ๊ฐ ์ฟผ๋ฆฌ๋ฌธ -->
<select id="addMember" parameterType="string" statementType="CALLABLE">
{call MEMBER_INSERT(
#{piName, mode=IN, jdbcType=VARCHAR}
, #{piEmail, mode=IN, jdbcType=VARCHAR}
, NULL
, #{piId, mode=IN, jdbcType=VARCHAR}
, #{piPw, mode=IN, jdbcType=VARCHAR}
, #{piNickname, mode=IN, jdbcType=VARCHAR}
, NULL
, #{mJobCode, mode=IN, jdbcType=VARCHAR}
, #{mMetCode, mode=IN, jdbcType=VARCHAR}
, #{mSiggCode, mode=IN, jdbcType=VARCHAR}
)
}
</select>
์ฐธ๊ณ : https://action713.tistory.com/entry/mybatis-Oracle-Procedure-%ED%98%B8%EC%B6%9C%ED%95%98%EA%B8%B0
240305 - ์ค / null์ ๋ฃ๋ ๊ฒฝ์ฐ int -> Integer๋ก ๋ฐ๊ฟ์ผํจ
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Mapper method 'com.itmeetup.mybatis.IMemberDAO.addMember attempted to return null from a method with a primitive return type (int).
→ ๋ฐํ๋ฐ๋ ํ์ ์ int ์ธ๋ฐ ์กฐํํ ๋ฐ์ดํฐ๊ฐ ๋ง์ง ์์์ ๋ฐ์ํ๋ ์๋ฌ. int ํ์ผ๋ก๋ null์ ๋ฐ์ ์ ์์
240307 - ์ด / ๋ฆฌ์์ค ์ ํ์ผ๋ก ์๊ธด ์๋ฌ
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
-> 240314 ์๋ฌ ํด๊ฒฐ ๋ฐ์ดํฐ ๋ฒ ์ด์ค์์
SELECT *
FROM v$resource_limit
where resource_name='processes';
ALTER SYSTEM SET PROCESSES=500 SCOPE=spfile;
shutdown immediate;
startup;
๋ฐ๊พธ๋ฉด ์ฑ๊ณต
240308 - ์ค / Controller action ์ค๋ณต ์ค๋ฅ
Cannot map handler [mypageController] to URL path [/myinfo.action]: There is already handler [com.itmeetup.mybatis.MypageController@1c7a031] mapped.
240308 - ์ค / ajax ์๋ฌ ํ์ธ๋ฒ
→
error:function(request,status,error){
console.log("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
}
์ฐธ๊ณ : https://shonm.tistory.com/454
240311 - ์ค/ SQL ์ฝ๋ ์๋ฌ๋ก ์๋ฌ
Parameter 'hopeskills' not found. Available parameters are [arg0, collection, list]
→ ์ฝ๋ ์๋ฌ๋ก parameter ์ฐพ์ ์ ์์
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cohttp://m.itmeetup.mybatis.IGroupHomeDAO.evalu
→ XML ๋ฌธ์ ์(์ธ๋ฏธ ์ฝ๋ก ๋น ์ง ํ์ธ ํ์)
240312 - ์/ view ์ค๋ฅ
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "QUE_NO": invalid identifier
### The error may exist in file [C:\Project\IT_MeetUp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\IT_MeetUp\WEB-INF\classes\com\itmeetup\mybatis\mapper\GroupHomeDAO.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT DISTINCT(QUE_NAME) "QUENAME", QUE_NO "evaqueno" FROM EVALNAMEVIEW WHERE QI_CODE = 'QI_2'
### Cause: java.sql.SQLSyntaxErrorException: ORA-00904: "QUE_NO": invalid identifier
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00904: "QUE_NO": invalid identifier
→ ๋ทฐ๋ฅผ ์์ฑํ ๋ "evaqueno"๋ฅผ ์ค์ ํ์ฌ ๋ฐ์ํ ์ค๋ฅ
'โ ๊ธฐ๋กํ๊ธฐ + > ์๋ฉด ์ข์ ๋ด์ฉ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํฌ๋กฌ ์๊ฒฉ ์ฌ์ฉ (0) | 2024.04.22 |
---|---|
[intellij] ํ๊ฒฝ์ค์ ๋ด๋ณด๋ด๊ธฐ, ๊ฐ์ ธ์ค๊ธฐ(Export Setting, Import Settings) (0) | 2024.04.22 |
[intellij] mysql JDBC ์ฐ๋ (0) | 2024.04.16 |
eclipse ๋๋ฒ๊ทธ (0) | 2024.01.20 |
ํ๋ก์ ํธ ํ๊ธฐ๋ฅผ ์์ฑํ๋ค๋ฉด, ์ด๋ป๊ฒ ์์ฑํด์ผํ๋์ง (0) | 2023.10.16 |