Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 36
Registered: ‎06-28-2012
My Device: BB10

SignatureTool : Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions

Hi,

 

I have configure BB in mac and when I try to sign the cod file using ant it is showing following exception : 

 

[echo] >>>>> Signing cod
  [sigtool] 2012-12-21 12:48:53:0689 : SignatureTool Started
  [sigtool] Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
  [sigtool] 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  [sigtool] 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
  [sigtool] 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
  [sigtool] 	at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  [sigtool] 	at java.lang.System.loadLibrary(System.java:1045)
  [sigtool] 	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
  [sigtool] 	at java.security.AccessController.doPrivileged(Native Method)
  [sigtool] 	at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
  [sigtool] 	at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
  [sigtool] 	at java.awt.Component.<clinit>(Component.java:566)
  [sigtool] 	at net.rim.device.codesigning.signaturetool.SignatureTool.main(Unknown Source)

 

This exception occurs only when i try to run ant using Jenkins server. Otherwise it is working perfectly fine. 

What could be the problem???

 

Please help...

Regular Contributor
Posts: 52
Registered: ‎07-04-2011
My Device: Bold-3

Re: SignatureTool : Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions

Hi,

 

May be from network side your signate url was blocked,so you can get this issue.

 

Regards

Contributor
Posts: 36
Registered: ‎06-28-2012
My Device: BB10

Re: SignatureTool : Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions

Hi,

 

Thanks for your reply.

 

But how can I solve my problem?? Can you please give me some suggestion??

 

Thanks