Can I create the object of an protected inner class of a Base class in to t
Dear All,
Can I create the object of an protected inner class of a Base class in to the subclass ?
e.g.
public class Base{
protected class Inner {};
Public class Sub extends Base{
Public Inner amethod (){
Return new Inner(); //here I get an exception as
//Inner has protected access
}Regards,
Ishan
@Op. The code that you posted isn't close to compiling. Java is case sensitive. It should be public and not Public, and return instead of Return.
Kaj
Similar Messages
-
ActiveX can´t create the object xl reporter
hola tengo SAP BO 2005
con el xl reporter ahora que lo quiero correr me aparece el error de que el ActiveX can´t create the object
probe reinstalando todo y nada, asi como cambiando el dll de los lenguajes
alguna otra sugerencia
graciasEstimado Salvador,
Gracias por remitir su inquietud al soporte de SAP B1 en español.
Inicialmente le pedimos verifique que esta utilizando una versión soportada de Microsoft Office. Tal y como se documenta en el Service Market Place:
https://service.sap.com/smb/sbo/platforms
Si cuenta con alguna de las versiones soportadas, verifique lo siguiente :
El mensaje de error podria estar relacionado a el DI API. Favor aplicar los siguientes pasos:
1. Ubicar el archivo '"temp" por medio de Start -> Run , tipear %temp%.
2. Ubicar la carpeta SM_OBS_DLL folder y borrarla.
3. Desde añadir/remover programas, desinstalar el DI API.
4. Reiniciar el PC.
5. Instalar el DI API desde la carpeta del parche en uso (en la carpeta "packages")
Esperando lo anterior les permita solventar lo reportado.
Queda a sus gratas ordenes,
Juan Manuel Marrero
SAP Business One Forums Team -
Error run-time 429 ActiveX can't create the object Financial Reporting
Hi everybody,
I'm trying to run Financial Reporting 9.3.1 on my pc with Winodws Vista but as I launch the exe it shows me an error message:
Error run-time 429 ActiveX can't create the object
I know it works out with XP. Is there a problem with Vista? How can I fix it?
Thanks in advance
GiacomoI cannot say this IS your problem, but some oddities I ran into installing the report client on my laptop in my current environment ....
#1 - Even though you type in your username and password in the Reports login box, it apparently uses the credentials of the logged on user.
#2 - The machine MUST be on the domain that is used for authentication or it flat out won't work (see item #1)
#3 - I ran into the ActiveX error once and apparently something did not register properly during the install. To fix it :
Run the batch file : %HYPERION_HOME%\BIPlus\install\bin\HRRunAnt.cmd
Where %HYPERION_HOME% is the main hyperion folder. (i.e. c:\hyperion )
After the script executes, reboot your machine. You MUST reboot.
Hope that helps. -
How can create the object ? Via class.forName
Hi,
i want to create the object via class.forname?........
i have tryed like this Class obj=Class.forName("sample.Employee");
but it gives error like this......
java.lang.InstantiationException: sample.Employee
at java.lang.Class.newInstance0(Class.java:291)
at java.lang.Class.newInstance(Class.java:259)
at sample.ArrayListTest.main(ArrayListTest.java:22)The line
Class obj=Class.forName("sample.Employee");does NOT create a new object of class
sample.Employee. It only loads the class and creates
the Class object. You have to call newInstance() to
create a new instance of the class:
Object obj =
Class.forName("sample.Employee").newInstance();I guess you already did something like that, because
forName() itself doesn't throw an
InstantiationException.
For this to work, class sample.Employee must be in
the classpath and it must have a public constructor
that takes no arguments.this is my full code it dosn't work i don,t know
public class ArrayListTest {
public ArrayListTest() { }
public static void main(String[] args) {
ArrayList employees = new ArrayList();
// create some employees
/* Employee employee_1 = new Employee("John", 2000);
Employee employee_2 = new Employee("Carl", 3000);
Employee employee_3 = new Employee("Ron", 4000);*/
/*instead of this Employee employee_1 i want to create the new obeject by using*/
try{
Object obj = Class.forName("sample.Employee").newInstance();
catch(Exception e)
e.printStackTrace();
// add them to your list
//employees.add(employee_1);
//employees.add(employee_2);
//employees.add(employee_3);
// display only the names your list
for(int j = 0; j < employees.size(); j++) {
Employee temp = (Employee)employees.get(j);
System.out.println("nr. "+(j+1)+": "+temp.getName()+"\nnr. "+(j+1)+": "+temp.getSalary());
// invoke the toString()-method from Employee
for(int j = 0; j < employees.size(); j++) {
Employee temp = (Employee)employees.get(j);
System.out.println(temp.toString());
} // class ArrayListTest
again the same error occur................ -
Why can't get the object "out" in this way?
We use "PrintWriter out=response.getWriter()"to get a "out" object in Servlet and output text to webbrowser with it.But I think the PrintWriter is a class and Why can't I get the object "out" use this way:"PrintWriter out=new PrintWriter()"?I think the later is easier to understand.Anyone can help me?
I check the Servlet API.The PrintWriter has a constructor with a abstract object Writer as it's parameter.I couldn't create the Writer object so I can't create the out object.Why it's constructor is protected by java?
-
Can't create Zen objects with Zen 4.01B
I removed my Zen 4.01B install from my server, deleted all the objects and
directories on my Netware 5.1 sp7 server running Edir 8.7.3.7.
I have reinstalled Zen from my 4.01B patch download, as a new install.
I can create all my objects except for 3, at least so far.
can't create the following, ZenInvService ZendmwolService
ZenimagingService.
It gives me "There is not a snap-in to create this type of object." error.
I have downloaded the IR7 C1 snapin download and applied it to my local
copy of Console1 running 1.3.6.e.
Do I have to install from my original CD of 4.0.1 then apply the B patch,
or is it something else?> You are not running E-Dir 8.8 on this box are you?
> This does not support ZEN before ZFD7SP1.
>
> While I dont think they are supported on NW6.x, I believe folks have
> gotten them working.
>
> Sorry nobody has a good answer yet.
>
> [email protected] wrote:
> >> I removed my Zen 4.01B install from my server, deleted all the
objects
> > and
> >> directories on my Netware 5.1 sp7 server running Edir 8.7.3.7.
> >> I have reinstalled Zen from my 4.01B patch download, as a new install.
> >> I can create all my objects except for 3, at least so far.
> >> can't create the following, ZenInvService ZendmwolService
> >> ZenimagingService.
> >> It gives me "There is not a snap-in to create this type of object."
> > error.
> >> I have downloaded the IR7 C1 snapin download and applied it to my
local
> >> copy of Console1 running 1.3.6.e.
> >>
> >> Do I have to install from my original CD of 4.0.1 then apply the B
> > patch,
> >> or is it something else?
> >>
> > May have answered my own question. I am actually installing Zen 4.01B
on a
> > different server this time, it is running Netware 6.5 Sp5. As I recall
> > Inventory and the Import service do not work on Zen 4.01B when you
install
> > it on Netware 6.5.
> > Would you agree?
> >
> >
>
>
> --
> Craig Wilson
> Novell Product Support Forum Sysop
> Master CNE, MCSE 2003, CCN
Well, for whatever reason we reinstalled our Novell licensed download and
reinstalled Zen and our licenses and everything works. -
Can not create the connection in the enrironment!!
hello,every one:
please see the following code:
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection(userName,password,connectString);
try
//use the conn
catch (SQLException &ex)
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
throw;//re-throw
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
Environment *ev = Environment::createEnvironment(Environment::OBJECT);
//the program stopped here,display i can not create the new connection
Connection *cn = ev->createConnection(userName,password,connectString);
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
I have terminated the connection and the environment,then why I can not create the
connection in the new environment?
I have tried several times,if you connect the same database as the former,then it
does not work,but if you connect a new database ,it can create the new connection!
plus:I don't want to use conection pool .
Can I have some method to solve the problem?
Please help me!
Thanks a lot in advance!
tony from ChinaHi Tony,
This similar sample works perfectly fine for me. Can you
retry with this?
#include <iostream>
#include <occi.h>
using namespace std;
using namespace oracle::occi;
int main()
Environment *env = Environment::createEnvironment(Environment::OBJECT);
Connection *conn = env->createConnection("scott","tiger","inst1");
try
//use the conn
catch (SQLException &ex)
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
cout<<ex.getMessage();
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
Connection *cn;
Environment *ev;
try{
ev = Environment::createEnvironment(Environment::OBJECT);
cn = ev->createConnection("scott","tiger","inst1");
catch (SQLException &ex)
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
cout<<ex.getMessage();
ev->terminateConnection(cn);
Environment::terminateEnvironment(ev);
}Rgds
Amogh -
How can you move the objects from one server to another?
how can you move the objects from one server to another?
Hi,
Collecting objects for Transporting
1. rsa1->transport connection
2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
3. then choose your infocube and 'transfer'
4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
5. after objects collection finished, create request
6. If they are $TMP, then change the package.
7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
8. You can check the request in SE09 to confirm.
Releasing Transport Request
Lets say you are transporting from BWD to BWQ
Step 1: In BWD go to TCode SE10
Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
Note: First release the child request and then the parent request
Steps below are to import transport (generally done by basis )
Step 1: In BWQ go to Tcode STMS
Step 2: Click on Import queue button
Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
Step 4: Click on refresh button
Step 5: High light the trasnport request and import it (using the truck icon)
Transport
http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
Hope this helps.
thanks,
JituK -
How can I create a object for a note?
Hi experts,
I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
Object REPS Z_MRM_DELETE_PP does not exist; create it
Diagnosis
The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
Procedure
1. Cancel the SAP Note implementationl.
2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
3. Restart the SAP Note implementation.
How can I create that Object??
Thanks for the help!Hi Carlos,
It says that you have to create a new program with a name Z_MRM_DELETE_PP.
Once you create and activate the program you can execute the SAP Note.
All this processure will be written in the SAP Note.
Please Go through the Note using below:
Step1: Use T.code SNOTE.
Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
Step3: Double click on the displayed line.
Here you will get the information to do before implementing the note.
Go through all the documentation, and once you did all the development given in the note then you can implement the note.
Regards,
Sreekanth. -
Create the object - not correct data in the file ?
I have the text file, then I parse and create objects MyDocument (one row = one document). If row is corect then I create object MyDocument. But what I must do when row is not correct. The row can have 3 type of errors:
1.Not correct length of row
2.Not filled required fields in row
3.Field are filled by not correct data
Is a good to throw exception when I get one of this errors. Do I need to store this errors on separate class (MyObjectErrors extends Exception)?
So when row is correct I create the object MyDocument. Otherwise I NOT create object MyDocument and throw exception. Is this a good solution?One question These 3 error you want together or what let me know i ll do that code n give you
-
How can I create the component like ComboBox in flashlite2.0 ?
How can I create the component like ComboBox in flashlite2.0
I'm a new man, please gave me an example!
Thanks.I don't see anything special about the play button in MPMoviePlayerController....
the "glowing" effect icons are all standard UIBarButtonItem objects:
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIBarBut tonItem_Class/Reference/Reference.html -
Run-time error '429':Active X component can not create an object
Hi Folks,
I am using some VBA code to run logic in BPC for Excel. When i try to click on VBA button, It's giving the below error.However when i am trying to execute same from server it is working fine. Accessing from BPC client only we are facing this problem.
Code have no issues. Is there any specific thing need to mentioned in client when we use VBA programming? Basically we used the VBA program to create the id's in BPC for Excel. So that it will automatically created on fly. Testing was fine interms of working in Server.
" Run-time error '429':Active X component can not create an object ."Hi,
Are you trying to add a member into the dimension from excel? As you said that this has been already tested in the server and is working fine, I believe, you have taken care of everything.
Now, coming to the point, when you are adding a member in the membersheet, you need to process the dimension. This requires the admin rights. So, please check the task profile of the user ID, with which you are trying from your system. This user ID should be the primary admin.
Hope this helps.
Additionally, can you please elaborate on the steps on what you followed for adding a member from the excel directly? -
Can we check the Objects modifiable " option for standard objects
Dear Friends
In IR , we have imported SRM SERVER->SRM SERVER5.5
Then we have checked the option<u><b> "Objects are modifiable"</b></u> then we imported the IDOC from R/3 system under SRM SERVER 5.5 swcv.
Then created the mapping.It is working fime.
how ever i am not sure whether it is right process.Can we check the "Objects are modifiable" for standard compoents delivered by SAP????
Regards
chandraHi Jai,
<i> >>>Can we check the "Objects are modifiable" for standard compoents delivered by SAP????
No. As best practise you are not supposed to do so.</i>
In order to implement any changes in the mapping we can do it rite.
Because recently i have applied one SAP note to my SRM swcv and one of the MM object was changed according to the requirements.
Thanks,
Prasanthi. -
Can Dreamweaver create the remote root directory?
Hi,
Does Dreamweaver have the capability to create the remote
root directory? As an example, if I define a remote site and I set
the host directory to public/site3 where the public directory
already exists on the server but site3 directory does not, can
Dreamweaver create the site3 folder? Other programs will notify
that the directory does not exist and ask if you'd like for it to
be created. Dreamweaver just seems to give me error messages.
I'm currently using a straight FTP program to create the
directory before I define the remote site but it seems ridiculous
to have to do this.
Thanks!
Julie> can Dreamweaver create the site3 folder?
Sure.
But - what do you expect this to do for you? Are you trying
to have
multiple sites on a single hosting account?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"[email protected]"
<[email protected]> wrote in message
news:fbutc7$88f$[email protected]..
> Hi,
>
> Does Dreamweaver have the capability to create the
remote root directory?
> As
> an example, if I define a remote site and I set the host
directory to
> public/site3 where the public directory already exists
on the server but
> site3
> directory does not, can Dreamweaver create the site3
folder? Other
> programs
> will notify that the directory does not exist and ask if
you'd like for it
> to
> be created. Dreamweaver just seems to give me error
messages.
>
> I'm currently using a straight FTP program to create the
directory before
> I
> define the remote site but it seems ridiculous to have
to do this.
>
> Thanks!
> Julie
> -
Re: How to create the Object R3TR NROB Y_BKRS
Dear Experts,
Can any one please give me the transaction code to create the object R3TR NROB Y_BKRS.
Thank youTransaction SNRO.
J.N.N.
Maybe you are looking for
-
Extension of input fileds in Sales order for account assignment
Dear Gurus, Can anyone tell me how to extend input fields like Statistical order(COBL-AUFNR) and cost center(COBL-KOSTL) in sales order for accounting assignment and these fields have to be ready for manual entries. The order types are ZHGA and ZHV.
-
Help Installing Old CS2 Onto New Hard Drive
Please Help!!! 5 years ago I bought my iMac G5 and Adobe Photoshop CS2. Just last week my hard drive "died" and I had to get a new one. I found and pulled out my old Photoshop CS2 disc and tried to install. When I entered the serial number, install
-
Popup worked in RH9 but doesn't in RH10
Hello, Is there a reason that a popup that worked in RoboHelp HTML 9 would generate an ehlpdhtm.js error after the project was converted to version 10? Whether there's a reason or not, how can I get it working again? The only difference between this
-
Hello fellow Lumia users, My Lumia800 completely dropped dead about 24 hours ago. What happened back then is that I left it in my coat pocket for several hours, and when I attempted to use it, it didn't even light up. The screen was black, and when I
-
R3 (RFC Asynch) -- XI --- SOAP (webservice Synch)
Hi Experts, My scenario is :R3 (RFC Asynch) > XI <-> SOAP(webservice is synch) Step1:- R3 sends the data webservie(SOAP) via XI. Step2:- Webservice returns the response to XI, But R3(RFC) does not need the resoponse. how to handle the