incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Morel <mmo...@apache.org>
Subject Re: Gradlew Fails to Complete
Date Tue, 14 Aug 2012 14:20:21 GMT
The "adapter" facility is provided for easily testing apps and uses a 
few tricks for making things easier and faster. In particular, it avoids 
the packaging and deployment steps. It resolves the classpath for the 
application, dumps it into the classpath.txt file in the current dir, 
and uses that as the classpath when starting the node.

Can you check the contents of the classpath.txt file?


Note that in non-testing mode, adapters are packaged and deployed with 
the standard deployment model, see the Twitter trending example for 
instance.

Thanks,

Matthieu

On 8/14/12 3:58 PM, Qun Huang wrote:
> There is another problem.
>
> I followed each step in the walkthrough document.
> But I got this information.
>
> Found app class name: hello.HelloInputAdapter
> :cp
>
> BUILD SUCCESSFUL
>
> Total time: 3.287 secs
> 21:51:34.162 [main] INFO  org.apache.s4.core.Main - processing inline
> configuration parameter s4.adapter.output.stream=names
> 21:51:34.169 [main] INFO  org.apache.s4.core.Main - Initializing S4 node with :
> - comm module class [org.apache.s4.comm.DefaultCommModule]
> - comm configuration file [default.s4.comm.properties from classpath]
> - core module class [org.apache.s4.core.DefaultCoreModule]
> - core configuration file[default.s4.core.properties from classpath]
> - extra modules: []
> - inline parameters: [s4.adapter.output.stream=names]
> 21:51:34.179 [main] DEBUG org.apache.s4.core.Main - Adding named
> parameters for injection : [s4.adapter.output.stream=names]
> 21:51:34.597 [main] INFO  org.apache.s4.core.Main - Starting S4 node
> with single application from class [hello.HelloInputAdapter]
> 21:51:34.602 [main] ERROR org.apache.s4.core.Main - Cannot start S4 node
> java.lang.ClassNotFoundException: hello.HelloInputAdapter
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_26]
> 	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_26]
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[na:1.6.0_26]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[na:1.6.0_26]
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) ~[na:1.6.0_26]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[na:1.6.0_26]
> 	at java.lang.Class.forName0(Native Method) ~[na:1.6.0_26]
> 	at java.lang.Class.forName(Class.java:169) ~[na:1.6.0_26]
> 	at org.apache.s4.core.Main.startNode(Main.java:143)
> [s4-core-0.5.0-incubating.jar:0.5.0-incubating]
> 	at org.apache.s4.core.Main.main(Main.java:75)
> [s4-core-0.5.0-incubating.jar:0.5.0-incubating]
>
> when ./s4 adapter -appClass=hello.HelloInputAdapter -c=cluster2
> -p=s4.adapter.output.stream=names.
>
> I'm sure that I'm in the correct directory (myApp), my OS is Ubuntu
> 10.04, JAVA sun-java-6.
> I also setup a proxy in gradlew in the root platform directory.
> But the problem remains even though disabling the proxy.
>
> Do you have any idea of what is going wrong?
>
> Thanks very much!
> Best Regards!
>
> 2012/8/14 Qun Huang <huangqundl@gmail.com>:
>> Oh, I have found the problem after add the -debug option.
>> I only setup the HTTP proxy but not HTTPS proxy.
>> Now it works well.
>>
>> Thank you for your help very much:)
>>
>> 2012/8/14 Matthieu Morel <mmorel@apache.org>:
>>> Hi,
>>>
>>> which OS and which version of Java are you using?
>>>
>>> do you have a trace? If not, can you try adding the -debug or option to the
>>> gradle command? That may help diagnose the issue.
>>>
>>> Thanks,
>>>
>>> Matthieu
>>>
>>>
>>> On 8/14/12 11:22 AM, Qun Huang wrote:
>>>>
>>>> Dear all,
>>>>
>>>> I'm a new user of S4.
>>>> I checked out the latest version from the git and followed the
>>>> instruction in the S4 website.
>>>> However, when I type in the command
>>>>       "./gradlew install -DskipTests",
>>>> it stops at the point
>>>>       " Building > :s4-tools:compileJava > Resolving dependencies
>>>> ':s4-tools:compile' "
>>>> and then cannot continue.
>>>>
>>>> Similarly, when I use the command
>>>>       "./gradlew eclipse",
>>>> it stops at
>>>>       " Building > :s4-tools:compileJava > Resolving dependencies
>>>> ':s4-tools:compile' ".
>>>>
>>>> Can anybody help me?
>>>>
>>>> Thanks very much!
>>>>
>>>
>>
>>
>>
>> --
>> Qun Huang
>> Advanced Networking and System Research Laboratory
>> Department of Computer Science & Engineering
>> The Chinese University of Hong Kong
>> Hong Kong
>
>
>


Mime
View raw message