Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
java.lang.SecurityException: Connection refused !!!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
chinna  
View profile  
 More options May 18 2012, 2:43 am
From: chinna <tauruz...@gmail.com>
Date: Thu, 17 May 2012 23:43:35 -0700 (PDT)
Local: Fri, May 18 2012 2:43 am
Subject: java.lang.SecurityException: Connection refused !!!
Hi,

Im new to UICC and Secure Elements and I tried to do a simple android
application using this tutorial (http://code.google.com/p/seek-for-
android/wiki/UsingSmartCardAPI) to connect the Secure Elements. When I
run the application it throw an java.lang.SecurityException:
Connection refused !!!. PLease help.
Thanks

LogCat

05-18 06:43:08.229: D/HelloSmartcard(3488): Retrieve available
readers...
05-18 06:43:08.269: D/HelloSmartcard(3488): Create Session from the
first reader...
05-18 06:43:08.269: D/HelloSmartcard(3488): Create logical channel
within the session...
05-18 06:43:08.759: E/HelloSmartcard(3488): Error occured:
05-18 06:43:08.759: E/HelloSmartcard(3488):
java.lang.SecurityException: Connection refused !!!
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
org.simalliance.openmobileapi.SEService.checkForException(SEService.java:
611)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
org.simalliance.openmobileapi.SEService.openLogicalChannel(SEService.java:
479)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
org.simalliance.openmobileapi.Session.openLogicalChannel(Session.java:
143)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
com.gieseckedevrient.android.hellosmartcard.MainActivity
$1.onClick(MainActivity.java:50)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
android.view.View.performClick(View.java:2485)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at android.view.View
$PerformClick.run(View.java:9080)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
android.os.Handler.handleCallback(Handler.java:587)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
android.os.Handler.dispatchMessage(Handler.java:92)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
android.os.Looper.loop(Looper.java:130)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
android.app.ActivityThread.main(ActivityThread.java:3768)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
java.lang.reflect.Method.invoke(Method.java:507)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:878)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
05-18 06:43:08.759: E/HelloSmartcard(3488):     at
dalvik.system.NativeStart.main(Native Method)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
D skynet  
View profile  
 More options May 18 2012, 8:41 am
From: D skynet <dskyl...@gmail.com>
Date: Fri, 18 May 2012 05:41:48 -0700 (PDT)
Local: Fri, May 18 2012 8:41 am
Subject: Re: java.lang.SecurityException: Connection refused !!!

Hi Chinna,

Please let me know which device are you using and also the UICC .

Regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin Ehrlich  
View profile  
 More options May 18 2012, 5:22 pm
From: Robin Ehrlich <robin.ehrl...@gmail.com>
Date: Fri, 18 May 2012 16:22:07 -0500
Local: Fri, May 18 2012 5:22 pm
Subject: RE: [seek-for-android] java.lang.SecurityException: Connection refused !!!
What phone are you running your application on?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chinna  
View profile  
 More options May 23 2012, 5:12 am
From: chinna <tauruz...@gmail.com>
Date: Wed, 23 May 2012 02:12:33 -0700 (PDT)
Local: Wed, May 23 2012 5:12 am
Subject: Re: java.lang.SecurityException: Connection refused !!!
im using samsung phone with UICC sim card

On May 18, 8:41 pm, D skynet <dskyl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chinna  
View profile  
 More options May 23 2012, 5:13 am
From: chinna <tauruz...@gmail.com>
Date: Wed, 23 May 2012 02:13:00 -0700 (PDT)
Subject: Re: java.lang.SecurityException: Connection refused !!!
samsung nexus galaxy

On May 19, 5:22 am, Robin Ehrlich <robin.ehrl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
D skynet  
View profile  
 More options May 30 2012, 12:53 am
From: D skynet <dskyl...@gmail.com>
Date: Tue, 29 May 2012 21:53:17 -0700 (PDT)
Local: Wed, May 30 2012 12:53 am
Subject: Re: java.lang.SecurityException: Connection refused !!!

I guess the Samsung Nexus does not have the RIL libraries which are
required for the NFC communication. So it fdoes not allow to connect to the
Secure Element.
As these libraries are from OEM we cannot download from somewhere and get
it working please try with the Sony Xperia seriess (S, sola) etc. it
definitely works


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Molnár Vince  
View profile  
 More options Jun 14 2012, 8:55 am
