apache httpclient

186 views
Skip to first unread message

GÖKHAN GÜZEL

unread,
May 7, 2015, 8:21:13 PM5/7/15
to javafx...@googlegroups.com
in my application  application has stopped at below code

client = HttpClients.custom()
                .setDefaultCredentialsProvider(credsProvider)
               .build();

Johan Vos

unread,
May 21, 2015, 2:16:01 PM5/21/15
to javafx...@googlegroups.com, gguz...@gmail.com
Probably a not-supported class in the calling trace? Can you add the output of adb logcat?

GÖKHAN GÜZEL

unread,
May 23, 2015, 1:15:42 PM5/23/15
to javafx...@googlegroups.com
Thank you for your reply.I used java.netURLConnection instead of httpclient.This is my logcat for apache HttpClient this is working on Gluon javafx android project with netbeans but not success on device.
D/dalvikvm( 3870): GC_CONCURRENT freed 1027K, 23% free 3910K/5040K, paused 0ms+0
ms, total 0ms
I/GCoreUlr( 3870): WorldUpdater: Ensuring that reporting is stopped because of r
easons: {account#-9#=[InactiveReason{mVersionCode=0, mIdentifier=4, mName='Googl
eLocationDisabled'}, InactiveReason{mVersionCode=0, mIdentifier=6, mName='Report
ingNotSelected'}]}
D/GCoreFlp( 3870): Unknown pending intent to remove.
I/GCoreUlr( 3870): Unbound from all location providers
E/InputDispatcher( 3473): Motion event has invalid pointer count 0; value must b
e between 1 and 16.
E/FXEntity( 5676): call native MultitouchEvent
I/GLASS   ( 5676): Call InternalSurfaceView_onMultiTouchEventNative
I/GLASS   ( 5676): Glass will pass multitouchevent to monocle with count = 1
I/System.out( 5676): traceEvent: Pushing TouchState[1,TouchState.Point[id=0,x=64
0,y=237]] to TouchPipeline[SmallMove]
I/System.out( 5676): traceEvent: Applying SmallMove to TouchState[1,TouchState.P
oint[id=0,x=640,y=237]]
I/System.out( 5676): traceEvent: Set TouchState[1,TouchState.Point[id=0,x=640,y=
237]]
I/System.out( 5676): traceEvent: Set MouseState[x=640,y=237,wheel=0,buttonsPress
ed=IntSet[212]]
I/System.out( 5676): [JVDBG] TouchSupport: begin
I/System.out( 5676): [JVDBG] TouchSupport: next
I/System.out( 5676): [JVDBG] TouchSupport: end
V/FXEntity( 5676): Called notify_hideIME
V/FXEntity( 5676): Done Calling notify_hideIME
E/InputDispatcher( 3473): Motion event has invalid pointer count 0; value must b
e between 1 and 16.
E/FXEntity( 5676): call native MultitouchEvent
I/GLASS   ( 5676): Call InternalSurfaceView_onMultiTouchEventNative
I/GLASS   ( 5676): Glass will pass multitouchevent to monocle with count = 1
I/System.out( 5676): don't add points, primary = -1
I/System.out( 5676): traceEvent: Pushing TouchState[0] to TouchPipeline[SmallMov
e]
I/System.out( 5676): traceEvent: Applying SmallMove to TouchState[0]
I/System.out( 5676): traceEvent: Set TouchState[0]
I/System.out( 5676): traceEvent: Set MouseState[x=640,y=237,wheel=0,buttonsPress
ed=IntSet[]]
I/System.out( 5676): [JVDBG] TouchSupport: begin
I/System.out( 5676): [JVDBG] TouchSupport: next
I/System.out( 5676): [JVDBG] TouchSupport: end
I/System.out( 5676): http://192.168.1.2:8080/TechnoBase/webresources/test
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/Defa
ultConnectionReuseStrategy;.INSTANCE
W/dalvikvm( 5676): VFY: unable to resolve static field 21899 (INSTANCE) in Lorg/
apache/http/impl/DefaultConnectionReuseStrategy;
D/dalvikvm( 5676): VFY: replacing opcode 0x62 at 0x01d0
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/clie
nt/DefaultConnectionKeepAliveStrategy;.INSTANCE
W/dalvikvm( 5676): VFY: unable to resolve static field 21985 (INSTANCE) in Lorg/
apache/http/impl/client/DefaultConnectionKeepAliveStrategy;
D/dalvikvm( 5676): VFY: replacing opcode 0x62 at 0x01e2
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/clie
nt/DefaultUserTokenHandler;.INSTANCE
W/dalvikvm( 5676): VFY: unable to resolve static field 22021 (INSTANCE) in Lorg/
apache/http/impl/client/DefaultUserTokenHandler;
D/dalvikvm( 5676): VFY: replacing opcode 0x62 at 0x0222
I/dalvikvm( 5676): Could not find method org.apache.http.util.VersionInfo.getUse
rAgent, referenced from method org.apache.http.impl.client.HttpClientBuilder.bui
ld
W/dalvikvm( 5676): VFY: unable to resolve static method 64040: Lorg/apache/http/
util/VersionInfo;.getUserAgent (Ljava/lang/String;Ljava/lang/String;Ljava/lang/C
lass;)Ljava/lang/String;
D/dalvikvm( 5676): VFY: replacing opcode 0x77 at 0x0254
I/dalvikvm( 5676): Could not find method org.apache.http.protocol.RequestUserAge
nt.<init>, referenced from method org.apache.http.impl.client.HttpClientBuilder.
build
W/dalvikvm( 5676): VFY: unable to resolve direct method 63963: Lorg/apache/http/
protocol/RequestUserAgent;.<init> (Ljava/lang/String;)V
D/dalvikvm( 5676): VFY: replacing opcode 0x76 at 0x029b
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/NoCo
nnectionReuseStrategy;.INSTANCE
W/dalvikvm( 5676): VFY: unable to resolve static field 21902 (INSTANCE) in Lorg/
apache/http/impl/NoConnectionReuseStrategy;
D/dalvikvm( 5676): VFY: replacing opcode 0x62 at 0x0346
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/Defa
ultConnectionReuseStrategy;.INSTANCE
W/dalvikvm( 5676): VFY: unable to resolve static field 21899 (INSTANCE) in Lorg/
apache/http/impl/DefaultConnectionReuseStrategy;
D/dalvikvm( 5676): VFY: replacing opcode 0x62 at 0x034c
D/dalvikvm( 5676): DexOpt: unable to opt direct call 0xf007 at 0x3ad in Lorg/apa
che/http/impl/client/HttpClientBuilder;.build
D/dalvikvm( 5676): DexOpt: unable to opt direct call 0xf9db at 0x403 in Lorg/apa
che/http/impl/client/HttpClientBuilder;.build
D/dalvikvm( 5676): DexOpt: couldn't find static field Lorg/apache/http/impl/clie
nt/DefaultHttpRequestRetryHandler;.INSTANCE
I/dalvikvm( 5676): DexOpt: unable to optimize static field ref 0x55e2 at 0x5e7 i
n Lorg/apache/http/impl/client/HttpClientBuilder;.build
E/dalvikvm( 5676): Could not find class 'javax.naming.ldap.LdapName', referenced
 from method org.apache.http.conn.ssl.DefaultHostnameVerifier.extractCN
W/dalvikvm( 5676): VFY: unable to resolve new-instance 1999 (Ljavax/naming/ldap/
LdapName;) in Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
D/dalvikvm( 5676): VFY: replacing opcode 0x22 at 0x0007
W/dalvikvm( 5676): VFY: unable to resolve exception class 1995 (Ljavax/naming/In
validNameException;)
W/dalvikvm( 5676): VFY: unable to resolve exception class 1995 (Ljavax/naming/In
validNameException;)
W/dalvikvm( 5676): VFY: unable to find exception handler at addr 0x59
W/dalvikvm( 5676): VFY:  rejected Lorg/apache/http/conn/ssl/DefaultHostnameVerif
ier;.extractCN (Ljava/lang/String;)Ljava/lang/String;
W/dalvikvm( 5676): VFY:  rejecting opcode 0x0d at 0x0059
W/dalvikvm( 5676): VFY:  rejected Lorg/apache/http/conn/ssl/DefaultHostnameVerif
ier;.extractCN (Ljava/lang/String;)Ljava/lang/String;
W/dalvikvm( 5676): Verifier rejected class Lorg/apache/http/conn/ssl/DefaultHost
nameVerifier;
I/Process ( 5676): Sending signal. PID: 5676 SIG: 9
D/BstCommandProcessor-Application( 3691): Application crash has been observed.
W/BstCommandProcessor-Application( 3691): in sendHttpRequest, requestType is of
CRASH_APP type but one of the requiredInfo is NULL, crashedApp = com.bluestacks.
BstCommandProcessor.BstCrashedAppInfo@2afe8fe4
D/BstCommandProcessor-Application( 3691): in sendHttpRequest, request to send to
 (fqdn): http://10.0.2.2:2861/AppCrashedInfo
D/BstCommandProcessor-Application( 3691): data: {"packageName":"org.javafxports.
techno","shortPackageName":"org.javafxports.techno","versionCode":1,"versionName
":"1.0"}
D/AndroidRuntime( 5676): procName from cmdline: org.javafxports.techno
E/AndroidRuntime( 5676): in writeCrashedAppName, pkgName :org.javafxports.techno

D/AndroidRuntime( 5676): file written successfully with content: org.javafxports
.techno StringBuffer : ;org.javafxports.techno
E/AndroidRuntime( 5676): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime( 5676): Process: org.javafxports.techno, PID: 5676
E/AndroidRuntime( 5676): java.lang.RuntimeException: java.lang.reflect.Invocatio
nTargetException
E/AndroidRuntime( 5676):        at javafx.fxml.FXMLLoader$MethodHandler.invoke(F
XMLLoader.java:1770)
E/AndroidRuntime( 5676):        at javafx.fxml.FXMLLoader$ControllerMethodEventH
andler.handle(FXMLLoader.java:1653)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.CompositeEventHandler.di
spatchBubblingEvent(CompositeEventHandler.java:86)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventHandlerManager.disp
atchBubblingEvent(EventHandlerManager.java:238)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventHandlerManager.disp
atchBubblingEvent(EventHandlerManager.java:191)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.CompositeEventDispatcher
.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:58)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:56)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:56)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventUtil.fireEventImpl(
EventUtil.java:74)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventUtil.fireEvent(Even
tUtil.java:49)
E/AndroidRuntime( 5676):        at javafx.event.Event.fireEvent(Event.java:198)
E/AndroidRuntime( 5676):        at javafx.scene.Node.fireEvent(Node.java:8390)
E/AndroidRuntime( 5676):        at javafx.scene.control.Button.fire(Button.java:
185)
E/AndroidRuntime( 5676):        at com.sun.javafx.scene.control.behavior.ButtonB
ehavior.mouseReleased(ButtonBehavior.java:182)
E/AndroidRuntime( 5676):        at com.sun.javafx.scene.control.skin.BehaviorSki
nBase$1.handle(BehaviorSkinBase.java:96)
E/AndroidRuntime( 5676):        at com.sun.javafx.scene.control.skin.BehaviorSki
nBase$1.handle(BehaviorSkinBase.java:89)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.CompositeEventHandler$No
rmalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.CompositeEventHandler.di
spatchBubblingEvent(CompositeEventHandler.java:80)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventHandlerManager.disp
atchBubblingEvent(EventHandlerManager.java:238)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventHandlerManager.disp
atchBubblingEvent(EventHandlerManager.java:191)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.CompositeEventDispatcher
.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:58)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:56)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.BasicEventDispatcher.dis
patchEvent(BasicEventDispatcher.java:56)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventDispatchChainImpl.d
ispatchEvent(EventDispatchChainImpl.java:114)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventUtil.fireEventImpl(
EventUtil.java:74)
E/AndroidRuntime( 5676):        at com.sun.javafx.event.EventUtil.fireEvent(Even
tUtil.java:54)
E/AndroidRuntime( 5676):        at javafx.event.Event.fireEvent(Event.java:198)
E/AndroidRuntime( 5676):        at javafx.scene.Scene$MouseHandler.process(Scene
.java:3728)
E/AndroidRuntime( 5676):        at javafx.scene.Scene$MouseHandler.access$1500(S
cene.java:3456)
E/AndroidRuntime( 5676):        at javafx.scene.Scene.impl_processMouseEvent(Sce
ne.java:1732)
E/AndroidRuntime( 5676):        at javafx.scene.Scene$ScenePeerListener.mouseEve
nt(Scene.java:2465)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.GlassViewEventHandl
er$MouseEventNotification.run(GlassViewEventHandler.java:350)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.GlassViewEventHandl
er$MouseEventNotification.run(GlassViewEventHandler.java:275)
E/AndroidRuntime( 5676):        at java.security.AccessController.doPrivileged(A
ccessController.java:52)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.GlassViewEventHandl
er.lambda$handleMouseEvent$332(GlassViewEventHandler.java:385)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.GlassViewEventHandl
er$$Lambda$2.get(Unknown Source)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.QuantumToolkit.runW
ithoutRenderLock(QuantumToolkit.java:404)
E/AndroidRuntime( 5676):        at com.sun.javafx.tk.quantum.GlassViewEventHandl
er.handleMouseEvent(GlassViewEventHandler.java:384)
E/AndroidRuntime( 5676):        at com.sun.glass.ui.View.handle
I/ActivityManager( 3473): Process org.javafxports.techno (pid 5676) has died.
W/ActivityManager( 3473): Force removing ActivityRecord{2b31b118 u0 org.javafxpo
rts.techno/javafxports.android.FXActivity t9}: app died, no saved state
D/WindowManager( 3473): topDisplayedActivityInfo, appToken: Token{2b22146c Activ
ityRecord{2b31b118 u0 org.javafxports.techno/javafxports.android.FXActivity t9 f
}}
D/ActivityManager( 3473): TopActivityInfo, pkgName: com.bluestacks.gamepophome a
ctivityName: com.bluestacks.gamepophome/tv.gamepop.home.AllAppsFullGrid_  bstSpe
cialAppKeyboardHandlingEnabled = false
I/WindowState( 3473): WIN DEATH: Window{2b10b000 u0 org.javafxports.techno/javaf
xports.android.FXActivity}
W/WindowManager( 3473): Force-removing child win Window{2b25fb68 u0 SurfaceView}
 from container Window{2b10b000 u0 org.javafxports.techno/javafxports.android.FX
Activity}
D/WindowManager( 3473): topDisplayedActivityInfo, appToken: Token{2b22146c Activ
ityRecord{2b31b118 u0 org.javafxports.techno/javafxports.android.FXActivity t9 f
}}
W/WindowManager( 3473): Failed looking up window
W/WindowManager( 3473): java.lang.IllegalArgumentException: Requested window and
roid.os.BinderProxy@2b1ba9e8 does not exist
W/WindowManager( 3473):         at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:8002)
W/WindowManager( 3473):         at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:7993)
W/WindowManager( 3473):         at com.android.server.wm.WindowState$DeathRecipi
ent.binderDied(WindowState.java:1047)
W/WindowManager( 3473):         at android.os.BinderProxy.sendDeathNotice(Binder
.java:493)
W/WindowManager( 3473):         at dalvik.system.NativeStart.run(Native Method)
I/WindowState( 3473): WIN DEATH: null
D/GuidanceScreen( 3640): event === app_launch
D/GuidanceScreen( 3640): hiding guidance
D/GuidanceScreen( 3640): hardKeyboard = 1
D/GuidanceScreen( 3640): controllerType === Keyboard
D/GuidanceScreen( 3640): appName: Gamepop-Anasayfa, currentPkg: com.bluestacks.g
amepophome, event: app_launch, controller: Keyboard
D/ActivityManager( 3473): Showing guidance for pkgName: com.bluestacks.gamepopho
me
D/GuidanceScreen( 3640): appName: Gamepop-Anasayfa
D/bluestacksHome( 3662): product.oem not found
D/Home.AppLaunchReceiver( 3725): *************************Received app launch br
oadcast
D/GuidanceScreen( 3640): no guidance for com.bluestacks.gamepophome.
D/Home.AppLaunchReceiver( 3725): Home App com.bluestacks.gamepophome
D/        ( 3767): appLaunch received in accessibility
D/        ( 3767): Service is enabled
D/InputMethodManagerService( 3473): ime_enabled = false is same as last value, n
o change
W/Binder  ( 3574): Caught a RuntimeException from the binder stub implementation
.
W/Binder  ( 3574): java.lang.NullPointerException
W/Binder  ( 3574):      at android.inputmethodservice.IInputMethodWrapper.setSes
sionEnabled(IInputMethodWrapper.java:280)
W/Binder  ( 3574):      at com.android.internal.view.IInputMethod$Stub.onTransac
t(IInputMethod.java:129)
W/Binder  ( 3574):      at android.os.Binder.execTransact(Binder.java:404)
W/Binder  ( 3574):      at dalvik.system.NativeStart.run(Native Method)
W/InputMethodManagerService( 3473): Got RemoteException sending setActive(false)
 notification to pid 5676 uid 10015
