patreek / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

.getPackageInfo(): cannot find package name: Ġ #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
1. Just did the all the steps of the billing example
2.
3.

EXPECTED OUTPUT:
Everything working

ACTUAL OUTPUT:
Does not connect to the marketbillingservice

OS VERSION:
2.2.1 MIUI

MARKET/MYAPPS VERSION:

DEVICE:
HTC HD2

Log:
D/NetworkLocator( 1252): New location significantly newer than previous. 
Reporting it.
D/BillingService( 1266): CheckBillingSupported
I/BillingService( 1266): binding to Market billing service
I/global  ( 1252): Default buffer size used in BufferedInputStream constructor. 
It would be better to be explicit if an 8k buffer is required.
I/ActivityThread( 1274): Publishing provider 
com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider
D/vending ( 1274): [1] VendingApplication.onCreate(): Resetting ServiceLocator 
from app
I/ActivityManager(  221): Displayed activity de.test.dungeons/.Dungeons: 363 ms 
(total 363 ms)
D/BillingService( 1266): Billing service connected
D/BillingService( 1266): CheckBillingSupported
W/vending ( 1274): [8] 1.getPackageInfo(): cannot find package name: Ü
E/Bundle  ( 1266): readBundle: bad magic number
E/Bundle  ( 1266): readBundle: trace = java.lang.RuntimeException
E/Bundle  ( 1266): at android.os.Bundle.readFromParcelInner(Bundle.java:1580)
E/Bundle  ( 1266): at android.os.Bundle.<init>(Bundle.java:82)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1394)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1379)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1517)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1515)
E/Bundle  ( 1266): at 
com.android.vending.billing.IMarketBillingService$Stub$Proxy.sendBillingRequest(
IMarketBillingService.java:102)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$CheckBillingSupported.run(BillingService.java:19
1)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runIfConnected(BillingService.jav
a:120)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.runPendingRequests(BillingService.java:543)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.onServiceConnected(BillingService.java:580)
E/Bundle  ( 1266): at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThr
ead.java:1247)
E/Bundle  ( 1266): at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher$RunConnection.run(Activ
ityThread.java:1264)
E/Bundle  ( 1266): at android.os.Handler.handleCallback(Handler.java:587)
E/Bundle  ( 1266): at android.os.Handler.dispatchMessage(Handler.java:92)
E/Bundle  ( 1266): at android.os.Looper.loop(Looper.java:123)
E/Bundle  ( 1266): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/Bundle  ( 1266): at java.lang.reflect.Method.invokeNative(Native Method)
E/Bundle  ( 1266): at java.lang.reflect.Method.invoke(Method.java:521)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
E/Bundle  ( 1266): at dalvik.system.NativeStart.main(Native Method)
I/BillingService( 1266): CheckBillingSupported response code: RESULT_OK
I/Dungeons( 1266): supported: true
D/BillingService( 1266): RestoreTransactions
W/vending ( 1274): [7] 1.getPackageInfo(): cannot find package name: ø
E/Bundle  ( 1266): readBundle: bad magic number
E/Bundle  ( 1266): readBundle: trace = java.lang.RuntimeException
E/Bundle  ( 1266): at android.os.Bundle.readFromParcelInner(Bundle.java:1580)
E/Bundle  ( 1266): at android.os.Bundle.<init>(Bundle.java:82)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1394)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1379)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1517)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1515)
E/Bundle  ( 1266): at 
com.android.vending.billing.IMarketBillingService$Stub$Proxy.sendBillingRequest(
IMarketBillingService.java:102)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$RestoreTransactions.run(BillingService.java:324)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runIfConnected(BillingService.jav
a:120)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runRequest(BillingService.java:97
)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.restoreTransactions(BillingService.java:448)
E/Bundle  ( 1266): at 
de.test.dungeons.Dungeons.restoreDatabase(Dungeons.java:405)
E/Bundle  ( 1266): at de.test.dungeons.Dungeons.access$0(Dungeons.java:401)
E/Bundle  ( 1266): at 
de.test.dungeons.Dungeons$DungeonsPurchaseObserver.onBillingSupported(Dungeons.j
ava:124)
E/Bundle  ( 1266): at 
de.test.dungeons.ResponseHandler.checkBillingSupportedResponse(ResponseHandler.j
ava:60)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$CheckBillingSupported.run(BillingService.java:19
8)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runIfConnected(BillingService.jav
a:120)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.runPendingRequests(BillingService.java:543)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.onServiceConnected(BillingService.java:580)
E/Bundle  ( 1266): at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThr
ead.java:1247)
E/Bundle  ( 1266): at 
android.app.ActivityThread$PackageInfo$ServiceDispatcher$RunConnection.run(Activ
ityThread.java:1264)
E/Bundle  ( 1266): at android.os.Handler.handleCallback(Handler.java:587)
E/Bundle  ( 1266): at android.os.Handler.dispatchMessage(Handler.java:92)
E/Bundle  ( 1266): at android.os.Looper.loop(Looper.java:123)
E/Bundle  ( 1266): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/Bundle  ( 1266): at java.lang.reflect.Method.invokeNative(Native Method)
E/Bundle  ( 1266): at java.lang.reflect.Method.invoke(Method.java:521)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
E/Bundle  ( 1266): at dalvik.system.NativeStart.main(Native Method)
E/BillingService( 1266): restoreTransactions received RESULT_OK
D/BillingService( 1266): request id: -1
D/dalvikvm(  221): GC_EXPLICIT freed 30902 objects / 1796432 bytes in 95ms
D/BillingService( 1266): request id: -1
D/dalvikvm( 1274): GC_FOR_MALLOC freed 2410 objects / 156536 bytes in 41ms
D/gmmNlpServiceThread( 1252): reporting 
Location[mProvider=network,mTime=1307624131677,mLatitude=31.3156665,mLongitude=1
21.5064518,mHasAltitude=false,mAltitude=0.0,mHasSpeed=false,mSpeed=0.0,mHasBeari
ng=false,mBearing=0.0,mHasAccuracy=true,mAccuracy=686.0,mExtras=Bundle[{networkL
ocationSource=cached, networkLocationType=cell}]]
I/System.out( 1252): [INFO:2092]: g: Running flush
I/System.out( 1252): [INFO:2127]: g: Sending payload [bytes=402]
D/dalvikvm( 1266): GC_FOR_MALLOC freed 4901 objects / 333760 bytes in 36ms
D/Dungeons( 1266): buying: Two-handed sword sku: sword_001
D/BillingService( 1266): RequestPurchase
W/vending ( 1274): [9] 1.getPackageInfo(): cannot find package name: Ą
E/Bundle  ( 1266): readBundle: bad magic number
E/Bundle  ( 1266): readBundle: trace = java.lang.RuntimeException
E/Bundle  ( 1266): at android.os.Bundle.readFromParcelInner(Bundle.java:1580)
E/Bundle  ( 1266): at android.os.Bundle.<init>(Bundle.java:82)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1394)
E/Bundle  ( 1266): at android.os.Parcel.readBundle(Parcel.java:1379)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1517)
E/Bundle  ( 1266): at android.os.Bundle$1.createFromParcel(Bundle.java:1515)
E/Bundle  ( 1266): at 
com.android.vending.billing.IMarketBillingService$Stub$Proxy.sendBillingRequest(
IMarketBillingService.java:102)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$RequestPurchase.run(BillingService.java:231)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runIfConnected(BillingService.jav
a:120)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService$BillingRequest.runRequest(BillingService.java:97
)
E/Bundle  ( 1266): at 
de.test.dungeons.BillingService.requestPurchase(BillingService.java:438)
E/Bundle  ( 1266): at de.test.dungeons.Dungeons.onClick(Dungeons.java:464)
E/Bundle  ( 1266): at android.view.View.performClick(View.java:2447)
E/Bundle  ( 1266): at android.view.View$PerformClick.run(View.java:9025)
E/Bundle  ( 1266): at android.os.Handler.handleCallback(Handler.java:587)
E/Bundle  ( 1266): at android.os.Handler.dispatchMessage(Handler.java:92)
E/Bundle  ( 1266): at android.os.Looper.loop(Looper.java:123)
E/Bundle  ( 1266): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/Bundle  ( 1266): at java.lang.reflect.Method.invokeNative(Native Method)
E/Bundle  ( 1266): at java.lang.reflect.Method.invoke(Method.java:521)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
E/Bundle  ( 1266): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
E/Bundle  ( 1266): at dalvik.system.NativeStart.main(Native Method)
E/BillingService( 1266): Error with requestPurchase
D/BillingService( 1266): request id: -1
D/dalvikvm(  328): GC_EXTERNAL_ALLOC freed 227 objects / 12896 bytes in 35ms
D/dalvikvm(  328): GC_EXTERNAL_ALLOC freed 32 objects / 1312 bytes in 74ms
D/dalvikvm(  328): GC_EXTERNAL_ALLOC freed 10 objects / 312 bytes in 45ms
D/dalvikvm(  328): GC_EXTERNAL_ALLOC freed 34 objects / 1216 bytes in 48ms
I/System.out( 1252): [INFO:7127]: g: Running delayed flush
I/System.out( 1252): [INFO:7137]: g: Running flush
D/dalvikvm(  328): GC_EXPLICIT freed 176 objects / 9544 bytes in 37ms
D/alogcat ( 1231): stopping ...
D/alogcat ( 1231): canceling periodic saves
V/alogcat ( 1231): started
V/alogcat ( 1231): resumed
D/alogcat ( 1231): starting ...
D/dalvikvm( 1252): GC_FOR_MALLOC freed 20502 objects / 774288 bytes in 101ms
D/AndroidRuntime( 1295): Shutting down VM
W/dalvikvm( 1295): threadid=1: thread exiting with uncaught exception 
(group=0x4001d808)

NOTES:
Did the sample app tutorial step by step. This is the sample project. 
Everything is setup correctly, but I can't get rid of this error.
The onServiceConnected(ComponentName name, IBinder service) procedure is rever 
reached, because there is alwas this message:
.getPackageInfo(): cannot find package name: Ġ
The Ġ is often replaced by other strange letters, but the actual package names 
doesn't contain any of these letters.

Thanks for your help.

Original issue reported on code.google.com by maximili...@gmail.com on 9 Jun 2011 at 1:04

GoogleCodeExporter commented 8 years ago
I was observing the same issue when Android Market app version was older than 
v2.3.4 (which is required for in-app billing). Updating it solves the issue.

Also i've added some checks to my code against such cases.

Original comment by thy.ri...@gmail.com on 17 Jun 2011 at 8:18

GoogleCodeExporter commented 8 years ago
I'm having the same problem. I'm currently using CyanogenMod-7.0.3-N1 and the 
market is updated to its last version, but I'm seeing the package name error 
with the strange letters...

What can it be? it's working correctly in another unrooted nexus one and nexus s

Original comment by ilnu...@gmail.com on 29 Jun 2011 at 10:02