From: Molnár Vince <m....@hotmail.com>
Date: Thu, 14 Jun 2012 14:55:56 +0200
Local: Thurs, Jun 14 2012 8:55 am
Subject: RE: [seek-for-android] Re: java.lang.SecurityException: Connection refused !!!

Hi,
I have the exact same problem with my new Galaxy SIII and a G&D smartcard, no matter if I use the sample app or my application (which ran on older devices).I cannot install the MSC_SmartcardService, since the OS says there's a system app already installed with the same signature.When enumerating the readers, only 1 is found, with or without the G&D card inserted. I guess it is the embedded NFC chip, but I need to access the SD card with my custom applet on it.There must be a way to access the card, but I guess the problem is that I cannot override the default smartcard service. Can you help?
Vincent

Date: Tue, 29 May 2012 21:53:17 -0700
From: dskyl...@gmail.com
To: seek-for-android@googlegroups.com
Subject: [seek-for-android] Re: java.lang.SecurityException: Connection refused !!!

I guess the Samsung Nexus does not have the RIL libraries which are required for the NFC communication. So it fdoes not allow to connect to the Secure Element.As these libraries are from OEM we cannot download from somewhere and get it working please try with the Sony Xperia seriess (S, sola) etc. it definitely works

On Wednesday, May 23, 2012 2:43:00 PM UTC+5:30, chinna wrote:samsung nexus galaxy

On May 19, 5:22 am, Robin Ehrlich <robin.ehrl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel  
View profile  
 More options Jun 19 2012, 6:08 am
From: Daniel <Daniel.Alb...@gi-de.com>
Date: Tue, 19 Jun 2012 03:08:01 -0700 (PDT)
Local: Tues, Jun 19 2012 6:08 am
Subject: Re: java.lang.SecurityException: Connection refused !!!
The S3 contains an access control mechanism that requires the files to
be available on the SIM. If that's not the case or the personalization
is wrong, you'll get a Security Exception.
The readers listed in the S3 is 'SIM: UICC' which is the handle to the
SIM card, MicroSD is not included by Samsung. In order to get access
to the MSC, an addon-terminal for the MSC needs to be provided.
---
Daniel

On Jun 14, 2:55 pm, Molnár Vince <m....@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Molnár Vince  
View profile  
 More options Jun 19 2012, 6:13 am
From: Molnár Vince <m....@hotmail.com>
Date: Tue, 19 Jun 2012 12:13:45 +0200
Local: Tues, Jun 19 2012 6:13 am
Subject: RE: [seek-for-android] Re: java.lang.SecurityException: Connection refused !!!

Hi Daniel,
Thank you for the information, that's what I was afraid of.However I can't really understand what you mean by an addon-terminal for the MSC, and how I could provide that.In older models, I could access the MSC by simply inserting the MicroSD into the device, and the msartcard service listed it as an available reader. Is there no way I can do this on an S3?
Vincent


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel  
View profile  
 More options Jun 19 2012, 6:31 am
From: Daniel <Daniel.Alb...@gi-de.com>
Date: Tue, 19 Jun 2012 03:31:11 -0700 (PDT)
Local: Tues, Jun 19 2012 6:31 am
Subject: Re: java.lang.SecurityException: Connection refused !!!
The S3 contains the SmartCardService in the system image thus you
cannot re-install the same package again (=MSC_SmartcardService).
However, it should be possible to develop an MSC_AddonTerminal for any
device where the service is part of the system. This would install
just another terminal but not the service again.
I just received ICS device with MSC support recently so it takes some
time to update the drivers here
---
Daniel

On Jun 19, 12:13 pm, Molnár Vince <m....@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vmandic  
View profile  
 More options Jun 20 2012, 12:18 am
From: vmandic <veli...@hobitat.ca>
Date: Tue, 19 Jun 2012 21:18:43 -0700 (PDT)
Local: Wed, Jun 20 2012 12:18 am
Subject: Re: java.lang.SecurityException: Connection refused !!!

Daniel,
does this mean that if trying on S3 we need to have Access Control file in
place on the sim with our app signing cert populated within ACF?
Did i get that right? thanks in advance


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel  
View profile  
 More options Jun 20 2012, 2:14 pm