I/ActivityManager( 3473): Setting mBooting value to false, currently mBooted = t
rue
D/[InMobi]-[Analytics]-4.5.3( 3662): IMAppDatabaseManager->insertEvents-ss
D/WindowManager( 3473): topDisplayedActivityInfo, appToken: Token{2b1a1774 Activ
ityRecord{2b114704 u0 com.bluestacks.gamepophome/tv.gamepop.home.AllAppsFullGrid
_ t1}}
D/WindowManager( 3473): topDisplayedActivityInfo, appToken: Token{2b1a1774 Activ
ityRecord{2b114704 u0 com.bluestacks.gamepophome/tv.gamepop.home.AllAppsFullGrid
_ t1}}
I/GCoreNlp( 5487): shouldConfirmNlp, NLP off. Ensuring opt-in disabled
I/GCoreUlr( 3870): Starting service, intent=Intent { act=com.google.android.loca
tion.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android
.location.reporting.service.DispatchingService (has extras) }, extras=Bundle[{re
ceiverAction=android.location.PROVIDERS_CHANGED}]
I/GCoreUlr( 3870): WorldUpdater received intent Intent { act=com.google.android.
location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.and
roid.location.reporting.service.DispatchingService (has extras) } with receiverA
ction android.location.PROVIDERS_CHANGED
D/BluetoothAdapter( 5506): 721354236: getState() :  mService = null. Returning S
TATE_OFF
I/GCoreUlr( 3870): No GCM registration ID
I/GCoreUlr( 3870): WorldUpdater: Ensuring that reporting is stopped because of r
easons: {account#-9#=[InactiveReason{mVersionCode=0, mIdentifier=4, mName='Googl
eLocationDisabled'}, InactiveReason{mVersionCode=0, mIdentifier=6, mName='Report
ingNotSelected'}]}
D/GCoreFlp( 3870): Unknown pending intent to remove.
I/GCoreUlr( 3870): Unbound from all location providers
^C

8 Mayıs 2015 Cuma 03:21:13 UTC+3 tarihinde GÖKHAN GÜZEL yazdı:
Reply all
Reply to author
Forward
0 new messages