Hi,
I just upgraded to VP-SUITE-6.3 and trying to recompile my plugins I noticed there are several methods which have been removed from the API, therefore my plugin no longer compiles…
For example the interface com.vp.plugin.model.IRequirement doesn’t have the methods: getRequirementId(), setRequirementId(), getKind(), setKind().
All these methods are listed in the API documentation and were available in the previous version.

When I removed the methods from my plugin it doesn’t work correct:


[error] java.lang.UnsupportedClassVersionError: 
Bad version number in .class file
                at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at v.rae.i(:74)
	at v.ifyw.d(:96)
	at v.lnm.i(:24)
	at v.ifyw.f(:21)
	at v.ifyw.d(:44)
	at v.iscb.i(:57)
	at v.ifyw.f(:21)
	at v.ifyw.d(:44)
	at v.cfb.i(:36)
	at v.ifyw.f(:21)
	at v.ifyw.d(:44)
	at v.egi.i(:26)
	at v.ifyw.f(:21)
	at v.ifyw.d(:44)
	at v.qmz.i(:37)
	at v.ifyw.f(:21)
	at v.nfi.i(:46)
	at v.ijxq.i(:63)
	at v.ijxq.i(:30)
	at v.fifr.a(:109)
	at v.fifr.o(:74)
	at v.kvq.i(:453)
	at v.kvq.f(:297)
	at v.kvq.i(:40)
	at v.mwp.run(:83)
	at java.lang.Thread.run(Unknown Source)

Any help is appreciated.

Best regards,
anita

Hi Anita,

Thanks for your post. I’ve forwarded the details to our engineers to follow-up. Once there is any feedback, I’ll come back to you immediately.

If there are any further inquiry, please do not hesitate to contact me.

Best regards,
Lilian Wong

Hi Anita,

For the missing methods in API, after you have removed your plugin code which related to getRequirementId(), etc., you need to compile your plugin code.

We’re wondering if you are using JRE which is at newer version than the JRE in VP-UML. May I know what’s the version of JRE you are using? Thanks!

Best regards,
Lilian Wong

Hi,

Thanks for replying. I’m using jre1.6.0_05.

Best regards,
anita

Hi Anita,

Thanks for your reply. I suggest you to use jre 1.5 which is the same version as VP-UML’s.

I’ll keep you informed for the news about the missing method in API issue.

Best regards,
Lilian Wong

Hi Anita,

I would like to inform you that we added back the functions:

  • getRisk, setRisk
  • getRequirementId, setRequirementId
  • getVerifyMethod, setVerifyMethod
  • getKind, setKind
  • getSource, setSource

But the functions are marked “@deprecated”.
Since VP-UML now supports configure Requirement with different attributes (Tool > Configure Requirement), Risk/Requirement/VerifyMethod… are attributes of default “Requirement”, another “Requirement” may not support them. Therefore, the functions are marked “@deprecated”.
If the “Requirement” does not support those attibutes, it will return null on get function, and will throw UnsupportedOperationException on set function.

You can download the patch at the link below:
http://files2.visual-paradigm.com/200807/Patch/20080707d/VP_Suite_Windows_3_3_20080707d.exe

If there is any inquiry, please feel free to ask.

Best regards,
Lilian Wong

Thank You!

anita

Hi Anita,

You are welcome, so is the problem fixed with the patch?

Best regards,
Lilian Wong