Execute Class using MBeans...
Hello,
Sorry for my bad english...
I have a two classes called ShutdownJoltsClass and StartUpJoltsClass on my local WL server.
These classes allow me to execute PoolManagerStartUp and PoolManagerShutDown at server startup time and shutdown time respectively.
className=bea.jolt.pool.servlet.weblogic.PoolManagerStartUp.
and
className=bea.jolt.pool.servlet.weblogic.PoolManagerShutDown.
I want to executed both classes in WL server runtime using Mbeans. With WLShell I can´t execute them because doesn´t appears this method.
Does anybody know how execute a StartUp/ShutDown classes in runtime?
If I could execute a PoolManagerStartUp and PoolManagerShutDown in runtime, i could restart jolts pool without reboot the WL.
Thanks in advanced,
Sagitta.
This way works in XP:
Create a batch file "runJ.bat" with these contents:
@ECHO OFF
rem This batch program is invoked when a .class file is double-clicked.
rem This is done by registering the extension .class and associating
rem this file with its opening. The expression %~n1 removes the path
rem and the .class suffix, leaving just the filename.
java %~n1
pauseAnd create the file association using the following in the open command:
"<path>\RunJ.bat" "%1"
Similar Messages
-
Can not access the Instance Data of a Singleton class from MBean
I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
Can anyone explain or have hints on what's happening ? Any help will be appreciated.
I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
http://www.theserverside.com/discussions/thread.tss?thread_id=12194
http://www.jguru.com/faq/view.jsp?EID=1051835
Thanks,
KrishnaI am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
Can anyone explain or have hints on what's happening ? Any help will be appreciated.
I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
http://www.theserverside.com/discussions/thread.tss?thread_id=12194
http://www.jguru.com/faq/view.jsp?EID=1051835
Thanks,
Krishna -
Executing *.java using unix process
Hi,
I have a problem with executing *.java command using unixprocess in java class. My java code snippet contain like...
Process p = Runtime.getRuntime().exec(command);
where command= "/data1/oracle/product/10.1.3.1/OracleSOA/jdk/bin/javac -d /tmp/classes/createLOV/build /tmp/classes/createLOV/src/com/lovalias/packagename/pas/uws/master/interfaces/*.java"
if we run that java file on unix OS..
it gives error like
error: cannot read: /tmp/classes/createLOV/src/com/lovalias/packagename/pas/uws/master/interfaces/*.java1 error
if replace * with actual file name like ABC.java it is executing success fully..i think it is treating * as file name
but i want execute list of sourcefiles from that directory..
any body please give the solution...
thanks in advance...Sounds like you either have a corrupt class file or you're using an older version of the JVM to try to execute classe that were compiled for a newer version.
-
Create a JDBC system resource using MBeans i Weblogic v10 server
Hi,
I'm trying to create a JDBC resource on Weblogic V 10 Admin server from a remote java client using MBeans. At the client side the following exception is thrown:
Exception in thread "main" weblogic.management.NoAccessRuntimeException: [JMX:14
9520]An attempt was made to Register an MBean with ObjectName com.bea:Location=w
l_server,Name=Test-examples-demo,Type=JDBCSystemResource ObjectName in com.bea d
omain.
at weblogic.management.mbeanservers.internal.SecurityInterceptor.checkFo
rBEADomain(SecurityInterceptor.java:1263)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.createM
Bean(SecurityInterceptor.java:148)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterce
ptor$1.run(AuthenticatedSubjectInterceptor.java:62)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterce
ptor.createMBean(AuthenticatedSubjectInterceptor.java:60)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.createMBean(WLSMBe
anServer.java:157)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
onImpl.java:1363)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio
nImpl.java:81)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
(RMIConnectionImpl.java:1245)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
MIConnectionImpl.java:1348)
at javax.management.remote.rmi.RMIConnectionImpl.createMBean(RMIConnecti
onImpl.java:220)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:5
9)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicSer
verRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
what could be the cause of the exception? Any inputs/reference in this reagard would be helpful.
A sample client which creates the same on weblogic 10 server would be a great help.
Thanks in Advance,Preethi Ghalke wrote:
Hi,
I'm trying to create a JDBC resource on Weblogic V 10 Admin server from a remote java client using MBeans. At the client side the following exception is thrown:
Exception in thread "main" weblogic.management.NoAccessRuntimeException: [JMX:14
9520]An attempt was made to Register an MBean with ObjectName com.bea:Location=w
l_server,Name=Test-examples-demo,Type=JDBCSystemResource ObjectName in com.bea d
omain.Hi. There's probably nothing wrong with your code,
but the client probably doesn't have the WebLogic
permissions to do the request. Do check our security
documentation or ask official support.
Joe
at weblogic.management.mbeanservers.internal.SecurityInterceptor.checkFo
rBEADomain(SecurityInterceptor.java:1263)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.createM
Bean(SecurityInterceptor.java:148)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterce
ptor$1.run(AuthenticatedSubjectInterceptor.java:62)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterce
ptor.createMBean(AuthenticatedSubjectInterceptor.java:60)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.createMBean(WLSMBe
anServer.java:157)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti
onImpl.java:1363)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio
nImpl.java:81)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
(RMIConnectionImpl.java:1245)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R
MIConnectionImpl.java:1348)
at javax.management.remote.rmi.RMIConnectionImpl.createMBean(RMIConnecti
onImpl.java:220)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown S
ource)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:5
9)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicSer
verRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
what could be the cause of the exception? Any inputs/reference in this reagard would be helpful.
A sample client which creates the same on weblogic 10 server would be a great help.
Thanks in Advance, -
Getting runtime "state" of a messagingbridge using MBeans in weblogic10..
Hi,
We are trying to get the runtime state of a configured messaging bridge in WebLogic10 using MBeans. From the docs it looks like we need to use the MessagingBridgeRuntimeMBean which has got the "state" attribute . But for some reason the access path for this MBean is not documented and hence we are not able to figure out the ObjectName to access this MBean via the latest standard jmx model (drilling down using ObjectNames).. On the other hand we are able to get the value of the "started" attribute which is found in the MessagingBridgeMBean but this is not helpful as it just tells whether the Bridge has started or not. Below is the code to get to this attribute :
//connect to the MBeanServer first
String son = "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean"
ObjectName service = null;
try {
service = new ObjectName(son);
}catch (MalformedObjectNameException moe) {
moe.printStackTrace();
//get the ObjectName for the DomainMBean -
ObjectName dn = (ObjectName)connection.getAttribute (service,"DomainConfiguration");
System.out.println("Domain Configuration : " +dn.getKeyProperty("Name"));
//now get the ObjectName for all the "configured" messaging bridges
ObjectName[] mbs = (ObjectName[])connection.getAttribute(dn,"MessagingBridges");
for(int i=0;i<mbs.length;i++){
System.out.println(mbs.toString());
String mbName = mbs[i].getKeyProperty("Name");
String status = connection.getAttribute(mbs[i],"Started").toString();
System.out.println("The Messaging Bridge " mbName " has status "+status);
How can we get the runtime "state" of the messaging bridge using the MessagingBridgeRuntimeMBean in Weblogic10 ?
In betw, we also used the WLST tool but did not see the MessagingBridgeRuntime in the console..
- thanxThanx Dongbo very much for this,
I guess what you are implying here is :
1) Use the ManagementHome interface and then
get the ObjectNames of all the running MBeans in the domain/server.
2) This should also contain the ObjectName of the running MessagingBridgeRuntimeMBean.
3) Use the above ObjectName in the MBeanServerConnection class method getAttribute(ObjectName on, String attribute) .. Here the attribute would be "state".
I just ran this program and ran into marshalling exception. I am using jdk1.5 with java options -Djmx.serial.form=1.0 -Dcom.sun.xml.na
mespace.QName.useCompatibleSerialVersionUID=1.0.
I also have the wljmxclient.jar,weblogic.jar and api.jar in my classpath.
Below is the stack trace :
java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.ja
va:197)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
at org.omg.stub.javax.management.j2ee._Management_Stub.queryNames(Unknow
n Source)
at com.db.eps.tracer.common.utils.bridgemonitoring.BridgeMonitor2.getAll
JMONames(Unknown Source)
at com.db.eps.tracer.common.utils.bridgemonitoring.BridgeMonitor2.main(U
nknown Source)
Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemEx
ception(MessageBase.java:897)
Am i missing some other jars here..
- thanx -
Guys,
Am having hung sessions in memory, wondering if anyone knows how to kill
them programatically using MBeans. In other words is there a MBean class which
gives me list of all active sessions in memory ?
ThanksGuys,
Am having hung sessions in memory, wondering if anyone knows how to kill
them programatically using MBeans. In other words is there a MBean class which
gives me list of all active sessions in memory ?
Thanks -
Execute *.class file by DoubleClicking
I use WinXP.and i tryed to let my OS execute *.class file by Doubleclicking. to do so i used Windows Explorer->Tools Menu->Folder Options Menu->File Types Tab and then i registered CLASS file type. on its open action i wrote "C:\JAVA_HOME\jdk15\jre\bin\java.exe" "%1". but when i try to execute *.class file its gives error.
i guess that windows executes the command "%JAVA_HOME%\bin\java.exe C:\aaa.class" when i double click aaa.class file icon. So the java.exe tryes to execute "class.class" file of "aaa" package. Is there any way to cut ".class" of the command.
otherwise is there another way to do that?This way works in XP:
Create a batch file "runJ.bat" with these contents:
@ECHO OFF
rem This batch program is invoked when a .class file is double-clicked.
rem This is done by registering the extension .class and associating
rem this file with its opening. The expression %~n1 removes the path
rem and the .class suffix, leaving just the filename.
java %~n1
pauseAnd create the file association using the following in the open command:
"<path>\RunJ.bat" "%1" -
What are the classes used for bropdownListBox in BSP and purpose and how
what are the classes used for bropdownListBox in BSP and purpose and how
thank you,
Regards.
Jagrut BharatKumar ShuklaBenje001,
Right-click on the CWAI control on your form. Choose Properties. The first tab is the Channels tab. After you choose your device from the drop down box on the right, you can type in the Channels box which channel you want to use.
If you want to see a CWAI control that is already configured, all of the shipping examples will have this already done.
Also, if you have questions about any item on the CWAI (or any other NI ActiveX control) you can click the ? icon in the right corner of the properties page and then click on the item in the dialog that you need help with. This "What's this" help will describe that particular control on the dialog.
Hope that helps!
Regards,
Shannon R.
Applications Engineer
National Instruments -
Issue in Selection Screen of ABAP report after executing it using TCode
Hi,
I have one Z program having a selection screen for it. One selection variable is non editable for the users (has default value) whereas user can enter the value in other selection variable.
To make the first variable non editable, I have used the following code.
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name = 'P_USER'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Now when I execute this program from SE38, it works fine. But when I execute it using a Tcode (assigned in SE93), the first variable also become editable for users.
How can I keep the first variable non editable even after executing the program using a Tcode?
Regards,
YogeshHi,
It seems you create a Transaction type: Dialog transaction.
Delete current transaction and create one with Transaction type: Report transaction (radio button in row 2nd)
regards, -
Very Urgent: how to define field symbols in class using se24 Points assured
hi all
I am new to abap oo programming. I am using se24 to build a class
where some methods have code which involves working with field sybmols but i am not able to figure out way for how to define field symbols in the attributes section.
I tried defining like : fld_sym type ref to dbtab-fld
but in the method implementation if i try to use it like assign fld to <fld_sym> there it says fld_sym is not defined as a field symbol.
So can anyone please guide me how to define field symbols in se24.
Also what should be the general steps while creating a class using se24.
Points assured
thanksHi
Global classes are like Global fun modules in which the Methods and code is already written and is mainly used for Reusability purpose.
Goto SE24 tcode and see the std global classes like
CL_ABAP_CHAR_UTILITIES
see the links
chk out the links below:
General Tutorial for OOPS
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Have a look at these links for OO ABAP.
http://www.sapgenie.com/abap/OO/
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
SDN Series:
https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
Basic concepts of OOPS
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
http://www.henrikfrank.dk/abapuk.html
http://www.erpgenie.com/abap/OO/
Reward oints if useful,
Aleem. -
Tools to list classes used in the project/
Hi
is there any tool that would list all the classes and packages used in my project. the tools must be something like getting input as a main class and list all the other classes used in the project. ?
-- MJHi,
This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question at :
http://forum.java.sun.com/forum.jspa?forumID=54
Thanks,
RK. -
For all classes used in the alv reports.
we need the list of required classes used in alv reports this urgent .
please help me.Hi Navid,
Check <b>SLIS Package/Dev.Class for node Classes</b>,
here u will find all required <b>classes for ALV including ALV Hierarchical,AVL Tree, ALV HTML.</b>
Classes.
CL_ALVHT_HTMLINPUT-> ALV: HTML Input (Control Proxy)
CL_ALVHT_HTML_PAGE-> ALV HTML Page
CL_ALVHT_HTML_TEMPLATE-> ALV: HTML Templates
CL_ALVHT_TAGSTREAM-> ALV
CL_ALVHT_UI_ELEMENT-> ALV: HTML User Input Element
CL_ALV_BDS-> BDS Access and Data Retention
CL_ALV_CHANGED_DATA_PROTOCOL-> Message Log for Data Entry
CL_ALV_DD_DOUBLE_LISTBOX-> Management Class for two D&D List Boxes
CL_ALV_DD_LISTBOX-> D&D List Box
CL_ALV_EVENT_DATA-> Changing Data Container for Events
CL_ALV_EVENT_TOOLBAR_SET-> ALV Context Menu
CL_ALV_GRAPHICS-> ALV Graphic (Integration with GFW)
CL_ALV_GRAPHICS_CU-> Customizing of ALV Graphics
CL_ALV_LISTBOX_DRAGOBJ->
CL_ALV_OI BDS-> Access and Data Retention
CL_ALV_TABLE_CREATE-> Dynamic Creation of ALV Data Table
CL_ALV_TREE_BASE-> Basis Class ALV Tree Control
CL_ALV_VARIANT-> ALV Variant Management
CL_GUI_ALV_GRID-> ALV List Viewer
CL_GUI_ALV_GRID_BASE-> Basis Class for ALV Grid
CL_GUI_ALV_TREE-> ALV Tree Control
Regards,
Raghav
Message was edited by:
Raghavendra L -
What is the standard class used to create SALES ORDER in SAP CRM?
Hello Experts,
Can anyone suggest me what is the standard class used for creating sales order.
I have created sales order using the BAPI 'BAPI_SLSTRANSACT_CREATEMULTI' in my report program.
Now, I have to create sales order using standard classes and methods(my assignment).
Please suggest the suitable class.
Regards
DNR VarmaHi Varma,
You can create crm documents like sales order using BOL interfaces.
You can check one example at the following thread:
Create OrderThro BOL
Check if it helps you a little more.
Kind regards,
Garcia -
Can anyone help i want to call java class using visual basic
I want to call java class using visual basic and send some arguments to the main class
Hi,
I don't know VB, but you can surely launch a command line like :
javaw.exe mypackage.MyMainClass myArgument1
Regards -
Accessing a different class using ActionPerformed
hi
im trying to access a method in a different class using
public void actionPerformed (ActionEvent e) {
if(e.getSource() == AuthorCombo) {
ComboAction();
else if(e.getSource() == SearchButton){
SearchSystem();
}and then using
public class Book extends ViewPanel{
public void SearchSystem(){// this is used to get the information from
//the combo boxs whixh can latter show
//the data in the text area
tempBookNoList.clear();
for(int a=0; a<AuthorList.size(); a++) {
if(((String)AuthorCombo.getSelectedItem()
==AuthorList.get(a))
&&((String)BookCombo.getSelectedItem()
==BookList.get(a))) {
tempBookNoList.add((String)BookNoList.get(a));
String result = (String)tempBookNoList.get(a);
InfoArea.setText ((String)tempBookNoList.get(a));
} }//End neither random situation.to manipulate some data within the other class
i keep getting the error
.\ViewPanel.java:314: cannot resolve symbol
symbol : method SearchSystem ()
location: class ViewPanel
SearchSystem();
^
1 error
can anyone help me spot the problemin that case i do not know what could be the cause in this program
the only area i think it could be is when the SearchSystem method in the Book class gets using the Action Performed method in the Viewpanel method, shown below
public class Book extends ViewPanel{
public void SearchSystem(){// this is used to get the information from
//the combo boxs whixh can latter show
//the data in the text area
for(int a=0; a<AuthorList.size(); a++) {
if(((String)AuthorCombo.getSelectedItem()
==AuthorList.get(a))
&&((String)BookCombo.getSelectedItem()
==BookList.get(a))) {
InfoArea.setText((String)BookNoList.get(a));
}which is called using
public void actionPerformed (ActionEvent e) {
if(e.getSource() == AuthorCombo) {
ComboAction();
else if(e.getSource() == SearchButton){
theBook.SearchSystem();
}but i cant see this being a problem as it all compiles
Maybe you are looking for
-
HT202213 how do I share my music between comouters
I would like to duplicate my music on my spouce's comptuer. How do i do this
-
Enable Node Manager debug using WLST
Hi, I would like to enable debug for node manager using WLST instead of using the Admin console - by selecting the check box for "Debug Enabled" property under Environment > Machine > Configuration > Node Manager in the Admin console. I could locate
-
Hi i have a apple cable it used to work fine i dont know why now to get the computer to detect it i have to put it in a special position, if i move it the slightest bit it disconnects. I tried different hubs, different laptops, i have iTouch 4G 32GB
-
I have loaded an swf file into a dreamweaver page. This swf file contains links to other html pages, however, when i preview the page in the browser these links from the swf file don't work. Does anyone know if they will work once it is officially pu
-
What if you can't remember the first album you purchased/
I had a new operating system installed on my lap top and now itunes is asking me some security questions that I don't remember the answers to. It thinks it's a new computer. it's threatening to lock my account if i mess it up one more time Is there a