Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Heshan Suriyaarachchi
On Tue, Oct 14, 2014 at 2:19 PM, Alexander Kriegisch <
alexan...@kriegisch.name> wrote:

> Yes, the default compliance level is 1.4 according to
> http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#complianceLevel,
> even in the current plugin version 1.7 (you still use 1.5, I recommend an
> update there as well, not just in the AspectJ runtime).
>
Will do. Thank you.


> --
> Alexander Kriegisch
> http://scrum-master.de
>
>
> Am 14.10.2014 um 23:08 schrieb Heshan Suriyaarachchi <
> heshan.suriyaarach...@gmail.com>:
>
> Thank you for the quick feedback guys.
>
> I tried updating to the latest aspectj jars too. Still I saw the same
> error. Then I found out the error. I was missing the  tag
> in my plugin configuration.
>
> Pasting the updated aspectj-maven-plugin configuration in case someone
> runs into the same issue that I ran into.
>
>  
> org.codehaus.mojo
> aspectj-maven-plugin
> 1.5
> 
> 1.7
> 1.7
> 1.7
> 
> 
> 
> 
> 
> compile
> test-compile
> 
> 
> 
> 
>
> Thanks,
> Heshan.
>
> On Tue, Oct 14, 2014 at 1:43 PM, Frank Pavageau 
> wrote:
>
>> 2014-10-14 21:28 GMT+02:00 Andy Clement :
>>>
>>> I’d recommend updating to a more recent AspectJ.  Older AspectJs did
>>> have issues with making mistakes generating stack map frames.  The option
>>> to use split verifier was only possible with JDK1.6 I think, with 1.7 they
>>> removed that capability so the stack map frames needed to be correct.
>>>
>>
>> For the record, -XX:-UseSplitVerifier is available in the Hotspot JVM 7
>> to disable the "new" verifier which needs correct stack map frames. It's
>> not available in the Hotspot JVM 8 anymore.
>>
>> Frank
>>
>> ___
>> aspectj-users mailing list
>> aspectj-users@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>
>
>
> --
> Regards,
> Heshan Suriyaarachchi
>
> http://heshans.blogspot.com/
> http://www.linkedin.com/in/heshan
>
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/
http://www.linkedin.com/in/heshan
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Alexander Kriegisch
I forgot to mention that AspectJ Maven Plugin 1.7 automatically uses 
aspectjtools 1.8.2 by default, see 
http://mojo.codehaus.org/aspectj-maven-plugin/dependencies.html


> Am 14.10.2014 um 23:19 schrieb Alexander Kriegisch :
> 
> Yes, the default compliance level is 1.4 according to 
> http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#complianceLevel,
>  even in the current plugin version 1.7 (you still use 1.5, I recommend an 
> update there as well, not just in the AspectJ runtime).
> -- 
> Alexander Kriegisch
> http://scrum-master.de
> 
> 
>> Am 14.10.2014 um 23:08 schrieb Heshan Suriyaarachchi 
>> :
>> 
>> Thank you for the quick feedback guys. 
>> 
>> I tried updating to the latest aspectj jars too. Still I saw the same error. 
>> Then I found out the error. I was missing the  tag in my 
>> plugin configuration. 
>> 
>> Pasting the updated aspectj-maven-plugin configuration in case someone runs 
>> into the same issue that I ran into. 
>> 
>>  
>> org.codehaus.mojo
>> aspectj-maven-plugin
>> 1.5
>> 
>> 1.7
>> 1.7
>> 1.7
>> 
>> 
>> 
>> 
>> 
>> compile
>> test-compile
>> 
>> 
>> 
>> 
>> 
>> Thanks, 
>> Heshan.
>> 
>>> On Tue, Oct 14, 2014 at 1:43 PM, Frank Pavageau  
>>> wrote:
>>> 2014-10-14 21:28 GMT+02:00 Andy Clement :
 
 I’d recommend updating to a more recent AspectJ.  Older AspectJs did have 
 issues with making mistakes generating stack map frames.  The option to 
 use split verifier was only possible with JDK1.6 I think, with 1.7 they 
 removed that capability so the stack map frames needed to be correct.
