我有一个带有JAXB注释的类和一个抽象超类的包。当我这样做的时候,会抛出一个异常:
javax.xml.ws.WebServiceException: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.bind.UnmarshalException: Unable to create an instance of xxx.yyy.ZZZ
- with linked exception:
[java.lang.InstantiationException]]
可以手动封送/取消封送,并将参数作为字符串传递,
{
"code" : "messaging.config.beans.ImportFailed",
"message" : "Failed to import the bundle : com.apigee.repository.RepositoryException: javax.xml.bind.UnmarshalException\n - with linked exception:\n[org.xml.sax.SAXParseException: The entity name must immediately f
我正在尝试从xml文件创建java对象。我正在使用jaxb(解组)来创建java对象。我得到了错误javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.w3.org/2001/XMLSchema", local:"schema"). Expected elements are
我做了一些谷歌发现,我们需要xsd文件来做到这一点…因此,我使用apache inst2xsd工具将其转换为xsd。我正在使用下面的java代码:
import java.io.FileNotFound
我有一个使用jaxb的webservice,在客户端我通过Netbean构建webservice客户端jar文件。我的问题是有时客户端发送请求但不能读取响应对象,遵循异常:
Failed to read a response: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,36959]
Message: Premature EOF]
com.sun.xml.internal.ws.encodi
我正在尝试使用Jettison解析JSON对象。这是我使用的代码
String s ="{\"appUsage\":[{\"appName\":\"ANDROID\",\"totalUsers\":\"0\"},{\"appName\":\"IOS\",\"totalUsers\":\"4\"}]}";
JSONObject obj = new JSONObject(s);
ArrayList<MiAppUsage> l
在封送处理期间,我得到了下一个异常
Exception in thread "main" com.sun.xml.internal.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1127]
Message: XML document str
我的php客户机正在使用带有日期参数的java服务。客户端以下列格式传递它:
2016-09-18
服务器以下列方式响应:
javax.xml.bind.UnmarshalException: java.time.format.DateTimeParseException: Text '2016-09-18' could not be parsed at index 10
当它以简单的日期时间格式进行解释时:
2016-09-18T00:00:00.000-0000
如何在php中将其转换为简单的日期时间格式?
我正在构建一个web服务。
有人把非法字符放进了我们的数据库。
现在,当我尝试检索这些字符串并通过when服务发送它们时,客户端卡住了。
我得到一个错误,例如:
com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
- with linked exception:
[com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR,
我的上载令牌已过期,并在执行时
./fortifyclient token -getoken AnalysisUploadToken -url"http://<localhost>/ssc" -user ssc_upload
我收到
An internal error has occurred.
A JAXB unmarshalling exception;
nested exception is javax.xml.bind.UnmarshalException: unexpected element
我会展示剩下的部分,但这是大约的。200行。上一次发生
当我试图将一个xml文件转换为它的java对应文件时,我会收到这个错误:
09.09.2013 13:58:26 ERROR [manager.getContentsUnmarshalled():154] There was an error parsing the file: "props.xml". JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"newImag
我有以下XML:
<ns2:Person name="John" age="20" />
我想将它解组为JAXB对象Person,它是从XSD生成的。
这是我正在运行的代码:
JAXBContext context = JAXBContext.newInstance(PersoEntity.class);
Unmarshaller um = context.createUnmarshaller();
StringReader sr = new StringReader(xml);
Person p = (Person)um.unmarshal(sr)
我正在将带有@WebService注释的StatelessSessionBean部署到JBoss。我使用JBoss生成的WSDL来生成客户端存根。我的问题是调用一个返回对象列表的方法。但是,如果列表为空,则调用成功,但如果列表不是空的,则将得到以下异常:
com.sun.xml.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException
- with linked exception:
[javax.xml.bind.Unmar
每当我试图用模糊的jar文件对xml文件进行解组时,我都会得到以下异常。
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"XCaliberMessage"). Expected elements are (none)
如果jar文件没有被混淆,那么它工作得很好。
下面是我的代码:
fileName = "/xcalSmartChk/test-job.xml";
File f = new File(fileName);
我正在尝试使用spring为android发布一个rest服务(我是这方面的新手)
restful服务具有以下结构
@POST
@Path("/ider")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public SearchOutRO hashTrackInJSON(SearchInRO in);
使用(缩短的目标代码):
public class SearchInRO implements Serializable {
private Double lati