From: Daniel <Daniel.Alb...@gi-de.com>
Date: Wed, 20 Jun 2012 11:14:22 -0700 (PDT)
Local: Wed, Jun 20 2012 2:14 pm
Subject: Re: java.lang.SecurityException: Connection refused !!!
Yes, that's correct. Once we have uploaded a new SmartCard API with
Access Control integrated I also try to update the Wiki pages
describing how to personalize the SIM in order to get access. For the
moment you can refer to the GlobalPlatform spec which also contain
samples.
---
Daniel

On Jun 20, 6:18 am, vmandic <veli...@hobitat.ca> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vmandic  
View profile  
 More options Jun 20 2012, 2:32 pm
From: vmandic <veli...@hobitat.ca>
Date: Wed, 20 Jun 2012 11:32:26 -0700 (PDT)
Local: Wed, Jun 20 2012 2:32 pm
Subject: Re: java.lang.SecurityException: Connection refused !!!

Thanks for your reply Daniel.
I've been trying to follow
http://code.google.com/p/seek-for-android/wiki/AccessControlDetails to
figure out how to populate the ACA with ACL entry on the SIM.
At this point i am doing something wrong as my apk signing cert hash is not
matching with the ACL entry. I'll try to reach out to SIM vendor to figure
this out.

Velibor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tunc Ikikardes  
View profile  
 More options Oct 26 2012, 8:24 am
From: Tunc Ikikardes <tunc.ikikar...@gmail.com>
Date: Fri, 26 Oct 2012 05:24:39 -0700 (PDT)
Local: Fri, Oct 26 2012 8:24 am
Subject: Re: java.lang.SecurityException: Connection refused !!!

Hello all,

I am trying to access to the applets on the UICC (java card) from Android +
Smartcard API and experiencing similar problems.
First a summary of my current setup/findings:
*Setup: *

   - Phone: Galaxy S3 with Android 4.0.4 and Smartcard API 2.3.2
   - UICC: A specific test SIM card from an MNO with known key material, a
   Java applet with known AID's preinstalled

*Problem: *

   - Get the "*Connection Refused*" exception with tried to call the *openLogicalChannel
   *method of the created session.

*Observations:*

   - The ATR of the created session is *null*.
   - When I download the HalloSmartcard Java Applet from the trunk - I can
   verify it on the UICC with a smartcard reader - I get the same "*Connection
   Refused*" exception.

As I understood from the discussions around this topic in the group, UICC
on S3 cannot be accessed over Smartcard API (at least not with 2.3.2) as
long as no ACL entry in the java card is present. In this point, I have 2
questions

*Question-1* : The the task of getting a ACL into the java card is not an
easy one as in the java card a PKCS#15 file system must be emulated. Did
anyone found a solution to this? I mean is there a straight-forward way of
creating the appropriate ACL file and embedding it correctly to the java
card that would give the android system access to the UICC? Any hint or
link to a source/tutorial would be really appreciated here.

*Question-2* : This question is more relevant for people from G&D. Acc. to
news, the 4.1 Jellybean update for S3 has started. Although we couldn't get
it yet officially in Switzerland, it might come any time in the next weeks,
anyway. Will the new update contain a upgrade of SmartCard API (e.g. 2.4.0)
? If not, when this new version will be officially a part of the standard
android distributions? That would ease the task "UICC Access" a lot as
apparently, with 2.4.0, the ACs stop becoming an obstacle on the issue.

Thanks a lot in advance for your feedback.

Tunç


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel  
View profile  
 More options Nov 6 2012, 11:54 am
From: Daniel <Daniel.Alb...@gi-de.com>
Date: Tue, 6 Nov 2012 08:54:36 -0800 (PST)
Local: Tues, Nov 6 2012 11:54 am
Subject: Re: java.lang.SecurityException: Connection refused !!!
1. You need the ACL on the SIM where you already have file system
support out of the box: ETSI 102.221 with SELECT, READ/UPDATE BINARY/
RECORD. With such, you can create a PKCS#15 ADF in the GSM filesystem
and inhere the PKCS#15 files with the ACL instead of developing a Java
Card applet that supports PKCS#15 commands.

2. We are not involved when OEMs integrate SCAPI in their devices so
we don't know about version/features/... We also need to wait for a
new device or sw update to be released and try to understand what is
integrated and how it can be used

---
Daniel

On Oct 26, 1:24 pm, Tunc Ikikardes <tunc.ikikar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »