I find to work very unreliably:
It works in one project but not in another.
It does not seem to work well when the extended abstract-class is in a 
non-default [explicitly named] package.

I would appreciate any info/suggestions on this.


---------- Question 1 ----------
Why is the global-classpath set in prj.el good enough for compiling/running 
from jdee, but not for jde-wiz-extend-abstract-class ?

---------- Question 2 ----------
Why is a 'core' class like 'InputStream' not locatable by jdee/beanshell?



I've seen exchanges on this mailing-list about the issue [and suggestions to 
retrieve diagnostic information], but I have not been able to resolve the 
problem.

This is my [sample] class -- which I want to have extend java.io.InputStream:

> package my.scratch.jde;
> import java.io.InputStream; // also tried adding this *before* calling 
> jde-wiz-extend-abstract-class: did not help
> /**
>  * Describe class IStrm here.
>  * Created: Mon Jan 25 11:42:45 2010
>  *
>  * @author <a href="mailto:---";>---</a>
>  * @version 1.0
>  */
> public class IStrm {
>       /**
>        * Creates a new <code>IStrm</code> instance.
>        */
>       public IStrm() {
>       }
> }

I tried jde-wiz-extend-abstract-class with:
1.
InputStream  -- no luck: lisp/java error/exception ['NullPointerException']

2.
java.io.InputStream -- worse: abstract class java.io.InputStream not found on 
current classpath ! 


I'm pasting here the lisp-error+java-NPE seen for case '1.' [package-name 
omitted in abstract-class name].


> Beanshell expression evaluation error.
>   Expression: {
>   boolean _prevShowValue = this.interpreter.getShowResults();
>   Object _retVal = null;
>   this.interpreter.setShowResults(false);
>   _jdeCustEvalFn() { jde.wizards.AbstractClassFactory.getImportedClasses(); };
>   try { _retVal = eval("_jdeCustEvalFn();"); }
>   finally {
>     this.interpreter.setShowResults(_prevShowValue);
>   }
>   if (_retVal != null) print(_retVal);
> }
>   Error: // Error: // Uncaught Exception: Method Invocation 
> this.interpreter.eval : at Line: 73 : in file: /bsh/commands/eval.bsh : this 
> .interpreter .eval ( expression , this .caller .namespace ) 
> 
> Called from method: eval : at Line: 172 : in file: <unknown file> : eval ( 
> "_jdeCustEvalFn();" ) 
> Target exception: Sourced file: inline evaluation of: ``_jdeCustEvalFn();'' : 
> Method Invocation jde.wizards.AbstractClassFactory.getImportedClasses : at 
> Line: 171 : in file: <unknown file> : jde .wizards .AbstractClassFactory 
> .getImportedClasses ( ) 
> 
> Called from method: _jdeCustEvalFn : at Line: 1 : in file: inline evaluation 
> of: ``_jdeCustEvalFn();'' : _jdeCustEvalFn ( ) 
> Target exception: java.lang.NullPointerException
> 
> 
> java.lang.NullPointerException
>       at 
> jde.wizards.InterfaceFactory.getImportedClasses(InterfaceFactory.java:217)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at bsh.Reflect.invokeMethod(Unknown Source)
>       at bsh.Reflect.invokeStaticMethod(Unknown Source)
>       at bsh.Name.invokeMethod(Unknown Source)
>       at bsh.BSHMethodInvocation.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHBlock.evalBlock(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.BshMethod.invokeImpl(Unknown Source)
>       at bsh.BshMethod.invoke(Unknown Source)
>       at bsh.BshMethod.invoke(Unknown Source)
>       at bsh.Name.invokeLocalMethod(Unknown Source)
>       at bsh.Name.invokeMethod(Unknown Source)
>       at bsh.BSHMethodInvocation.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.Interpreter.eval(Unknown Source)
>       at bsh.Interpreter.eval(Unknown Source)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at bsh.Reflect.invokeMethod(Unknown Source)
>       at bsh.Reflect.invokeObjectMethod(Unknown Source)
>       at bsh.Name.invokeMethod(Unknown Source)
>       at bsh.BSHMethodInvocation.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHReturnStatement.eval(Unknown Source)
>       at bsh.BSHBlock.evalBlock(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.BshMethod.invokeImpl(Unknown Source)
>       at bsh.BshMethod.invoke(Unknown Source)
>       at bsh.BshMethod.invoke(Unknown Source)
>       at bsh.Name.invokeLocalMethod(Unknown Source)
>       at bsh.Name.invokeMethod(Unknown Source)
>       at bsh.BSHMethodInvocation.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHPrimaryExpression.eval(Unknown Source)
>       at bsh.BSHAssignment.eval(Unknown Source)
>       at bsh.BSHBlock.evalBlock(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.BSHTryStatement.eval(Unknown Source)
>       at bsh.BSHBlock.evalBlock(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.BSHBlock.eval(Unknown Source)
>       at bsh.Interpreter.run(Unknown Source)
>       at bsh.Interpreter.main(Unknown Source)
> 
> Beanshell eval error. See messages buffer for details.





Livin Stephen Sharma



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to