Studio用xutils 的HttpUtils进行下载视频时安卓6.0的系统下载失败大神们帮忙看看

用xutils的Httputils 下载视频 其他安卓系统都可以实现。6.0的就是下载卡死。

HttpUtils http = new HttpUtils();
url = list.get(position).getFile_name();
resultPath = WinnerApplication.DEFAULT_VOICE_FOLDER + FileUtils.getFileName(url) + ".youzhi";//下载文件的跟路径
if ("缓存完成".equals(bufferVideo.getText()) == false) {
PRogDialog.showProgressDialog(context, "请稍后");
}
//下载视频文件
handler = http.download(url, resultPath, true, false, new RequestCallBack() {

            @Override
            public void onStart() {
                super.onStart();
                Log.e(TAG, "刚开始加载时的回调-----onStart");
                bufferVideo.setText(context.getResources().getString(R.string.video_load));
            }

            @Override
            public void onLoading(long total, long current, boolean isUploading) {
                super.onLoading(total, current, isUploading);
                Log.e(TAG, "正在加载中的回调----onLoading");
                bufferVideo.setText(context.getResources().getString(R.string.video_download));

// bufferVideo.setText((int) (current * 100 / total) + "%");//显示下载的百分比
PRogDialog.showMessage("缓冲中 " + (int) (current * 100 / total) + "%");

            }

            @Override
            public void onSuccess(ResponseInfo<File> arg0) {

// Intent it = new Intent(context,VideoInfoActivity.class);//下载成功跳转到观看视频界面
// it.putExtra("data", arg0.result.getAbsolutePath());
// startActivity(it);
// finish();item_video_button_shape
Log.e(TAG, "加载成功后的回调----onSuccess");
bufferVideo.setText("缓存完成");
bufferVideo.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_playvideo_button_shape));
retuteURL_string.set(position, arg0.result.getAbsolutePath());
//retuteURL = arg0.result.getAbsolutePath();
playTextView.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_video_button_shape));
deleteVideo.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_video_button_shape));
PRogDialog.ProgressDialogDismiss();
}

            @Override
            public void onFailure(HttpException arg0, String arg1) {
                Log.e(TAG, "onFailure");
                Log.i("fail-------------------", arg1);
                if (FileUtils.isFileExist(resultPath)) {
                    //如果文件已存在,就直接观看

// Intent it = new Intent(context,VideoInfoActivity.class);
// it.putExtra("data", resultPath);
// startActivity(it);
// finish();
Log.e(TAG, "如果文件已经存在直接观看---FileUtils.isFileExist(resultPath)");
retuteURL_string.set(position, resultPath);
// retuteURL_string.get(position);
// retuteURL = resultPath;
bufferVideo.setText("缓存完成");
playTextView.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.item_video_button_shape));
} else {
Log.e(TAG, "else----下载失败...");
bufferVideo.setText("下载失败...");
//video_wait.setVisibility(View.GONE);
}
}

            @Override
            public void onCancelled() {
                super.onCancelled();

            }
        });

代码如上
图片说明
报错 直接onStart 然后等待1-2秒然后直接走的onFailure。
后来又单独写了个下载视频的小Demo 代码照这个扒的,居然可以下载。说明系统和代码都没有问题啊。 但是为什么6.0的 在项目那个就下载不来呢。。。。。。。大神恩帮帮忙

1个回答

