//Java对象转化json格式
public static void toJsonByJettisonMappedXmlDriver(){
try {
User user = getUser();
FileOutputStream fileOutputStream = new FileOutputStream(file);
OutputStreamWriter ow = new OutputStreamWriter(fileOutputStream, Charset.forName("UTF-8"));
xstream = new XStream(new JettisonMappedXmlDriver());
xstream.setMode(XStream.NO_REFERENCES);
xstream.alias("user", User.class);
xstream.toXML(user,ow);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}

在xstream初始化时报错

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAABG8AAAAiCAIAAABuuGMHAAANvUlEQVR4nO2dO7LjthKGuS4tiPvwDrQBV91VMPISTtVEjlQTOBlnDu0QN6DEg0ej/8aDFEj9XymY0vAQjUY/SZCa/vr171+//l3++HKEPHncb9O82L//FJT5L/N0uz9y/zVN0zsUd5p1fKoop0HrORrn9LjftjMsc6M4R9M+fe3M9/utnzq6iNpdquMYzv3IPihJgRByMSZ2UyThNFU4UeE6FvK436YnLIOevO9igMaYUhFCCPlI2E0RQgghhBBCSA1xN/U/QgghhBBCCCEGeG+KEEIIIYQQQmqQu6lpmt4lECGEEEIIIYScAnZThBBCCCGEEFIDuylCCCGEEEIIqeFjuqn7zU2Te+8LdUeQgRgZZbEe7ja56eb4vm5CCDkx7w7moyQ1MgbXsIdhZvEh3dQaxSY3zR8qw2pw77e3kGUulmqevj3H/3dn2haro5CPu5smN01uuJ8/Wp6CTfutwim4nB5Wr9w+I0+oIoCQOg5QdekQp0tqbw7mI1RBHtdwXjiL905TC+aD2UMlA81C6abCKmHk5DobVDlC/7q3DIoeTpd4cvg6nPfMTC2L1VPId1/OzDJ+F/GKs4FsD3eb3O1eear1E/z52/UgBepqKVbTFU4lpoN3m2UcQM6Ts05GndcUcoVuSldUQzCHRc5ZqqAnh1jUAQCjzU1TSSj9yAbz8IAh7CHDqaz6Y7qpT+Bzuqm1OfH/PRSnELIbyyCxLGHLWH75Up7Fo8t72a7pXXrIBOqaDK1Ue+ymPpj1psrearxAN7Wforp0U+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geOYt7YpvilKO1RtH6J0UwMAHnUl5AN4bth7txhHI77htPezdoR8HAbP6nud68KUKupDg/khFgXLxQPqySs4DjNvJeymCBmKh7uhX8j5CMSJr19+ZDlCSB8MntXzB7IuDVAUg/mLAyxqhG7qCo7DzFsJuylChkK6yb7fNsJxyb+vdscXphFyeehZh8FgfiAjdFNXgPGhEnZThIxG+PjHJ9t/vIWd18YI6QE96yAYzI+C3VRHGB/KGbubIoQQQgghhJBRkbspQgghhBBCCCE67KYIIYQQQgghpAZ2U4QQQgghhBBSA7spQsjJWR8v3v2NQ+vLjvg8rspBa0HG4BrL3T6L4/SwjPwO7sfy5zR/Tb//825ByBGcZ7n/u//2Nc1/3v/ecQx2U8TGCO/DGUEGiP+z7uQItje67lxkbL/+zsXNctRaXIll7h3WwvfI7VjiX2O522dxmB5eAw2aBNea9Wuafw4q4ID8+DnNX/OPjmf8Z57XVfjaudU5z3L//es2f03z1235b79B2E114gq/2qbOYoROxijDe9fiRN3UNYzW8d5UWD1Xt3zQHiwG87abFVKhuTYqgxu5302t/77dwyNKa2i9m5KspXq5eG/KcoZekXYW409YPddWjcvvoCyGB7h33qx4VvZBW/Lj5wlqfb+bWgX+7Ve4wtLUNPRuSrCW6l6O96Z8/g+wqg2xI56u1AAAAABJRU5ErkJggg==" alt="" />

查找源码

在new JettisonMapperdXmlDriver()对象时 其构造器如下

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwgAAABpCAIAAAARJ5MiAAAgAElEQVR4nO3dW1AcV4Im4PM2sU87sfs6L/uyLzPBRjiQorUTNGa3p32Rt+3BIMn04LLcXmZmPQ+7QnrY6B6XxzujW3c0gZqJbqu3RSEkkBASshBlAUJItmdagipASFyrqAt1r4LijuSZCDMPJ+958lJFQlbBX/GFAhVJ5smTSZ6fc05mEU92DAAAAAA82TFiewkAAAAACgSCEQAAAAAHwQgAAACAg2AEAAAAwEEwAgAAAOAgGO0vXadLCCHE0WR7SWAXFNLhbqokVY2m3gQAsJMkGA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fS08y+dOUZm57tIJ0wwg5HhGuTXeknZVMXWnrekug9Z/l9Vi2KmBjTaGI0OHp1gpKoBRt1q1bnRVC3VyqUpyq3aMcY5YLS/W9ppQOt8M3m6apwe2scu7yO176uC/xpzjMAGxRKM6AOv6Qv36lujtKwivrr5z+E0pROMtrbCj+cfHrj4P//g7w7/wd8d/t5v/3I08Y2J04t1E4qyQ156V5SrgRGM5Fdw/bvSWKtSrkE3GIlrPvRJg/RvX37NdW7lHCPCL+9TDxCob/9hvimZi8NoUVRb0a4BC4IRuwb4H2zgvqe8W035vtYuGx7rLWUQNHUXnvIgaqcBnZOEeYiVp6vG6aF17PI+Uvu+KoRiCH1miud+Aeyc4gtGlR32R4q9gQaj389nqLhuMKLWvp158a/+nToducvx3rgjVzUWVtS0HvtUAI+Dyt+eOt/2ZFWo5vNhHA12RbEEI7BeaVlFYm3zSSTzOJJ5HMnEV3N48rV1lB3se6SrvKgTg/ndKb7d3KPn256tCskU72I6zaC4IRjtX6VlFcm1F0PRBSqxuml7MNq15/PuKGGaRUG2NHnZo8Fob5xvqAoAayEY7V+lZRWp9Ree2CKVXLMlGO1BXDAqprgAAAAcBKP9iwajkfgilUIwAgCAfQ/BaP8qLatIr78cS2THEtmxeDa99gLBCAAA9rm8gtHQmXKn48SQ/U07bEdpWUVm4+V4cmk8sTSeWMqsIxgBAMB+l0cwGjx/wVF+4WJhfEII5K+0rGJh4+VEcnkiufw8uZxZf4lgBAAA+1zuwch/sQbdRXtCaVnF4ua3U+kVanEDwQgAAPa7nIORq81R7jzjsrtRh+0rLavIbn47m1mdyazOZlazCEYAALDv5RqMOk84HTW9g7Y36rB9pWUVyy/+ZX7j4PEAAAA3SURBVG5xjVra/BbBCAAA9rncgpG7t77cWX/eb3+jDttXWlax8vJfgotr1DKCEQAA7Hvmg9G/AdPYaSW11LU1AAAAAElFTkSuQmCC" alt="" />

原因找到了  类org.codehaus.jetttison.mapped.Configuration没找到

java.lang.NoClassDefFoundError此异常与java.lang.ClassNotFoundException区别在于前者是在运行期异常后者是在编译期异常

NoClassDefFoundError的更多相关文章

  1. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

    学习架构探险,从零开始写Java Web框架时,在学习到springAOP时遇到一个异常: "C:\Program Files\Java\jdk1.7.0_40\bin\java" ...

  2. Android5.0以下出现NoClassDefFoundError

    事发起因 大周末的,突然接到老大的电话说很多用户无法安装新上线的APK,让我紧急Fix(现Android项目就我一己之力).但奇怪的是也没有Bug Reporter,而且开发过程中也一直没问题.根据上 ...

  3. Error configuring application listener of class。。。NoClassDefFoundError。。某Listener 之启动tomcat报错

    当你启动tomcat的时候如果报类似下面的错误: WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to ' ...

  4. java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;

    如果你出现类似如下错误 1. Install tomcat7 in my home directory and set up `CATALINA_HOME` environment variable ...

  5. 【错误总结】java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

    运行环境      JDK1.7 64位      Window 7  64位      Ecplise Java EE IDE      Struts 2.3.9      Tomcat 7 说明: ...

  6. zookeeper_service 出错 java.lang.NoClassDefFoundError: org/I0Itec/zkclient/exception/ZkNoNodeException

    2016-12-18 08:28:07 ContextLoader:358 ERROR - Context initialization failed java.lang.NoClassDefFoun ...

  7. Android导包导致java.lang.NoClassDefFoundError

    摘要: SDK方法总数是不能超过65k的.是否也引入其他的三方库,导致总数超过限制.超出限制会导致部分class找不到,引发java.lang.NoClassDefFoundError.解决方法:近日 ...

  8. Spring配置c3p0数据源时出错报:java.lang.NoClassDefFoundError: com/mchange/v2/ser/Indirector

    今天在使用Spring配置c3p0数据源时,使用的数据库是mysql,服务器是tomcat,运行时报了一个 java.lang.NoClassDefFoundError: com/mchange/v2 ...

  9. JAVA类的静态加载和动态加载以及NoClassDefFoundError和ClassNotFoundException

    我们都知道Java初始化一个类的时候可以用new 操作符来初始化, 也可通过Class.forName()的方式来得到一个Class类型的实例,然后通过这个Class类型的实例的newInstance ...

  10. java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException错误的解决

    java.lang.NoClassDefFoundError 是运行时jvm找不到对应类.这种情况是少包的导致的.根据提示语添加对应的jar包就可以. 感叹一下:maven真是一个伟大的东西,在包的依 ...

随机推荐

  1. js canvas压缩图片上传

    $('input[type="file"]').on('change',function(){ var files = !!this.files ? this.files : [] ...

  2. django例子,question_text为中文时候报错

    问题描述 UnicodeEncodeError at /admin/polls/question/3/ 'ascii' codec can't encode characters in positio ...

  3. (原创)Windows系统后安装ubuntu,无法选择启动ubuntu。

    继Window系统之后,安装Ubuntu系统. 问题:启动没有Grub的ubuntu启动项. 查看:/boot/grub/中只有txt和env,内容空白,grub没有设置好. 修复: sudo fdi ...

  4. JS获取Url中传入的参数

    一:后台获取,前台调用 后台: object value= Request.QueryString[key]; 前台js: $(function(){ var value="<%=va ...

  5. eclipse maven web环境搭建

    选择创建new project 勾选跳过创建类型选择(让eclipse创建标准maven项目) 填写组织ID,唯一ID,注意:如果选择打包类型为war包时,会生成web类型的maven工程 修改JRE ...

  6. css3动画特效:上下晃动的div

    css3动画特效:上下晃动的div <div id="square" class="container animated">上下晃动</div ...

  7. linux命令格式及基础命令(一)

    linux命令格式 ~]#COMMAND [选项] [参数] 例如: ~]#ls 不带任何选项和参数 ``` stylus ~]#ls -lh /etc 列出/etc下所有文件和目录,同时要求以格式和 ...

  8. 修改主机hostname

    1 修改hostname配置文件 vi /etc/sysconfig/network中的HOSTNAME 2 修改完后,使用hostname命令验证,发现hostname还是原来的 退出shell重新 ...

  9. Yii读取TXT文件数据插入到数据库

    个人平时会用到的方法,记录一下并分享给需要的朋友,Yii批量添加还需要clone一下model才可以,不然只会插入一条数据. 也可以把文件通过参数的方式调入到方法中. // 读取CVS文件 funct ...

  10. vi编辑器 使用 命令

    vi编辑器 1)命令模式 打开文件后.默认处于命令模式,命令模式无法编辑文件 2)输入模式 在命令模式下 按 i 进入输入模式,便于编辑文件内容 3)末行模式 编辑内容后,按esc进入到命令模式,再按 ...