MailformedURLException using Java ME Platform + CDC

View: New views
4 Messages — Rating Filter:   Alert me  

MailformedURLException using Java ME Platform + CDC

by petergent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I'm getting an error using Apache Felix 2.0.1 Framework with the Java ME
Platform and a CDC application.

java.net.MalformedURLException: unknown protocol: ftp
       at java.net.URL.<init>(URL.java:564)
       at java.net.URL.<init>(URL.java:454)
       at java.net.URL.<init>(URL.java:403)
       at org.apache.felix.framework.URLHandlers.init(URLHandlers.java:124)
       at
org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:144)
       at
org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:506)

       at
org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:72)

       at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)

       at
org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4095)

       at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)

       at org.apache.felix.framework.Felix.init(Felix.java:642)
       at cdcapplication1.Main.main(Main.java:29)
       at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:173)
       at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
       at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
       at java.lang.Thread.startup(Thread.java:782)

Code of  Main.java can be found here:   http://paste.blixt.org/223590

This problem is similar to the one described here:
http://felix.apache.org/site/apache-felix-framework-faq.html
The thing is that I am running a VM from Sun! How can I fix this problem?

Thank you in advance!
Greets
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: MailformedURLException using Java ME Platform + CDC

by Richard S. Hall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First things first, try 2.0.2, since there were some fixes in URL Handlers.

-> richard

On 11/6/09 7:08, petergent wrote:

> Hi!
>
> I'm getting an error using Apache Felix 2.0.1 Framework with the Java
> ME Platform and a CDC application.
>
> java.net.MalformedURLException: unknown protocol: ftp
>       at java.net.URL.<init>(URL.java:564)
>       at java.net.URL.<init>(URL.java:454)
>       at java.net.URL.<init>(URL.java:403)
>       at
> org.apache.felix.framework.URLHandlers.init(URLHandlers.java:124)
>       at
> org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:144)
>       at
> org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:506)
>
>       at
> org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:72)
>
>       at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>
>       at
> org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4095)
>
>       at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>
>       at org.apache.felix.framework.Felix.init(Felix.java:642)
>       at cdcapplication1.Main.main(Main.java:29)
>       at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:173)
>       at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
>       at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
>       at java.lang.Thread.startup(Thread.java:782)
>
> Code of  Main.java can be found here:   http://paste.blixt.org/223590
>
> This problem is similar to the one described here:
> http://felix.apache.org/site/apache-felix-framework-faq.html
> The thing is that I am running a VM from Sun! How can I fix this problem?
>
> Thank you in advance!
> Greets
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: MailformedURLException using Java ME Platform + CDC

by Karl Pauls :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, please try 2.0.2 as that might fix your situation. Additionally,
are you seeing any problems or is it just the exception printed to
stdout? I belive you should be able to just ignore the printout and
everything should just work fine. Finally, you can always just turn
off urlhandlers using -Delix.service.urlhandlers=false.

regards,

Karl

On Fri, Nov 6, 2009 at 4:41 PM, Richard S. Hall <heavy@...> wrote:

> First things first, try 2.0.2, since there were some fixes in URL Handlers.
>
> -> richard
>
> On 11/6/09 7:08, petergent wrote:
>>
>> Hi!
>>
>> I'm getting an error using Apache Felix 2.0.1 Framework with the Java ME
>> Platform and a CDC application.
>>
>> java.net.MalformedURLException: unknown protocol: ftp
>>      at java.net.URL.<init>(URL.java:564)
>>      at java.net.URL.<init>(URL.java:454)
>>      at java.net.URL.<init>(URL.java:403)
>>      at org.apache.felix.framework.URLHandlers.init(URLHandlers.java:124)
>>      at
>> org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:144)
>>      at
>> org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:506)
>>      at
>> org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:72)
>>      at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>>      at
>> org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4095)
>>      at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>>      at org.apache.felix.framework.Felix.init(Felix.java:642)
>>      at cdcapplication1.Main.main(Main.java:29)
>>      at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:173)
>>      at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
>>      at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
>>      at java.lang.Thread.startup(Thread.java:782)
>>
>> Code of  Main.java can be found here:   http://paste.blixt.org/223590
>>
>> This problem is similar to the one described here:
>> http://felix.apache.org/site/apache-felix-framework-faq.html
>> The thing is that I am running a VM from Sun! How can I fix this problem?
>>
>> Thank you in advance!
>> Greets
>> Peter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Karl Pauls
karlpauls@...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: MailformedURLException using Java ME Platform + CDC

by petergent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much.
Using version 2.0.2 fixed the problem!

regards,
Peter

Karl Pauls schreef:

> Yes, please try 2.0.2 as that might fix your situation. Additionally,
> are you seeing any problems or is it just the exception printed to
> stdout? I belive you should be able to just ignore the printout and
> everything should just work fine. Finally, you can always just turn
> off urlhandlers using -Delix.service.urlhandlers=false.
>
> regards,
>
> Karl
>
> On Fri, Nov 6, 2009 at 4:41 PM, Richard S. Hall <heavy@...> wrote:
>  
>> First things first, try 2.0.2, since there were some fixes in URL Handlers.
>>
>> -> richard
>>
>> On 11/6/09 7:08, petergent wrote:
>>    
>>> Hi!
>>>
>>> I'm getting an error using Apache Felix 2.0.1 Framework with the Java ME
>>> Platform and a CDC application.
>>>
>>> java.net.MalformedURLException: unknown protocol: ftp
>>>      at java.net.URL.<init>(URL.java:564)
>>>      at java.net.URL.<init>(URL.java:454)
>>>      at java.net.URL.<init>(URL.java:403)
>>>      at org.apache.felix.framework.URLHandlers.init(URLHandlers.java:124)
>>>      at
>>> org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:144)
>>>      at
>>> org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:506)
>>>      at
>>> org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:72)
>>>      at
>>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>>>      at
>>> org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4095)
>>>      at
>>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:639)
>>>      at org.apache.felix.framework.Felix.init(Felix.java:642)
>>>      at cdcapplication1.Main.main(Main.java:29)
>>>      at com.sun.cdc.odt.CdcAppManager.runMain(CdcAppManager.java:173)
>>>      at com.sun.cdc.odt.CdcAppManager.access$100(CdcAppManager.java:44)
>>>      at com.sun.cdc.odt.CdcAppManager$1.run(CdcAppManager.java:90)
>>>      at java.lang.Thread.startup(Thread.java:782)
>>>
>>> Code of  Main.java can be found here:   http://paste.blixt.org/223590
>>>
>>> This problem is similar to the one described here:
>>> http://felix.apache.org/site/apache-felix-framework-faq.html
>>> The thing is that I am running a VM from Sun! How can I fix this problem?
>>>
>>> Thank you in advance!
>>> Greets
>>> Peter
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>    
>
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...