题目
java.创建一个byte数组,long length = file.length(); byte[] bytes = new byte[(int)length]; 结果导致
问题错误为:java.lang.OutOfMemoryError:Java heap space
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.getBytesFromFile(MONServiceImpl.java:76)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.spliteBytes(MONServiceImpl.java:97)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.getFileLine(MONServiceImpl.java:59)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.upload(MONServiceImpl.java:45)
x05at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
x05at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
x05at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
x05at java.lang.reflect.Method.invoke(Method.java:597)
x05at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
x05at org.springframework.aop.framework.ReflectiveMethodInvocation.in
问题错误为:java.lang.OutOfMemoryError:Java heap space
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.getBytesFromFile(MONServiceImpl.java:76)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.spliteBytes(MONServiceImpl.java:97)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.getFileLine(MONServiceImpl.java:59)
x05at com.hitrust.FCBCNB.service.impl.MONServiceImpl.upload(MONServiceImpl.java:45)
x05at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
x05at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
x05at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
x05at java.lang.reflect.Method.invoke(Method.java:597)
x05at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
x05at org.springframework.aop.framework.ReflectiveMethodInvocation.in
提问时间:2021-02-27
答案
好恐怖的长度
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点
- 14倍的cos12度的平方减去2分之(根号3乘以tan12度减去3)乘以cssc12度.等于多少啊?
- 2根据句意填词 The new teacher will come here after he ( ) at school.
- 3如图所示,一木块放在光滑水平面上,一子弹水平射入木块中,射入深度为d,平均阻力为f.设木块离原点s远时开始匀速前进,下列判断正确的是( ) A.功fs量度子弹损失的动能 B.f(s+d)
- 4农机站有一台播种机,作业宽度1.8米,用脱机牵引,按每小时行6千米计算每小时可播种多少公顷?
- 5为什么不能往浓硫酸中加水而可以往水中加浓硫酸
- 6你想一个数,乘2,加6,再除以2,最后减去你想的数,等于3,请解释其中的原因.
- 7关于碳十二
- 8语文的开头,作文题是在秋天里行走,语句优美点,
- 9已知 arcsinx+arctan1/7=π/4,则x等于() A.6/7 B.3/5 C.5/6 D.3/7
- 10sat it this that