바쁘신 와중에 클릭해주셔서 감사합니다.
에러 코드로는
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at java.lang.Error
at protected java.util.List hsci.web.pay.masterpass.partnerwallet.domain.all.Errors.error
at hsci.web.pay.masterpass.partnerwallet.domain.all.Errors
at public javax.xml.bind.JAXBElement hsci.web.pay.masterpass.partnerwallet.domain.all.ObjectFactory.createErrors(hsci.web.pay.masterpass.partnerwallet.domain.all.Errors)
at hsci.web.pay.masterpass.partnerwallet.domain.all.ObjectFactory
at protected java.util.List hsci.web.pay.masterpass.partnerwallet.domain.all.ExtensionPoint.any
at hsci.web.pay.masterpass.partnerwallet.domain.all.ExtensionPoint
at protected hsci.web.pay.masterpass.partnerwallet.domain.all.ExtensionPoint hsci.web.pay.masterpass.partnerwallet.domain.all.VerifiableAddress.extensionPoint
at hsci.web.pay.masterpass.partnerwallet.domain.all.VerifiableAddress
at protected java.util.List hsci.web.pay.masterpass.partnerwallet.domain.all.VerifiableAddresses.verifiableAddress
at hsci.web.pay.masterpass.partnerwallet.domain.all.VerifiableAddresses
at protected hsci.web.pay.masterpass.partnerwallet.domain.all.VerifiableAddresses hsci.web.pay.masterpass.partnerwallet.domain.all.ShippingAddressVerificationRequest.verifiableAddresses
at hsci.web.pay.masterpass.partnerwallet.domain.all.ShippingAddressVerificationRequest
라고 뜨고요
소스내용은
protected String xmlToString(Object xmlClass) {
try {
JAXBContext jaxbContext = JAXBContext.newInstance(xmlClass.getClass());
StringWriter st = new StringWriter();
jaxbContext.createMarshaller().marshal(xmlClass, st);
String xml = st.toString();
return xml;
} catch (JAXBException e) {
throw new MCApiRuntimeException(e);
}
}
입니다
저기 javax 에 빨간줄로 들어가면
public static JAXBContext newInstance( Class[] classesToBeBound, Map<String,?> properties )
throws JAXBException {
// empty class list is not an error, because the context will still include
// spec-specified classes like String and Integer.
// if(classesToBeBound.length==0)
// throw new IllegalArgumentException();
// but it is an error to have nulls in it.
for( int i=classesToBeBound.length-1; i>=0; i-- )
if(classesToBeBound[i]==null)
throw new IllegalArgumentException();
return ContextFinder.find(classesToBeBound,properties);
}
빨간줄에서 null로떨어져서 에러가 나고있습니다
xml로 잘들어오는데 왜 null로떨어지는지 이해가안되네요..
조금이라도 도움을주세요...
구글링을아무리 해봐도... 안되네요..
바쁘신데 감사합니다
댓글 0