>>> 
>>> For the record, -XX:-UseSplitVerifier is available in the Hotspot JVM 7 to 
>>> disable the "new" verifier which needs correct stack map frames. It's not 
>>> available in the Hotspot JVM 8 anymore.
>>> 
>>> Frank
>>> 
>>> ___
>>> aspectj-users mailing list
>>> aspectj-users@eclipse.org
>>> To change your delivery options, retrieve your password, or unsubscribe 
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> 
>> 
>> 
>> -- 
>> Regards,
>> Heshan Suriyaarachchi
>> 
>> http://heshans.blogspot.com/
>> http://www.linkedin.com/in/heshan
>> ___
>> aspectj-users mailing list
>> aspectj-users@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe from 
>> this list, visit
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Alexander Kriegisch
Yes, the default compliance level is 1.4 according to 
http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#complianceLevel,
 even in the current plugin version 1.7 (you still use 1.5, I recommend an 
update there as well, not just in the AspectJ runtime).
-- 
Alexander Kriegisch
http://scrum-master.de


> Am 14.10.2014 um 23:08 schrieb Heshan Suriyaarachchi 
> :
> 
> Thank you for the quick feedback guys. 
> 
> I tried updating to the latest aspectj jars too. Still I saw the same error. 
> Then I found out the error. I was missing the  tag in my 
> plugin configuration. 
> 
> Pasting the updated aspectj-maven-plugin configuration in case someone runs 
> into the same issue that I ran into. 
> 
>  
> org.codehaus.mojo
> aspectj-maven-plugin
> 1.5
> 
> 1.7
> 1.7
> 1.7
> 
> 
> 
> 
> 
> compile
> test-compile
> 
> 
> 
> 
> 
> Thanks, 
> Heshan.
> 
>> On Tue, Oct 14, 2014 at 1:43 PM, Frank Pavageau  
>> wrote:
>> 2014-10-14 21:28 GMT+02:00 Andy Clement :
>>> 
>>> I’d recommend updating to a more recent AspectJ.  Older AspectJs did have 
>>> issues with making mistakes generating stack map frames.  The option to use 
>>> split verifier was only possible with JDK1.6 I think, with 1.7 they removed 
>>> that capability so the stack map frames needed to be correct.
>> 
>> For the record, -XX:-UseSplitVerifier is available in the Hotspot JVM 7 to 
>> disable the "new" verifier which needs correct stack map frames. It's not 
>> available in the Hotspot JVM 8 anymore.
>> 
>> Frank
>> 
>> ___
>> aspectj-users mailing list
>> aspectj-users@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe from 
>> this list, visit
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 
> 
> -- 
> Regards,
> Heshan Suriyaarachchi
> 
> http://heshans.blogspot.com/
> http://www.linkedin.com/in/heshan
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Heshan Suriyaarachchi
Thank you for the quick feedback guys.

I tried updating to the latest aspectj jars too. Still I saw the same
error. Then I found out the error. I was missing the  tag
in my plugin configuration.

Pasting the updated aspectj-maven-plugin configuration in case someone runs
into the same issue that I ran into.

 
org.codehaus.mojo
aspectj-maven-plugin
1.5

1.7
1.7
1.7





compile
test-compile





Thanks,
Heshan.

On Tue, Oct 14, 2014 at 1:43 PM, Frank Pavageau 
wrote:

> 2014-10-14 21:28 GMT+02:00 Andy Clement :
>>
>> I’d recommend updating to a more recent AspectJ.  Older AspectJs did have
>> issues with making mistakes generating stack map frames.  The option to use
>> split verifier was only possible with JDK1.6 I think, with 1.7 they removed
>> that capability so the stack map frames needed to be correct.
>>
>
> For the record, -XX:-UseSplitVerifier is available in the Hotspot JVM 7 to
> disable the "new" verifier which needs correct stack map frames. It's not
> available in the Hotspot JVM 8 anymore.
>
> Frank
>
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/
http://www.linkedin.com/in/heshan
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Frank Pavageau
2014-10-14 21:28 GMT+02:00 Andy Clement :
>
> I’d recommend updating to a more recent AspectJ.  Older AspectJs did have
> issues with making mistakes generating stack map frames.  The option to use
> split verifier was only possible with JDK1.6 I think, with 1.7 they removed
> that capability so the stack map frames needed to be correct.
>

