You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by hi...@jakarta.apache.org on 2004/06/24 21:15:08 UTC

[jira] Commented: (HIVEMIND-10) Unable to use HiveMind in a Java WebStart client...

The following comment has been added to this issue:

     Author: James Carman
    Created: Thu, 24 Jun 2004 12:14 PM
       Body:
I believe I've tracked down what causes this.  I reported it as a bug to Sun.  The PropertyEditorManager doesn't register an editor for the java.lang.String class when a SecurityManager is installed for some reason.  There is a RuntimePermission (accessClassInPackage.sun.beans.editors, I believe) required, but unavailable in the default "sandbox."  The funny thing is that it registers editors for all the primitive types.  Anyway, I don't know if we can fix the problem on our end (HiveMind) or if the problem needs to be addressed by Sun.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/HIVEMIND-10?page=comments#action_36328

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-10

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-10
    Summary: Unable to use HiveMind in a Java WebStart client...
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0

   Assignee: 
   Reporter: James Carman

    Created: Thu, 24 Jun 2004 10:12 AM
    Updated: Thu, 24 Jun 2004 12:14 PM
Environment: Windows XP
Internet Explorere 6.0
hivemind-1.0-beta-1-snapshot.jar
Java Web Start 1.4.2_04 Console, started Thu Jun 24 12:52:16 EDT 2004
Java 2 Runtime Environment: Version 1.4.2_04 by Sun Microsystems Inc.


Description:
I have created a simple application that just loads the HiveMind modules into the default registry...

public class Main
{
    public static void main( String[] args )
    {
        System.out.println( "Starting application..." );
        RegistryBuilder.constructDefaultRegistry();
    }
}

I am starting this via Java WebStart, but it doesn't want to launch.  It keeps getting some weird error about "no property editor for java.lang.String"...

06-24@13:09:25 ERROR (ReadAttributeRule        )     - Error at jar:file:C:/Documents%20and%20Settings/James%20Carman/Application%20Data/Sun/Java/Deployment/javaws/cache/http/Dlocalhost/P8080/DMworkbench/DMapp/XMhivemind-1.0-beta-1-snapshot.jar1088096963896!/META-INF/hivemodule.sdl, line 574, column 7: Unable to process attribute name (of element service-model): Unable to translate 'primitive' to type java.lang.String: No property editor for java.lang.String.
org.apache.hivemind.ApplicationRuntimeException: Unable to translate 'primitive' to type java.lang.String: No property editor for java.lang.String.
	at org.apache.hivemind.schema.rules.SmartTranslator.translate(Unknown Source)
	at org.apache.hivemind.schema.rules.ReadAttributeRule.begin(Unknown Source)
	at org.apache.hivemind.impl.SchemaElement.fireBegin(Unknown Source)
	at org.apache.hivemind.impl.SchemaProcessorImpl.processElement(Unknown Source)
	at org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement(Unknown Source)
	at org.apache.hivemind.impl.SchemaProcessorImpl.process(Unknown Source)
	at org.apache.hivemind.impl.ConfigurationPointImpl.constructElementsList(Unknown Source)
	at org.apache.hivemind.impl.ConfigurationPointImpl.constructElements(Unknown Source)
	at org.apache.hivemind.impl.ElementsInnerProxyList.inner(Unknown Source)
	at org.apache.hivemind.impl.ElementsInnerProxyList.size(Unknown Source)
	at org.apache.hivemind.impl.ElementsProxyList.size(Unknown Source)
	at java.util.AbstractList$Itr.hasNext(Unknown Source)
	at org.apache.hivemind.impl.RegistryImpl.readServiceModelFactories(Unknown Source)
	at org.apache.hivemind.impl.RegistryImpl.getServiceModelFactory(Unknown Source)
	at org.apache.hivemind.impl.ModuleImpl.getServiceModelFactory(Unknown Source)
	at org.apache.hivemind.impl.ServicePointImpl.getService(Unknown Source)
	at org.apache.hivemind.impl.ServicePointImpl.getService(Unknown Source)
	at org.apache.hivemind.impl.RegistryImpl.getService(Unknown Source)
	at org.apache.hivemind.impl.RegistryImpl.startup(Unknown Source)
	at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(Unknown Source)
	at org.apache.hivemind.impl.RegistryBuilder.constructDefaultRegistry(Unknown Source)
	at com.carmanconsulting.workbench.Main.main(Main.java:18)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
	at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
	at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org