Home Help Center

what's wrong with my IcePack demo

I use IceJ.2.0.0.zip. when I want run the demo in demo\IcePack\hello,

I follow the readme under "demo\IcePack\hello":

$ icepacknode --Ice.Config=config --warn
$ icepackadmin --Ice.Config=config -e "application add 'application.xml'"
$ java -cp %ICEJ_HOME%\lib\Ice.jar;.\classes Client


there is an execption:
Ice.NoEndpointException
proxy = "Service1 -t @ IceBox1.Service1.Hello"
at IceInternal.Reference.getConnection(Reference.java:562)
at Ice._ObjectDelM.setup(_ObjectDelM.java:196)
at Ice.ObjectPrxHelperBase.__getDelegate(ObjectPrxHelperBase.java:640)
at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:41)
at Ice.ObjectPrxHelperBase.ice_isA(ObjectPrxHelperBase.java:29)
at Demo.HelloFactoryPrxHelper.checkedCast(HelloFactoryPrxHelper.java:92)

at Client.run(Client.java:40)
at Client.main(Client.java:178)

>>> server describe IceBox1

server 'IceBox1' (Java IceBox)
{
node = 'node'
application = 'hello'
exe = 'java'
activation = 'on-demand'
className = 'IceBox.Server'
service manager endpoints = 'default'
properties
{
IceBox.ServiceManager.Identity=IceBox1/ServiceManager
Ice.ThreadPool.Server.Size=5
}
adapter 'IceBox.ServiceManager'
{
id = 'IceBox1.IceBox.ServiceManager'
endpoints = 'default'
register process = 'true'
}
service 'Service1'
{
entry = 'HelloServiceI'
properties
{
Identity=Service1
}
adapter 'Hello'
{
id = 'IceBox1.Service1.Hello'
endpoints = 'default'
register process = 'false'
object
{
proxy = 'Service1 -t @ IceBox1.Service1.Hello'
type = '::Demo::HelloFactory'
}
}
}
}

>>> adapter list

Server1.Hello
IcePack.Node.node
IceBox1.Service1.Hello
IcePack.Registry.Internal
IceBox1.IceBox.ServiceManager

>>> adapter endpoints IceBox1.Service1.Hello

>>>


I don't change and configuration file, source file and any describtor.
so what's the matter.

Platform is Win2000 and WinXP Home.

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    The most likely reason for the exception is that the IcePack node wasn't able to launch the server. If you look at the trace output from the node, you will probably see an error message that should help you fix the issue. For example, did you set CLASSPATH correctly in the node's environment so that, when it launches the Java server, the JVM can find Ice.jar and the "classes" subdirectory?

    Take care,
    - Mark
  • MjollnirMjollnir Member
    Originally posted by mes
    If you look at the trace output from the node, you will probably see an error message that should help you fix the issue.

    hi, mes
    thanks for your reply, but How can I look at the trace output from the node.

    Happ new Year! everyone:)
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    The demo's configuration file defines the following properties:

    #
    # Trace properties.
    #
    IcePack.Node.Trace.Activator=3
    IcePack.Node.Trace.Adapter=2
    IcePack.Node.Trace.Server=3

    So all you need to do is run the node in a separate command window and watch the trace output it prints when your client attempts to connect to the server.

    - Mark
  • MjollnirMjollnir Member
    Originally posted by mes
    For example, did you set CLASSPATH correctly in the node's environment so that, when it launches the Java server, the JVM can find Ice.jar and the "classes" subdirectory?

    Take care,
    - Mark

    got it!
    Yes, because I don't set CLASSPATH for Ice.jar and demo classes subdirectiory, so when I start icepacknode it cannont find Ice.jar.

    thanks and happy new year!
    :cool:
Sign In or Register to comment.