It always belonged in test so it just got moved there. What you're
seeing in IntelliJ at least is probably just a stale run profile, try
going to the class itself and context-clicking in the window and
running it from there, that should create a run profile with the right
values.

On Wed, Feb 7, 2018 at 11:07 AM, Ahmed Eldawy <[email protected]> wrote:
> Hi,
>
> I see that recently the AsterixHyracksIntegrationUtil was moved from
> production to test in the following commit.
>
>>   [NO ISSUE] Move AsterixHyracksIntegrationUtil from production to test
>>
>>   Change-Id: Id603d0f1ac17b977356e628a89845d240c8aa8b7
>>   Reviewed-on: https://asterix-gerrit.ics.uci.edu/2311
>>   Tested-by: Jenkins <[email protected]>
>>   Integration-Tests: Jenkins <[email protected]>
>>   Contrib: Jenkins <[email protected]>
>>   Reviewed-by: Till Westmann <[email protected]>
>
>
> I couldn't find a discussion around this issue and I don't know why this
> move was necessary. I used to run the *AsterixHyracksIntegrationUtil* for
> testing and trying out AsterixDB and now I cannot. Running the following
> command gives the error below.
>
>> $ASTERIXDB/asterixdb/asterix-app$ *mvn exec:java*
>> -Dexec.mainClass="org.apache.asterix.api.common.AsterixHyracksIntegrationUtil"
>
>
>
>> java.lang.ClassNotFoundException:
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>         at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:270)
>>         at java.lang.Thread.run(Thread.java:745)
>
>
> Although this is a less preferred way to me, I tried to run it from *IntelliJ
> IDEA* but I got the following error.
>
>> java.lang.IllegalStateException: java.lang.ClassNotFoundException:
>> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:750)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.addGenerated(FunctionCollection.java:348)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.createDefaultFunctionCollection(FunctionCollection.java:473)
>> at
>> org.apache.asterix.app.cc.CCExtensionManager.<init>(CCExtensionManager.java:101)
>> at
>> org.apache.asterix.hyracks.bootstrap.CCApplication.start(CCApplication.java:151)
>> at
>> org.apache.hyracks.control.cc.ClusterControllerService.startApplication(ClusterControllerService.java:236)
>> at
>> org.apache.hyracks.control.cc.ClusterControllerService.start(ClusterControllerService.java:222)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:144)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.init(AsterixHyracksIntegrationUtil.java:177)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.run(AsterixHyracksIntegrationUtil.java:333)
>> at
>> org.apache.asterix.api.common.AsterixHyracksIntegrationUtil.main(AsterixHyracksIntegrationUtil.java:102)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.asterix.runtime.evaluators.functions.records.FieldAccessByIndexDescriptor$_Gen
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> at
>> org.apache.asterix.runtime.functions.FunctionCollection.getGeneratedFunctionDescriptorFactory(FunctionCollection.java:746)
>> ... 15 more
>
>
>
> is there an alternative easy way to run *AsterixHyracksIntegrationUtil* or
> a similar program?
>
> --
> Best regards,
> Ahmed Eldawy

Reply via email to