For the record, -XX:-UseSplitVerifier is available in the Hotspot JVM 7 to
disable the "new" verifier which needs correct stack map frames. It's not
available in the Hotspot JVM 8 anymore.

Frank
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Andy Clement
Hi,

I’d recommend updating to a more recent AspectJ.  Older AspectJs did have 
issues with making mistakes generating stack map frames.  The option to use 
split verifier was only possible with JDK1.6 I think, with 1.7 they removed 
that capability so the stack map frames needed to be correct.

AspectJ 1.8.2 should work fine with Java 1.7.

cheers,
Andy

On Oct 14, 2014, at 11:33 AM, Heshan Suriyaarachchi 
 wrote:

> Sorry for the confusing title. It should be corrected as "Stackmap frame 
> errors when building an aspectj project with Java 1.7"
> 
> On Tue, Oct 14, 2014 at 11:31 AM, Heshan Suriyaarachchi 
>  wrote:
> Hi, 
> 
> I have a project which is using aspectj and it is building fine with Java 
> 1.6. When I update it to Java 1.7 I'm seeing following error. 
> 
> [INFO] Molva the Destroyer Aspects ... FAILURE [2.324s]
> [INFO] Molva The Destroyer Client  SKIPPED
> [INFO] Molva The Destroyer Parent  SKIPPED
> [INFO] Molva The Destroyer Distribution .. SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 2.424s
> [INFO] Finished at: Tue Oct 14 11:16:19 PDT 2014
> [INFO] Final Memory: 12M/310M
> [INFO] 
> 
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java 
> (default) on project molva-the-destroyer-aspects: An exception occured while 
> executing the Java class. Expecting a stackmap frame at branch target 30
> [ERROR] Exception Details:
> [ERROR] Location:
> [ERROR] com/concur/puma/molva/aspects/TestTarget.main([Ljava/lang/String;)V 
> @12: invokestatic
> [ERROR] Reason:
> [ERROR] Expected stackmap frame at this location.
> [ERROR] Bytecode:
> [ERROR] 000: 2a4d b200 5e01 012c b800 644e b800 c62d
> [ERROR] 010: b600 ca2c 2db8 00bb 2db8 00bf 57b1 3a04
> [ERROR] 020: b800 c62d 1904 b600 ce19 04bf
> [ERROR] Exception Handler Table:
> [ERROR] bci [12, 30] => handler: 30
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> 
> 
> 
> This is what my maven configuration looks like. 
> 
> 
> junit
> junit
> 3.8.1
> test
> 
> 
> org.aspectj
> aspectjrt
> 1.6.5
> 
> 
> log4j
> log4j
> 1.2.17
> 
> 
> org.perf4j
> perf4j
> 0.9.16
> 
> 
> 
> 
> 
> 
> org.codehaus.mojo
> aspectj-maven-plugin
> 1.2
> 
> 1.7
> 1.7
> 
> 
> 
> 
> compile
> 
> 
> 
> 
> 
> org.codehaus.mojo
> exec-maven-plugin
> 1.1
> 
> 
> package
> 
> java
> 
> 
> 
> 
> 
> com.concur.puma.molva.aspects.TestTarget
> 
> 
> 
> 
> 
> The TestTarget class is a simple class (Pasting it here for completeness.)
> public class TestTarget {
> 
> static Logger logger = Logger.getLogger(TestTarget.class);
> 
> public static void main(String[] args) throws Exception {
> // Test case 01
> new TestTarget().test1();
> 
> // Test case 02
> for(int i=0;i<10;i++) {
> testCountFast(1000);
> }
> 
> // Test case 03
> for(int i=0;i<5;i++) {
> testCountSlow(1000);
> }
> 
> // Test case 04
> //new TestTarget().test2();
> }
> 
> public static void testCountSlow(int value) {
> count(value,5);
> System.out.println("slow count executed!");
> //logger.info("Slow count complete!");
> }
> 
> public static void testCountFast(int value) {
> count(value,0);
> System.out.println("fast count executed!");
> //logger.info("Fast count complete!");
> }
> 
> private static void count(int value, int delay) {
> for (int i=0;i try {
> Thread.sleep(

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Heshan Suriyaarachchi
Sorry for the confusing title. It should be corrected as "Stackmap frame
errors when building *an* aspectj project with Java 1.7"

On Tue, Oct 14, 2014 at 11:31 AM, Heshan Suriyaarachchi <
heshan.suriyaarach...@gmail.com> wrote:

> Hi,
>
> I have a project which is using aspectj and it is building fine with Java
> 1.6. When I update it to Java 1.7 I'm seeing following error.
>
> [INFO] Molva the Destroyer Aspects ... FAILURE [2.324s]
> [INFO] Molva The Destroyer Client  SKIPPED
> [INFO] Molva The Destroyer Parent  SKIPPED
> [INFO] Molva The Destroyer Distribution .. SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2.424s
> [INFO] Finished at: Tue Oct 14 11:16:19 PDT 2014
> [INFO] Final Memory: 12M/310M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.1:java (default) on project
> molva-the-destroyer-aspects: An exception occured while executing the Java
> class. Expecting a stackmap frame at branch target 30
> [ERROR] Exception Details:
> [ERROR] Location:
> [ERROR]
> com/concur/puma/molva/aspects/TestTarget.main([Ljava/lang/String;)V @12:
> invokestatic
> [ERROR] Reason:
> [ERROR] Expected stackmap frame at this location.
> [ERROR] Bytecode:
> [ERROR] 000: 2a4d b200 5e01 012c b800 644e b800 c62d
> [ERROR] 010: b600 ca2c 2db8 00bb 2db8 00bf 57b1 3a04
> [ERROR] 020: b800 c62d 1904 b600 ce19 04bf
> [ERROR] Exception Handler Table:
> [ERROR] bci [12, 30] => handler: 30
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
> This is what my maven configuration looks like.
> 
> 
> junit
> junit
> 3.8.1
> test
> 
> 
> org.aspectj
> aspectjrt
> 1.6.5
> 
> 
> log4j
> log4j
> 1.2.17
> 
> 
> org.perf4j
> perf4j
> 0.9.16
> 
> 
>
> 
> 
> 
> org.codehaus.mojo
> aspectj-maven-plugin
> 1.2
> 
> 1.7
> 1.7
> 
> 
> 
> 
> compile
> 
> 
> 
> 
> 
> org.codehaus.mojo
> exec-maven-plugin
> 1.1
> 
> 
> package
> 
> java
> 
> 
> 
> 
>
> com.concur.puma.molva.aspects.TestTarget
> 
> 
> 
> 
>
> The TestTarget class is a simple class (Pasting it here for completeness.)
> public class TestTarget {
>
> static Logger logger = Logger.getLogger(TestTarget.class);
>
> public static void main(String[] args) throws Exception {
> // Test case 01
> new TestTarget().test1();
>
> // Test case 02
> for(int i=0;i<10;i++) {
> testCountFast(1000);
> }
>
> // Test case 03
> for(int i=0;i<5;i++) {
> testCountSlow(1000);
> }
>
> // Test case 04
> //new TestTarget().test2();
> }
>
> public static void testCountSlow(int value) {
> count(value,5);
> System.out.println("slow count executed!");
> //logger.info("Slow count complete!");
> }
>
> public static void testCountFast(int value) {
> count(value,0);
> System.out.println("fast count executed!");
> //logger.info("Fast count complete!");
> }
>
> private static void count(int value, int delay) {
> for (int i=0;i try {
> Thread.sleep(delay);
> } catch (Exception e) {
> logger.error("Error occurred while sleeping the thread
> count", e);
> }
> }
> }
>
> public void test1() {
> //logger.info("TestTarget.test()");
> }
>
> public void test2() throws Exception {
> throw new Exception("Test exception");
> //logger.info(1/0);
> }
> }
>
> I have read some articles on the web and some a

[aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Heshan Suriyaarachchi
Hi,

I have a project which is using aspectj and it is building fine with Java
1.6. When I update it to Java 1.7 I'm seeing following error.

[INFO] Molva the Destroyer Aspects ... FAILURE [2.324s]
[INFO] Molva The Destroyer Client  SKIPPED
[INFO] Molva The Destroyer Parent  SKIPPED
[INFO] Molva The Destroyer Distribution .. SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.424s
[INFO] Finished at: Tue Oct 14 11:16:19 PDT 2014
[INFO] Final Memory: 12M/310M
[INFO]

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java
(default) on project molva-the-destroyer-aspects: An exception occured
while executing the Java class. Expecting a stackmap frame at branch target
30
[ERROR] Exception Details:
[ERROR] Location:
[ERROR] com/concur/puma/molva/aspects/TestTarget.main([Ljava/lang/String;)V
@12: invokestatic
[ERROR] Reason:
[ERROR] Expected stackmap frame at this location.
[ERROR] Bytecode:
[ERROR] 000: 2a4d b200 5e01 012c b800 644e b800 c62d
[ERROR] 010: b600 ca2c 2db8 00bb 2db8 00bf 57b1 3a04
[ERROR] 020: b800 c62d 1904 b600 ce19 04bf
[ERROR] Exception Handler Table:
[ERROR] bci [12, 30] => handler: 30
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



This is what my maven configuration looks like.


junit
junit
3.8.1
test


org.aspectj
aspectjrt
1.6.5


log4j
log4j
1.2.17


org.perf4j
perf4j
0.9.16






org.codehaus.mojo
aspectj-maven-plugin
1.2

1.7
1.7




compile





org.codehaus.mojo
exec-maven-plugin
1.1


package

java





com.concur.puma.molva.aspects.TestTarget





The TestTarget class is a simple class (Pasting it here for completeness.)
public class TestTarget {

static Logger logger = Logger.getLogger(TestTarget.class);

public static void main(String[] args) throws Exception {
// Test case 01
new TestTarget().test1();

// Test case 02
for(int i=0;i<10;i++) {
testCountFast(1000);
}

// Test case 03
for(int i=0;i<5;i++) {
testCountSlow(1000);
}

// Test case 04
//new TestTarget().test2();
}

public static void testCountSlow(int value) {
count(value,5);
System.out.println("slow count executed!");
//logger.info("Slow count complete!");
}

public static void testCountFast(int value) {
count(value,0);
System.out.println("fast count executed!");
//logger.info("Fast count complete!");
}

private static void count(int value, int delay) {
for (int i=0;ihttp://heshans.blogspot.com/
http://www.linkedin.com/in/heshan
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Aspectj in weaving a jar file

2014-10-14 Thread Andy Clement
When you right click on something, see RunAs context menu. within it select
'Run Configurations...'.

It will open a dialog. Select 'Java Application' on the left, then open the
context menu (right click) and select 'New'. In the new launch
configuration edit the 'Project' to be the one you want to run, and in the
'Main Class' box you can either press 'search' to find a main (which might
not work) or type in the fully package qualified name of your type
containing 'main'. This is basic eclipse stuff and nothing to do with
AspectJ (other than the aspects can interfere with the code that searches
for 'main').

If you don't have a main class in your launch configuration, eclipse won't
know what to run.

Andy

On 14 October 2014 08:29, mufc_fan  wrote:

> can you share a link or any other on how to create a configuration
> manually...also is it mandatory to mention the main class in the
> configuration?
>
>
>
> --
> View this message in context:
> http://aspectj.2085585.n4.nabble.com/Aspectj-in-weaving-a-jar-file-tp4651584p4651607.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Aspectj in weaving a jar file

2014-10-14 Thread mufc_fan
can you share a link or any other on how to create a configuration
manually...also is it mandatory to mention the main class in the
configuration?



--
View this message in context: 
http://aspectj.2085585.n4.nabble.com/Aspectj-in-weaving-a-jar-file-tp4651584p4651607.html
Sent from the AspectJ - users mailing list archive at Nabble.com.
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Aspectj in weaving a jar file

2014-10-14 Thread Andy Clement
I’m not quite clear on this question.

> While running i have to choose the main function

Do you mean when you right click on your project and choose RunAs? There can be 
problems in AJDT finding the right class with a main entry point, in those 
cases define the launch configuration manually. i.e. create a launch 
configuration and enter the class containing the main yourself directly.

If the sources you have imported have no main entry point then you’ll have to 
find the jar containing the entry point and use that. Just ensure your project 
compiled code is ahead of the real hadoop code when you run it and your 
modified classes would be picked up.

cheers
Andy

On Oct 14, 2014, at 4:54 AM, mufc_fan  wrote:

> I have one more doubt... I am adding aspects to hadoop source code and I
> imported one of the package and created aspect aj file but while running I
> have to choose main function but it seems no class of this package have main
> function...What I have to do?...Plz help me...
> 
> 
> 
> --
> View this message in context: 
> http://aspectj.2085585.n4.nabble.com/Aspectj-in-weaving-a-jar-file-tp4651584p4651605.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/aspectj-users

___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Aspectj in weaving a jar file

2014-10-14 Thread mufc_fan
I have one more doubt... I am adding aspects to hadoop source code and I
imported one of the package and created aspect aj file but while running I
have to choose main function but it seems no class of this package have main
function...What I have to do?...Plz help me...



--
View this message in context: 
http://aspectj.2085585.n4.nabble.com/Aspectj-in-weaving-a-jar-file-tp4651584p4651605.html
Sent from the AspectJ - users mailing list archive at Nabble.com.
___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] Server slowdown

2014-10-14 Thread Anthony Mayfield
Thank you for taking the time :)

 

  aplosLogoSmall

A : Aplos Systems Ltd, 17 Carlton Place, Southampton, SO15 2DY.

T : 0800 520 0690

 

Registered in England, 111 rattle Road, Westham, Pevensey, East Sussex, BN24 
5DH; Registration number 6657177

 

From: aspectj-users-boun...@eclipse.org 
[mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Andy Clement
Sent: 13 October 2014 23:51
To: aspectj-users@eclipse.org
Subject: Re: [aspectj-users] Server slowdown

 

Glad you worked that out, I was having trouble working out what would be up :)

 

cheers,

Andy

 

On 13 October 2014 14:21, Anthony Mayfield  wrote:

Hi,

 

It's ok, it looks like the issue lies with the code inside the aspect that is 
getting called.  I'm still not sure why it would take so long on the server and 
not on my laptop but it doesn't look related to the aspect coding directly,

 

All the best,

 

Anthony.

 

  aplosLogoSmall

A : Aplos Systems Ltd, 17 Carlton Place, Southampton, SO15 2DY.

T : 0800 520 0690

 

Registered in England, 111 rattle Road, Westham, Pevensey, East Sussex, BN24 
5DH; Registration number 6657177

 


___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

 

___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Server slowdown

2014-10-14 Thread Anthony Mayfield
Thanks Ryan, I found out it was because some code deeper down was creating a
parser each time.  I think you might be right as the parser created a
hashmap each time.  It's very frustrating this takes over 100 times longer
on the server though, the specs are quite similar between my server and
laptop.  I'll just have to eliminate the parser from the code somehow. 

 

  aplosLogoSmall

A : Aplos Systems Ltd, 17 Carlton Place, Southampton, SO15 2DY.

T : 0800 520 0690

 

Registered in England, 111 rattle Road, Westham, Pevensey, East Sussex, BN24
5DH; Registration number 6657177

 

From: aspectj-users-boun...@eclipse.org
[mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Ryan Gardner
Sent: 14 October 2014 02:22
To: aspectj-users@eclipse.org
Subject: Re: [aspectj-users] Server slowdown

 

Are those maps concurrent maps? If not, map resizing of a standard hashmap
when being accessed via multi threads can cause CPU spikes like that.

On Oct 13, 2014 5:22 PM, "Anthony Mayfield"  wrote:

Hi,

 

It's ok, it looks like the issue lies with the code inside the aspect that
is getting called.  I'm still not sure why it would take so long on the
server and not on my laptop but it doesn't look related to the aspect coding
directly,

 

All the best,

 

Anthony.

 

  aplosLogoSmall

A : Aplos Systems Ltd, 17 Carlton Place, Southampton, SO15 2DY.

T : 0800 520 0690

 

Registered in England, 111 rattle Road, Westham, Pevensey, East Sussex, BN24
5DH; Registration number 6657177

 


___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

___
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users