有人遇到过类似情况么

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
xUtils下载一直失败
[img=https://img-bbs.csdn.net/upload/201511/25/1448416835_395527.png][/img]如图 求大神帮忙 急
XUtils开源项目---HttpUtils网络处理
最近搜了XUtils进行学习,该开源库是目前git上比较活跃 功能比较完善的一个框架,是基于afinal开发的,比afinal稳定性提高了不少. 上篇博客记录的是  XUtils开源项目---BitmapUtils图片处理 这篇博客记录的是网络请求操作,源码下载地址  XUtils开源项目---HttpUtils网络处理 HttpUtils模块:
语法错误,大神们帮忙看看
rnrn[code=java]rnrnimport javax.swing.JFrame;rnimport javax.swing.JPanel; rnimport javax.swing.JTextField;rnimport javax.swing.JLabel;rnimport javax.swing.JButton;rnimport java.awt.BorderLayout; rnimport javax.swing.Spring; rnimport javax.swing.SpringLayout; rnimport java.awt.Container;rnrnpublic class mytest02rnrnJFrame jf = new JFrame("登录");rnContainer contentPane = jf.getContentPane();rnSpringLayout layout = new SpringLayout();rncontentPane.setLayout(layout);//这步有错,怎么改?rnprivate JLabel jl1 = new JLabel("用户名");rnprivate JTextField jtf1 = new JTextField(20);rnprivate JLabel jl2 = new JLabel(" 密码 ");rnprivate JTextField jtf2 = new JTextField(20);rnprivate JButton jb = new JButton("登录");rnpublic void init() throws Exceptionrn rn jf.setSize(400,300);rn jb.setBounds(20,10,200,580);rn contentPane.add(jl1);rn contentPane.add(jtf1);rn contentPane.add(jl2);rn contentPane.add(jtf2);rn // contentPane.add(jb);rn layout.putConstraint(SpringLayout.NORTH, jl1, 20, rn SpringLayout.NORTH, contentPane); rn layout.putConstraint(SpringLayout.WEST, jl1, 10, rn SpringLayout.WEST, contentPane); rn layout.putConstraint(SpringLayout.NORTH, jtf1, 20, rn SpringLayout.NORTH, contentPane); rn layout.putConstraint(SpringLayout.WEST, jtf1, 5, rn SpringLayout.EAST, jl1); rn rn layout.putConstraint(SpringLayout.NORTH, jl2, 60, rn SpringLayout.NORTH, contentPane); rn layout.putConstraint(SpringLayout.WEST, jl2, 10, rn SpringLayout.WEST, contentPane); rn layout.putConstraint(SpringLayout.NORTH, jtf2, 60, rn SpringLayout.NORTH, contentPane); rn layout.putConstraint(SpringLayout.WEST, jtf2, 5, rn SpringLayout.EAST, jl2); rnrn jf.setVisible(true);rnrnpublic static void main(String[] arg0)throws Exceptionrnrn mytest02 lft = new mytest02();rnlft.init();rnrnrn[/code]
大神们帮忙看看啊
你们看看哪里出了问题,帮帮忙。[code=java]rnimport uchicago.src.sim.engine.Schedule;rnimport uchicago.src.sim.engine.SimModelImpl;rnimport uchicago.src.sim.engine.SimInit;rnpublic abstract class CarrayDropModel extends SimModelImpl rn private static final int NUMAGENTS=100;rn private static final int WORLDXSIZE=40;rn private static final int WORLDYTSIZE=40;rn rn rn rn private Schedule schedule;rn private int numAgents=NUMAGENTS;rn private int worldXSize=WORLDXSIZE;rn private int worldYSize=WORLDYTSIZE;rn rn rn public String getName()rn rn return "Carray Drop Model";rn rn public void setuo()rn rn rn rn public void begin()rn rn buildModel();rn buildSchedule();rn buildDisplay();rn rn public void buildModel()rn rn rn rn public void buildSchedule()rn rn rn rn public void buildDisplay()rn rn rn rn public Schedule getSchedule()rn rn return schedule;rn rn public String[] getInitParam()rn rn String[] initParam="NumAgents";rn return initParam;rn rn public int getNumAgents()rn rn return numAgents;rn rn public void setNumAgents(int na)rn rn numAgents=na;rn rn public int getWorldXSize()rn rn return worldXSize;rn rn public void setWorldXSize(int wxs)rn rn worldXSize=wxs;rn rn public int getWorldYSize()rn rn return worldYSize;rn rn public void setWorldYSize(int wys)rn rn worldXSize=wys;rn rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn SimInit init=new SimInit();rn CarrayDropModel model=new [color=#FF0000]CarrayDropMode[/color]l();rn init.loadModel(model," ",false);rnrn rnrnrnrn[/code]
xUtils之HttpUtils的get和Post请求
xUtils之HttpUtils的get和Post请求 xUtils_2.6.4.jar
求大神们帮忙看看,安卓中的RadioButton.setChecked(boolean);
nn```n public class MainActivity extends FragmentActivity implements OnCheckedChangeListenernn @ViewInject(R.id.main_bottom_tabs)n private RadioGroup group;n @ViewInject(R.id.main_home)n private RadioButton main_home;n private FragmentManager fragmentManager;nnn @Overriden protected void onCreate(Bundle savedInstanceState) n super.onCreate(savedInstanceState);n setContentView(R.layout.activity_main);nn ViewUtils.inject(this);n fragmentManager = getSupportFragmentManager();n main_home.setChecked(true);nn group.setOnCheckedChangeListener(this);n changeFragment(new FragmentHome(), false);nnn @Overriden public void onCheckedChanged(RadioGroup group, int checkedId) n switch (checkedId)n case R.id.main_home:n changeFragment(new FragmentHome(),true);n break;n case R.id.main_one:n changeFragment(new FragmentOne(),true);n break;n case R.id.main_two:n changeFragment(new FragmentTwo(),true);n break;nnn default:n break;n n nn public void changeFragment(Fragment fragment, boolean isFirst)n FragmentTransaction transaction = fragmentManager.beginTransaction();n transaction.replace(R.id.main_content,fragment);n transaction.commit();n nnnnnn```n java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.fatesses.homepage/com.example.fatesses.homepage.MainActivity: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RadioButton.setChecked(boolean)' on a null object referencen at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)n at android.app.ActivityThread.-wrap11(Unknown Source:0)n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)n at android.os.Handler.dispatchMessage(Handler.java:105)n at android.os.Looper.loop(Looper.java:164)n at android.app.ActivityThread.main(ActivityThread.java:6541)n at java.lang.reflect.Method.invoke(Native Method)n at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)n Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RadioButton.setChecked(boolean)' on a null object referencen at com.example.fatesses.homepage.MainActivity.onCreate(MainActivity.java:58)n at android.app.Activity.performCreate(Activity.java:6975)n at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892) n at android.app.ActivityThread.-wrap11(Unknown Source:0) n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593) n at android.os.Handler.dispatchMessage(Handler.java:105) n at android.os.Looper.loop(Looper.java:164) n at android.app.ActivityThread.main(ActivityThread.java:6541) n at java.lang.reflect.Method.invoke(Native Method) n at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) nnn大佬能看看这是什么问题吗,而且我明明用的是setChecked(true)。。。。n
安卓系统下载
用于电脑的安卓系统 主要是针对32位电脑用于电脑得好软件
android studio 问题,求大神们帮忙
[img=https://img-bbs.csdn.net/upload/201510/25/1445752766_722313.png][/img]rnrn怎么解决大神们,我刚导入就报这个问题
xUtils里使用HttpUtils时出现的无法访问HttpRequestBase的错误
1.xUtils里使用HttpUtils 2.出现的无法访问HttpRequestBase的错误 3. 在相应的module下的build.gradle中加入 android { useLibrary 'org.apache.http.legacy' }
大神们求救!!!在用xUtils的时候出错!!!
HttpUtils http = new HttpUtils();rn String url = "http://192.168.1.104:8080/antivirus.json";rn http.send(HttpMethod.GET, url, new RequestCallBack() rn rn @Overridern public void onSuccess(ResponseInfo arg0) rn System.out.println("更新了病毒库");rn String result = arg0.result;rn rn rn @Overridern public void onFailure(HttpException arg0, String arg1) rn rn rn );rnrnarg0.result;报错,The type org.apache.http.Header cannot be resolved. It is indirectly referenced from required .class files,请问怎么解决!!
Xutils中的HttpUtils中的send方法???
执行顺序为什么是0,1,3,2,2,5??n![图片说明](https://img-ask.csdn.net/upload/201510/06/1444119557_563209.png)nn![图片说明](https://img-ask.csdn.net/upload/201510/06/1444119585_350159.png)
xUtils框架中的HttpUtils模块实现原理
HttpUtils 中有几个大类,下面一一介绍他们的功能:1,HTTPRequest。 网络请求的包装类。 包括 url, 访问请求方法, 参数值等。2,RequestCallBack。完成数据请求回调接口。3,HttpHandler。获取网络数据逻辑的实现。这里可以理解为系统内部 AsyncTask。处理的流程图:4,HttpCache。 网络数据的缓存,内部包含 LruMemoryCache。在
Android开源项目xUtils HttpUtils模块分析
使用HttpUtils 只需要new 出一个实例便可。 public class HttpFragment extends Fragment {     // 同步请求 必须在异步块儿中执行     private String testGetSync() {         RequestParams params = new RequestParams();       
第三方xUtils中HttpUtils请求网络数据与Pull解析
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List;import org.ap
连接通不过,请大神们帮忙看看
CPP文件:rn/*----------------------------------------------------rn SYSMETS2.C -- System Metrics Display Program No. 2rn (c) Charles Petzold, 1998rn ----------------------------------------------------*/rnrn#define WINVER 0x0500rn#include rn#include "sysmets.h"rnrnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnrnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,rn PSTR szCmdLine, int iCmdShow) rnrn static TCHAR szAppName[] = TEXT ("SysMets2") ;rn HWND hwnd ;rn MSG msg ;rn WNDCLASS wndclass ;rnrn wndclass.style = CS_HREDRAW | CS_VREDRAW ;rn wndclass.lpfnWndProc = WndProc ;rn wndclass.cbClsExtra = 0 ;rn wndclass.cbWndExtra = 0 ;rn wndclass.hInstance = hInstance ;rn wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;rn wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;rn wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH) ;rn wndclass.lpszMenuName = NULL ;rn wndclass.lpszClassName = szAppName ;rnrn if (!RegisterClass (&wndclass))rn rn MessageBox (NULL, TEXT ("This program requires Windows NT!"), rn szAppName, MB_ICONERROR) ;//属主窗口句柄,显示的文字,标题,窗口风格rn return 0 ;rn rn //WS_VSCROLL创建窗口带有垂直滚动条rn hwnd = CreateWindow (szAppName, TEXT ("Get System Metrics No. 2"),rn WS_OVERLAPPEDWINDOW | WS_VSCROLL,rn CW_USEDEFAULT, CW_USEDEFAULT,rn CW_USEDEFAULT, CW_USEDEFAULT,rn NULL, NULL, hInstance, NULL) ;rnrn ShowWindow (hwnd, iCmdShow) ;rn UpdateWindow (hwnd) ;rnrn while (GetMessage (&msg, NULL, 0, 0))rn rn TranslateMessage (&msg) ;rn DispatchMessage (&msg) ;rn rn return msg.wParam ;rnrnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn static int cxChar, cxCaps, cyChar, cyClient, iVscrollPos ;rn HDC hdc ;rn int i, y ;rn PAINTSTRUCT ps ;rn TCHAR szBuffer[10] ;rn TEXTMETRIC tm ;rnrn switch (message)rn rn case WM_CREATE:rn hdc = GetDC (hwnd) ;rnrn GetTextMetrics (hdc, &tm) ;rn cxChar = tm.tmAveCharWidth ;rn cxCaps = (tm.tmPitchAndFamily & 1 ? 3 : 2) * cxChar / 2 ;rn cyChar = tm.tmHeight + tm.tmExternalLeading ;rnrn ReleaseDC (hwnd, hdc) ;rnrn SetScrollRange (hwnd, SB_VERT, 0, NUMLINES - 1, FALSE) ;//最后一个参数表示,滚动条是否重画以反映变化rn SetScrollPos (hwnd, SB_VERT, iVscrollPos, TRUE) ;rn return 0 ;rnrn case WM_SIZE:rn cyClient = HIWORD (lParam) ;//Iparam低位表示宽度,高位表示高度,消息结构体中的一个变量rn return 0 ;rnrn case WM_VSCROLL: rn switch (LOWORD (wParam))//表示鼠标对滚动条的操作rn rn case SB_LINEUP://滚动条上移一行rn iVscrollPos -= 1 ;rn break ;rn rn case SB_LINEDOWN:rn iVscrollPos += 1 ;rn break ;rn rn case SB_PAGEUP://滚动条上移一页rn iVscrollPos -= cyClient / cyChar ;rn break ;rn rn case SB_PAGEDOWN:rn iVscrollPos += cyClient / cyChar ;//用户区高度/单行高度,得到一页移动总行数rn break ;rn rn case SB_THUMBPOSITION:rn iVscrollPos = HIWORD (wParam) ;//鼠标释放时滚动条位置rn break ;rn rn default :rn break ;rn rnrn iVscrollPos = max (0, min (iVscrollPos, NUMLINES - 1)) ;rnrn if (iVscrollPos != GetScrollPos (hwnd, SB_VERT))//获得THUMB位置(未改变前)rn rn SetScrollPos (hwnd, SB_VERT, iVscrollPos, TRUE) ;rnInvalidateRect (hwnd, NULL, TRUE) ;//函数将产生WM_PAINT消息,NULL表示整个客户区被更新rn//for(a = 0, b = 0; a < 1000000000; a++, b++) //slowrn rn return 0 ;rnrn case WM_PAINT:rn hdc = BeginPaint (hwnd, &ps) ;rn //重画客户区 rn for (i = 0 ; i < NUMLINES ; i++)rn rn y = cyChar * (i - iVscrollPos) ;//将滚动框所处位置,作为客户区重绘内容的第一行rn rn TextOut (hdc, 0, y,rn sysmetrics[i].szLabel,rn lstrlen (sysmetrics[i].szLabel)) ;rn rn TextOut (hdc, 22 * cxCaps, y,rn sysmetrics[i].szDesc,rn lstrlen (sysmetrics[i].szDesc)) ;rn rn SetTextAlign (hdc, TA_RIGHT | TA_TOP) ;rn rn TextOut (hdc, 22 * cxCaps + 40 * cxChar, y, szBuffer,rn wsprintf (szBuffer, TEXT ("%5d"),rn GetSystemMetrics (sysmetrics[i].iIndex))) ;//缓冲区,格式控制,输出内容,可以将数值转化为字符串,返回字符串长度,不包括'\'rn rn SetTextAlign (hdc, TA_LEFT | TA_TOP) ;rn rn EndPaint (hwnd, &ps) ;rn return 0 ;rnrn case WM_DESTROY:rn PostQuitMessage (0) ;rn return 0 ;rn rn return DefWindowProc (hwnd, message, wParam, lParam) ;rnrnrnrnrn编译能通过,但是连接时候总是报错:rnLIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/SYSMET2.exe : fatal error LNK1120: 1 unresolved externalsrn执行 link.exe 时出错.rnrn
大神们帮忙看看,这是啥问题
![图片说明](https://img-ask.csdn.net/upload/201604/02/1459584996_630367.png)
请教大神们,帮忙看看这个问题。
[img=https://img-bbs.csdn.net/upload/201804/22/1524411993_918575.png][/img]
算法导论,练习2-2,大神们帮忙看看
选择排序rnfor(j=1;jA[i])rn x=i;rn key=A[i];rn rn rn A[x]=A[j];rn A[j]=key;rnrnrn怎么进行循环不变式的分析??rn用θ进行分析最佳和最坏的运行时间?rn=========================rn看了好几天了,还是不懂!rn希望得到大家的帮助
求大神们帮忙看看错误在哪
use warnings;use strict;open(INFILE, &quot;/Users/lizeshuo/Desktop/test2.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;open(OUTFILE, &quot;&amp;gt;test3.txt&quot;) ||   die &quot;Cannot open the newfile: $!\n&quot;;my @a;while (...
求大神们帮忙看看这是怎么了
using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Web;rnusing ISS.Project.BusinessRules.MobileManage;rnusing ISS.Project.BusinessRules.jQueryAjaxHelper;rnrnnamespace WebSite.Interfacernrn /// rn /// Handler_HotelNumZJ 的摘要说明rn /// rn public class Handler_HotelNumZJ : IHttpHandlerrn rnrn rn public void HotelNumZJRequest(HttpContext context, string year)rn rn string str = context.Request.QueryString["callback"];rnrn AjaxResultMessage resultMsg = BR_WEB_MOBILE_ImgPage.GetHotelNumZJInfo(year);rnrn if (string.IsNullOrEmpty(str) == false)rn rn resultMsg.Data = str + "(" + resultMsg.Data + ")";rn rn context.Response.Clear();rn context.Response.Write(resultMsg.Data);rn context.Response.End();rn rnrnrn public bool IsReusablern rn getrn rn return false;rn rn rn rnrnrnrnrnrnrnrn错误问题:rnrn错误 2 “WebSite.Handler”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler.ashx.cs 13 18 WebSitern错误 8 “WebSite.Interface.Handler_HotelNumZJ”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler_HotelNumZJ.ashx.cs 13 18 WebSiternrnrnrnrnrnrnrnrnrnrnrnrn
js报错,请教大神们帮忙看看!!!
$(function()n "use strict";n var name=$("#name").val();n var password=$("#password").val();nn $(document).on('click','#login',function ()n alert(name,password);n );nn);n劳驾帮忙看看,哪里有问题呢?已确认jquery库已导入n报错信息:Uncaught TypeError: $(...).on is not a function
cxf报错信息,请大神们帮忙看看
org.apache.cxf.phase.PhaseInterceptorChain doInterceptrn信息: Application has thrown exception, unwinding nowrnorg.apache.cxf.interceptor.Fault: unable to create new native threadrn at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:148)rn at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:114)rn at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)rn at java.util.concurrent.FutureTask.run(FutureTask.java:123)rn at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:95)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)rn at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)rn at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)rn at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:337)rn at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:182)rn at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:163)rn at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:141)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.lang.OutOfMemoryError: unable to create new native threadrn at java.lang.Thread.start0(Native Method)rn at java.lang.Thread.start(Thread.java:574)rn at IceInternal.Timer.(Timer.java:134)rn at IceInternal.Instance.timer(Instance.java:214)rn at IceInternal.ConnectionMonitor.(ConnectionMonitor.java:48)rn at IceInternal.Instance.finishSetup(Instance.java:817)rn at Ice.CommunicatorI.finishSetup(CommunicatorI.java:225)rn at Ice.Util.initialize(Util.java:97)rn at com.jasson.mas.api.sms.SmsApiClientImpl.start(SmsApiClientImpl.java:218)rn at com.webapp.ws.impl.MasServiceImpl.sendMasMsm(MasServiceImpl.java:56)rn at sun.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn at $Proxy89.sendMasMsm(Unknown Source)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)rn ... 33 morern2013-12-10 22:11:06 org.apache.cxf.phase.PhaseInterceptorChain doInterceptrn信息: Application has thrown exception, unwinding nowrnorg.apache.cxf.interceptor.Fault: unable to create new native threadrn at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:148)rn at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:114)rn at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)rn at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)rn at java.util.concurrent.FutureTask.run(FutureTask.java:123)rn at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)rn at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:95)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)rn at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)rn at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)rn at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:337)rn at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:182)rn at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:163)rn at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:141)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:595)rnCaused by: java.lang.OutOfMemoryError: unable to create new native threadrn at java.lang.Thread.start0(Native Method)rn at java.lang.Thread.start(Thread.java:574)rn at com.jasson.mas.api.sms.SmsApiClientImpl.(SmsApiClientImpl.java:88)rn at com.webapp.ws.impl.MasServiceImpl.sendMasMsm(MasServiceImpl.java:40)rn at sun.reflect.GeneratedMethodAccessor282.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(后面还有信息
Android高级之xUtils框架(二):HttpUtils
HttpUtils步骤很简单,不过需要注意几个细节。 一。步骤: 1.导入xUtils包, 2.得到HttpUtils实例, 3.调用send()或者download()进行网络请求操作, 4.取消请求。 二。注意: 1.当我们得到HttpUtils实例直接调用方法时,可能会出现错误,造成这个问题的原因是,你的API编译器是23的,而在android 6.0(API23)中,取消掉了
android中xutils中的httputils不起作用
这是我的关键代码rnrnHttpUtils httpUtils= new HttpUtils();rnhttpUtils.send(HttpMethod.GET, HttpAddress.url_of_viewPager,rn new RequestCallBack() rnrn @Overridern public void onSuccess(ResponseInfo responseInfo) rnrn Log.w("TAG", "success");rn String json = responseInfo.result;rnrn rnrn @Overridern public void onFailure(HttpException error, String msg) rnrn Log.w("TAG", "获取数据失败");rn rn );rnrn执行完后json是空的,Log.w("TAG", "success");以及Log.w("TAG", "获取数据失败");这两句log都没有打出来,且这个请求的前后的log都打出来了,也就是说不是这段以外的错误,这段是执行了的。但是就是结果是跟没执行一样,onSuccess()方法和onFailure()方法都没有进入。请问这是为什么?rn现在已知不是HttpAddress.url_of_viewPager的错误,因为换成一个已知的正确的网址也是一样的结果,请哪位大神帮帮忙!
大神们,帮我看看
我创建一个视图,在视图里用union怎么报错啊!语句为:rnCREATE VIEW mainview(MID) rn ASrn((SELECT ID FROM student)rn UNION (SELECT ID FROM teacher));rn错误信息为:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual thatrncorresponds to your MySQL server version for the right syntax to use near 'UNIONrn (SELECT ID FROM teacher))' at line 4rnrnstudent.ID和teacher.ID 没问题的。这是什么情况啊!我mysql服务器是:mysql-connector-net-6.4.4.msi!rn请大侠们帮忙啊!
大神们帮我看看
这样的一个语句,我要给textbox文本框写样式怎么写rn[img=https://img-bbs.csdn.net/upload/201705/22/1495423993_717342.png][/img]
大神们进来看看
求帮助啊rnrnandroid平板使用EVDO模块,可以打电话 发短信 上网, 就是不能收发彩信rn彩信的APN配置都正确, 主要的问题就是发送彩信是,APN切换不成功rnrn如果开机将pppd进程杀掉,然后在发送彩信,这个时候是可以成功rnrn大神们,多多指教呀
大神们看看
rnrnrnrnrn rn rnrn rnrn rnrn rn /error.jsprn rnrn rn rn rnrn rn rn HelloWorldrn /examplern rn rn rnrn rnrn rnrnrn这两行的错误rn rnrn到底什么原因啊?
大神们帮我看看!!!
[b][i][size=16px][color=#0000FF]现在遇到一个问题!就是怎样让客户端显示在集合中查找出来的商品啊!rn客户端的代码应该怎样写?rn下面是功能模块:[/color][/size][/i][/b]rn客户端:rn[img=https://img-bbs.csdn.net/upload/201310/30/1383116755_143889.png][/img]rnrnrn服务器:rn[img=https://img-bbs.csdn.net/upload/201310/30/1383116819_201010.png][/img]rnrnrn运行效果:rn[img=https://img-bbs.csdn.net/upload/201310/30/1383116842_829927.png][/img]
Android studio利用xutils进行文件下载
对于Android开发过程中便捷的xutils框架,为我们的Android开发提供了很多较为便利的操作。简化代码,功能强大,本文主要对xutlis中的HttpUtils进行简单的使用介绍: 本人使用的工具为Android studio3.1,xutils使用的比较老为xutils2.6。使用方法如下: 1、将目录转换为project模式,在app-》libs中将...
大神们帮看看的
、、、、1rn rnrn错误信息:rnSyntax error, insert ". class" to complete ArgumentListrnrnrn、、、、、、2rn rn错误信息’rnMultiple annotations found at this line:rn - Syntax error on token ",", invalid (rn - Syntax error on tokens, ArgumentList rn expected insteadrn - Syntax error, insert ")" to complete rn Expressionrn - Syntax error on tokens, Expression rn expected instead
linux下用使用CURL接收数据不全,大神们帮忙看看。
[code=C/C++]rnrnchar res_buf[409600 + 1];rnsize_t copy_data(void *ptr, size_t size, size_t nmemb, void *stream)rn rn memcpy(res_buf + strlen(res_buf), ptr, size * nmemb); rn return strlen(res_buf);rnrnrn curl = curl_easy_init();rn if (curl) rn curl_easy_setopt(curl,CURLOPT_URL,des_addr);rn curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,copy_data);rn curl_easy_setopt(curl,CURLOPT_WRITEDATA,res_buf);rn curl_easy_setopt(curl,CURLOPT_POST, 1);rn curl_easy_setopt(curl,CURLOPT_VERBOSE,1);rn curl_easy_setopt(curl,CURLOPT_HEADER,0);rn headers =curl_slist_append(headers,"Content-Type: text/html");rn curl_easy_setopt(curl,CURLOPT_HTTPHEADER,headers);rn rn curl_easy_setopt(curl,CURLOPT_POSTFIELDS,res_data);rnrnrn[/code]rn我使用tcpdump抓包工具可以抓到对方发给我的完整的包,但是我就后来不会接收完整。我怀疑是那些设置的问题,每次copy_data这个函数都调用了两次。请大家帮我看看,帮我出出主意吧。万分感谢
安卓!!!!求大神帮忙
怎么会这样呢![图片](https://img-ask.csdn.net/upload/201611/16/1479228607_521325.jpg)![图片](https://img-ask.csdn.net/upload/201611/16/1479228447_509494.jpg)
求安卓大神帮忙
求安卓大神帮帮忙,能帮我解决问题的,留下你的联系方式,有酬劳,或者站内联系我,可能项目比较大,单独发送需求文档
xUtils下载
1、创建Application 2、 红框内名必须写 3、 红框内泛型必须是file
大神们求帮忙???
根据查询条件查询,并将查询结果在DBGridEh中显示,当显示结果为空时,DBGridEh不可操作,否则DBGridEh可操作,当显示结果不为空时,Excel表按钮可操作
Blazeds 大神们帮忙
Blazeds配置服务全都完成,没有任何异常提示,但是通过数据绑定DateGrid表格获取mysql数据时,总是不能显示mysql中的数据,rnDateGrid表格只显示绑定数据的列名.rn本人认为:1.是不是从mysql提取出的数据要通过数据格式转换才能显示(utf-->GBK).rn
大神们,帮忙解决下
输出一个字符串中子字符串(相同字符组成)出现的做多的次数。其中子字符串的字符相同的 。 rn比如 输入aaabbbbaaa,输出2;输入abab,输出0,给出代码(c语言)
请大神们帮忙
在WP中怎么自定义一个控件,使得当我点击不放的时候里面内容出现另一个内容,而当我点击结束弹起时回到原来的内容。
求大神们帮忙
有个控件注册不上,在网上查找了很多办法,也没有成功,希望有大神帮忙解决这个问题。[img=https://img-bbs.csdn.net/upload/201401/19/1390097598_331882.png][/img]
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件