Deploy EAR failure,Who can help me to deploy?
Dear all:
I'm running two cluster set-ups in the WLS6.1 , follow introduction my
test condition:
Two members on NT server and an Admin server, they reside all different
Machine.
I test it before package EAR , jsp and servlet call SessionBean to work
very well,but
I package a test EAR file , it includes a Stateful Session Bean and war
file(only one Servlet and three JSPs)
When I deployed EAR file, Server show a error message to below:
> > <Error> <Management> <Error initializing module Login.war of
application ClusterAdmin:Name=gfortuneNet,
> > Type=Application from path
.\config\ClusterAdmin\applications\gfortuneNet.ear: Login.war does not
exist.>
> > <Notice> <Management> <Application Poller not started for production
server.>
I check out the Administrator Console , I find "Login.war" to deploy
unsuccessful , Following is my test code and configuration:
***Servlet***
public class loginServlet extends HttpServlet implements
java.io.Serializable {
private static final String CONTENT_TYPE = "text/html; charset=BIG5";
public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
doGet(request,response);
public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
HttpSession session = request.getSession(false);
try{
Context ctx = getInitialContext();
LoginQueryHome home = (LoginQueryHome) ctx.lookup("LoginQuery");
LoginQuery the_ejb = home.create();
} catch (NamingException e)
{ e.printStackTrace(); }
catch (RemoteException e)
{ e.printStackTrace(); }
catch (CreateException e)
{ e.printStackTrace();}
public static Context getInitialContext()throws NamingException
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://10.168.168.32:9001"); //
cluster1 server
return new InitialContext(p);
**web.xml :**
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd>
<web-app>
<servlet>
<servlet-name>loginServlet</servlet-name>
<servlet-class>com.servlet.loginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>loginServlet</servlet-name>
<url-pattern>/loginServlet</url-pattern>
</servlet-mapping>
</web-app>
**weblogic.xml :**
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
Application 6.0//EN"
"http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd>
<weblogic-web-app>
<description>WebLogic Descriptor</description>
<session-descriptor>
<session-param>
<param-name>
PersistentStoreType
</param-name>
<param-value>
replicated
</param-value>
</session-param>
</session-descriptor>
</weblogic-web-app>
**application.xml:**
<?xml version="1.0" encoding="ISO8859_1"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN'
'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<application>
<display-name>login</display-name>
<description>Application description</description>
<module>
<ejb>Test_BookBean.jar</ejb> // This is
Stateful Session Bean
</module>
<module>
<web>
<web-uri>Login.war</web-uri>
<context-root>clicklit</context-root>
</web>
</module>
</application>
***weblogic-ejb-jar.xml***
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD
WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>LoginQueryBean</ejb-name>
<stateful-session-descriptor>
<stateful-session-clustering>
<home-load-algorithm>RoundRobin</home-load-algorithm>
<replication-type>InMemory</replication-type>
</stateful-session-clustering>
</stateful-session-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/CORDataSource</res-ref-name>
<jndi-name>GalaxyDataSource</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>LoginQuery</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
Please every bea consultants tell me what's lost to build up ?
Best Regards,
James Huang
I'm not really a servlet expert, but it appears that you've enabled
in-memory replication for the Login servlet, but your WLS is not
clustered.
-- Rob
james wrote:
>
> Hi! Rob Woollen:
> First thanks for your responsion , I forget Configure the
> HttpClusterServlet .
> but I configure the HttpClusterServlet to web.xml lately, and only deploy
> Login.war to WLS6.1 , finding the other error message,Can you tell me,
> what's wrong for me?
>
> > > **web.xml
> file************************************************************************
> **
> <?xml version="1.0" ?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <servlet>
> <servlet-name>loginServlet</servlet-name>
> <servlet-class>com.servlet.loginServlet</servlet-class>
> </servlet>
> <servlet>
> <servlet-name>HttpClusterServlet</servlet-name>
>
> <servlet-class>weblogic.servlet.internal.HttpClusterServlet</servlet-class>
> <init-param>
> <param-name>defaultServers</param-name>
>
> <param-value>10.168.168.32:9001:9002|10.168.168.200:9001:9002|10.168.168.154
> :9001:9002</param-value>
> </init-param>
> <init-param>
> <param-name>DebugConfigInfo</param-name>
> <param-value>OFF</param-value>
> </init-param>
> </servlet>
> <servlet-mapping>
> <servlet-name>loginServlet</servlet-name>
> <url-pattern>/loginServlet</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>HttpClusterServlet</servlet-name>
> <url-pattern>/</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>HttpClusterServlet</servlet-name>
> <url-pattern>*.jsp</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>HttpClusterServlet</servlet-name>
> <url-pattern>*.htm</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>HttpClusterServlet</servlet-name>
> <url-pattern>*.html</url-pattern>
> </servlet-mapping>
> </web-app>
>
> > > **Error
> message*********************************************************************
> *****
> <2001/9/10 ??11?35?52?> <Error> <HTTP Session> <FATAL: replicated HTTP sess
> ions specified but clustering not enabled for webapp: /Login>
> javax.management.MBeanException
> at
> weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl
> .java:960)
> at
> weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl
> .java:913)
> at
> weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:898)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
> .java:618)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
> 90)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
> nImpl.java:350)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
> at $Proxy69.addTarget(Unknown Source)
> at
> weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationM
> anager.java:833)
> at
> weblogic.management.mbeans.custom.ApplicationManager.addApplication(Applicat
> ionManager.java:930)
> at
> weblogic.management.mbeans.custom.ApplicationManager.addApplication(Applicat
> ionManager.java:852)
> at
> weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
> .java:768)
> at
> weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager
> .java:701)
> at
> weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManag
> er.java:198)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
> .java:606)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
> 90)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
> nImpl.java:350)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:444)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
> at $Proxy5.update(Unknown Source)
> at
> weblogic.management.console.webapp._domain.__upload_app._jspService(__upload
> _app.java:150)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :263)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
> l.java:190)
> at
> weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
> at
> weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java
> :35)
> at
> weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
> rvlet.java:172)
> at
> weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
> let.java:85)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :263)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:2390)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :1959)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> <2001/9/10 ??11?35?52?> <Error> <Management> <Error deploying application
> .\config\ClusterAdmin\applications\Login.war :
> java.lang.reflect.UndeclaredThrowableException>
>
> > > Best Regards,
> > >
> > > James Huang 09/10/2001
>
> "Rob Woollen" <[email protected]> ?????
> news:[email protected]...
> > It looks like the server is complaining about the Login.war file not
> > existing (or in the specified place) in the ear file.
> >
> > -- Rob
> >
> > james wrote:
> > >
> > > Dear all:
> > > I'm running two cluster set-ups in the WLS6.1 , follow
> introduction my
> > > test condition:
> > > Two members on NT server and an Admin server, they reside all different
> > > Machine.
> > > I test it before package EAR , jsp and servlet call SessionBean to work
> > > very well,but
> > > I package a test EAR file , it includes a Stateful Session Bean and war
> > > file(only one Servlet and three JSPs)
> > > When I deployed EAR file, Server show a error message to below:
> > >
> ****************************************************************************
> > > *******************
> > > > > <Error> <Management> <Error initializing module Login.war of
> > > application ClusterAdmin:Name=gfortuneNet,
> > > > > Type=Application from path
> > > .\config\ClusterAdmin\applications\gfortuneNet.ear: Login.war does not
> > > exist.>
> > > > > <Notice> <Management> <Application Poller not started for
> production
> > > server.>
> > >
> ****************************************************************************
> > > *******************
> > > I check out the Administrator Console , I find "Login.war" to deploy
> > > unsuccessful , Following is my test code and configuration:
> > >
> > > ***Servlet***
> > > public class loginServlet extends HttpServlet implements
> > > java.io.Serializable {
> > > private static final String CONTENT_TYPE = "text/html;
> charset=BIG5";
> > > public void doPost(HttpServletRequest request, HttpServletResponse
> > > response) throws ServletException, IOException {
> > > response.setContentType(CONTENT_TYPE);
> > > PrintWriter out = response.getWriter();
> > > doGet(request,response);
> > > }
> > > public void doGet(HttpServletRequest request, HttpServletResponse
> > > response) throws ServletException, IOException {
> > > response.setContentType(CONTENT_TYPE);
> > > PrintWriter out = response.getWriter();
> > > HttpSession session = request.getSession(false);
> > > . . . . . . . . . . . . . .
> > > . . . . . . . . . . . . . .
> > > try{
> > > Context ctx = getInitialContext();
> > > LoginQueryHome home = (LoginQueryHome) ctx.lookup("LoginQuery");
> > > LoginQuery the_ejb = home.create();
> > > . . . . . . . . . . . . . .
> > > . . . . . . . . . . . . . .
> > > } catch (NamingException e)
> > > { e.printStackTrace(); }
> > > catch (RemoteException e)
> > > { e.printStackTrace(); }
> > > catch (CreateException e)
> > > { e.printStackTrace();}
> > > }
> > > public static Context getInitialContext()throws NamingException
> > > {
> > > Properties p = new Properties();
> > > p.put(Context.INITIAL_CONTEXT_FACTORY,
> > > "weblogic.jndi.WLInitialContextFactory");
> > > p.put(Context.PROVIDER_URL, "t3://10.168.168.32:9001");
> //
> > > cluster1 server
> > > return new InitialContext(p);
> > > }
> > > }
> > >
> ****************************************************************************
> > > ********
> > > **web.xml :**
> > > <?xml version="1.0" ?>
> > > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > > Application 1.2//EN"
> > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd>
> > > <web-app>
> > > <servlet>
> > > <servlet-name>loginServlet</servlet-name>
> > >
> <servlet-class>com.servlet.loginServlet</servlet-class>
> > > </servlet>
> > > <servlet-mapping>
> > > <servlet-name>loginServlet</servlet-name>
> > > <url-pattern>/loginServlet</url-pattern>
> > > </servlet-mapping>
> > > </web-app>
> > >
> > > **weblogic.xml :**
> > > <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web
> > > Application 6.0//EN"
> > > "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd>
> > > <weblogic-web-app>
> > > <description>WebLogic Descriptor</description>
> > > <session-descriptor>
> > > <session-param>
> > > <param-name>
> > > PersistentStoreType
> > > </param-name>
> > > <param-value>
> > > replicated
> > > </param-value>
> > > </session-param>
> > > </session-descriptor>
> > > </weblogic-web-app>
> > >
> ****************************************************************************
> > > ********
> > > **application.xml:**
> > > <?xml version="1.0" encoding="ISO8859_1"?>
> > > <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD
> J2EE
> > > Application 1.2//EN'
> > > 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
> > > <application>
> > > <display-name>login</display-name>
> > > <description>Application description</description>
> > > <module>
> > > <ejb>Test_BookBean.jar</ejb> // This is
> > > Stateful Session Bean
> > > </module>
> > > <module>
> > > <web>
> > > <web-uri>Login.war</web-uri>
> > > <context-root>clicklit</context-root>
> > > </web>
> > > </module>
> > > </application>
> > >
> ****************************************************************************
> > > ********
> > > ***weblogic-ejb-jar.xml***
> > > <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD
> > > WebLogic 6.0.0 EJB//EN'
> > >
> 'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
> > > <weblogic-ejb-jar>
> > > <weblogic-enterprise-bean>
> > > <ejb-name>LoginQueryBean</ejb-name>
> > > <stateful-session-descriptor>
> > > <stateful-session-clustering>
> > >
> <home-load-algorithm>RoundRobin</home-load-algorithm>
> > > <replication-type>InMemory</replication-type>
> > > </stateful-session-clustering>
> > > </stateful-session-descriptor>
> > > <reference-descriptor>
> > > <resource-description>
> > > <res-ref-name>jdbc/CORDataSource</res-ref-name>
> > > <jndi-name>GalaxyDataSource</jndi-name>
> > > </resource-description>
> > > </reference-descriptor>
> > > <jndi-name>LoginQuery</jndi-name>
> > > </weblogic-enterprise-bean>
> > > </weblogic-ejb-jar>
> > >
> > > Please every bea consultants tell me what's lost to build up ?
> > >
> > > Best Regards,
> > >
> > > James Huang
> >
> > --
> >
> > ----------------------------------------------------------------------
> >
> > AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
> >
> > by Michael Girdley, Rob Woollen, and Sandra Emerson
> >
> > http://learnWebLogic.com
AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
by Michael Girdley, Rob Woollen, and Sandra Emerson
http://learnWebLogic.com
Similar Messages
-
Problems about deploy a adapter.Who can help??
I confirm that the zip file path is right.I use the winrar to create the rar file,and use the winzip to create .sda file.
Who can help??Thanks very much
===========================================================================
Deployment started Wed Sep 13 13:54:19 GMT+08:00 2006
===========================================================================
Starting Deployment of cmbc.accenture.connector
Aborted: development component 'cmbc.accenture.connector'/'sap.com'/'SAP AG'/'7.0004.20050713150837.0000':
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file cmbc_ra.rarerror in opening zip file. Reason:
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
Deployment of cmbc.accenture.connector finished with Error (Duration 5609 ms)Hi Sky,
Please ensure that the content of cmbc_ra.sda is the following:
- META-INF (check in all files if all the names are comliant for your adapter structure)
- cmbc_ra.rar
In the cmbc_ra.rar
META-INF (check the content of ra.xml file)
cmbc_ra.jar
Hope this help.
Francesco Bersani -
My system:
Windows 7
Lightroom 5.7
I allready tried to load an older catalog backup, but that does not help.
The failure message occurs during the starting process while trying to Open the library:
"[String "unarchived table s"]:6 : attempt to compare nil with boolean.
Nothing is working anymore! Who can help me?
Thank you for your help!Ask on the Microsoft forums, as it's their software you're having problems with:
http://answers.microsoft.com/en-us/mac -
HELP ME!!!! who can help me ???
My eclipse always halt suddenly. I have no idea how to solve it, and i have reinstall my JVM and eclipse.but it doesn't work, the eclipse halt again.
The below is the eclipse log hs_err_pid3740.log. Who can help me? much appreciate!!!!
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7f789e, pid=3740, tid=1468
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode)
# Problematic frame:
# V [jvm.dll+0xc789e]
--------------- T H R E A D ---------------
Current thread (0x00c7ed10): JavaThread "Worker-5" [_thread_in_vm, id=1468]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000054
Registers:
EAX=0x00000000, EBX=0x2563a6b0, ECX=0x00000180, EDX=0x0000001a
ESP=0x37fff814, EBP=0x37fff848, ESI=0x0000001a, EDI=0x35298770
EIP=0x6d7f789e, EFLAGS=0x00010202
Top of Stack: (sp=0x37fff814)
0x37fff814: 6d7f7858 0000001a 3699747c 22ca6f68
0x37fff824: 00000000 6d7f8aaf 23aacde0 22ca6f68
0x37fff834: 00c7ed10 36b7bff0 35298768 35298770
0x37fff844: 35298b5c 37fff87c 6d7f9986 36997468
0x37fff854: 36997488 36997484 00c7ed10 00c7ed10
0x37fff864: 00c7ed10 00000000 00000001 00c7ed10
0x37fff874: 00c7ed10 00c7ed10 37fff8a8 6d7f98b4
0x37fff884: 37fff940 3699747c 36997468 36997488
Instructions: (pc=0x6d7f789e)
0x6d7f788e: 8b 54 24 04 8d 0c 91 8b 04 01 8b 40 0c 8b 40 14
0x6d7f789e: 8b 40 54 c1 e8 09 83 e0 01 c2 04 00 8b 4c 24 04
Stack: [0x37f00000,0x38000000), sp=0x37fff814, free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0xc789e]
V [jvm.dll+0xc9986]
V [jvm.dll+0xc98b4]
V [jvm.dll+0xca226]
V [jvm.dll+0xca059]
V [jvm.dll+0x82544]
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
j org.eclipse.core.internal.jobs.Worker.run()V+31
v ~StubRoutines::call_stub
V [jvm.dll+0x86e84]
V [jvm.dll+0xddead]
V [jvm.dll+0x86d55]
V [jvm.dll+0x86ab2]
V [jvm.dll+0xa16b2]
V [jvm.dll+0x10f4ac]
V [jvm.dll+0x10f47a]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb713]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/Writer;Ljava/util/Properties;ZZ)V+73
j com.sun.org.apache.xml.internal.serializer.ToStream.init(Ljava/io/OutputStream;Ljava/util/Properties;Z)V+55
j com.sun.org.apache.xml.internal.serializer.ToStream.setOutputStream(Ljava/io/OutputStream;)V+26
j com.sun.org.apache.xml.internal.serializer.ToUnknownStream.setOutputStream(Ljava/io/OutputStream;)V+5
j com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler()Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+172
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Ljavax/xml/transform/Result;)Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;+250
j com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V+46
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeDOMtoStream(Lorg/w3c/dom/Document;Ljava/io/OutputStream;)V+44
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/w3c/dom/Document;Ljava/util/zip/ZipOutputStream;)V+25
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/OutputStream;)V+342
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListWriter.writeTaskList(Lorg/eclipse/mylyn/tasks/core/TaskList;Ljava/io/File;)V+12
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.internalSaveTaskList()V+16
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager.access$0(Lorg/eclipse/mylyn/internal/tasks/ui/util/TaskListSaveManager;)V+1
j org.eclipse.mylyn.internal.tasks.ui.util.TaskListSaveManager$TaskListSaverJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+65
j org.eclipse.core.internal.jobs.Worker.run()V+31
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x36da44c0 JavaThread "Thread-7" [_thread_blocked, id=2840]
0x36b960f0 JavaThread "Timer-2" [_thread_blocked, id=2008]
0x36ca63a0 JavaThread "Timer-1" [_thread_blocked, id=3176]
0x36b92d20 JavaThread "Timer-0" [_thread_blocked, id=3832]
0x36bde590 JavaThread "Worker-6" [_thread_blocked, id=3968]
=>0x00c7ed10 JavaThread "Worker-5" [_thread_in_vm, id=1468]
0x369b7008 JavaThread "Worker-4" [_thread_blocked, id=1444]
0x352b7d88 JavaThread "Worker-3" [_thread_blocked, id=780]
0x36bd1008 JavaThread "Worker-2" [_thread_blocked, id=2124]
0x35748c78 JavaThread "Worker-1" [_thread_blocked, id=3588]
0x369438d8 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=844]
0x366b7fd0 JavaThread "Java indexing" daemon [_thread_blocked, id=2040]
0x355a7160 JavaThread "Worker-0" [_thread_blocked, id=1492]
0x3550b410 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=3956]
0x3556de40 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=3192]
0x00c629e0 JavaThread "State Data Manager" daemon [_thread_blocked, id=3188]
0x00c5dc88 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1728]
0x00c5c8e8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=340]
0x00c6b2a8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2116]
0x00c50ab8 JavaThread "Finalizer" daemon [_thread_blocked, id=3652]
0x00c4f650 JavaThread "Reference Handler" daemon [_thread_blocked, id=3144]
0x003edb60 JavaThread "main" [_thread_in_native, id=2316]
Other Threads:
0x003e5688 VMThread [id=3568]
0x00c5ef98 WatcherThread [id=3984]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4608K, used 2915K [0x02c90000, 0x03190000, 0x053f0000)
eden space 4096K, 58% used [0x02c90000, 0x02ee8c50, 0x03090000)
from space 512K, 100% used [0x03110000, 0x03190000, 0x03190000)
to space 512K, 0% used [0x03090000, 0x03090000, 0x03110000)
tenured generation total 60112K, used 42130K [0x053f0000, 0x08ea4000, 0x22c90000)
the space 60112K, 70% used [0x053f0000, 0x07d14a28, 0x07d14c00, 0x08ea4000)
compacting perm gen total 43008K, used 42780K [0x22c90000, 0x25690000, 0x32c90000)
the space 43008K, 99% used [0x22c90000, 0x25657298, 0x25657400, 0x25690000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040e000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\eclipse.exe
0x7c900000 - 0x7c9af000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x72000000 - 0x72012000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\apphelp.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x6d730000 - 0x6d8cb000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d700000 - 0x6d70c000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\java.dll
0x6d720000 - 0x6d72f000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\zip.dll
0x6d530000 - 0x6d543000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d550000 - 0x6d559000 D:\Program Files\Java\jdk1.5.0_09\jre\bin\nio.dll
0x35be0000 - 0x35c2f000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-win32-3349.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x78050000 - 0x78120000 C:\WINDOWS\system32\WININET.dll
0x35c40000 - 0x35c49000 C:\WINDOWS\system32\Normaliz.dll
0x78000000 - 0x78045000 C:\WINDOWS\system32\iertutil.dll
0x361a0000 - 0x361ba000 C:\WINDOWS\system32\hccutils.DLL
0x361c0000 - 0x361c8000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\36\1\.cp\os\win32\x86\localfile_1_0_0.dll
0x74c80000 - 0x74cac000 C:\WINDOWS\system32\oleacc.dll
0x76080000 - 0x760e5000 C:\WINDOWS\system32\MSVCP60.dll
0x36e80000 - 0x36e94000 E:\dev_tools\eclipse\eclipse-jee-europa-winter-win32\eclipse\configuration\org.eclipse.osgi\bundles\334\1\.cp\swt-gdip-win32-3349.dll
0x4ec50000 - 0x4edf6000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5581_x-ww_dfbc4fc4\gdiplus.dll
0x37170000 - 0x37435000 C:\WINDOWS\system32\xpsp2res.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x75cf0000 - 0x75d81000 C:\WINDOWS\System32\mlang.dll
0x379d0000 - 0x37a54000 D:\Program Files\TortoiseSVN\bin\tortoisesvn.dll
0x6eec0000 - 0x6eee2000 D:\Program Files\TortoiseSVN\bin\libapr_tsvn.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\MSWSOCK.dll
0x78130000 - 0x781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCR80.dll
0x6ee60000 - 0x6ee88000 D:\Program Files\TortoiseSVN\bin\libaprutil_tsvn.dll
0x6ee50000 - 0x6ee5d000 D:\Program Files\TortoiseSVN\bin\libapriconv_tsvn.dll
0x37a80000 - 0x37a8c000 D:\Program Files\TortoiseSVN\bin\intl3_svn.dll
0x7c420000 - 0x7c4a7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2\MSVCP80.dll
0x76780000 - 0x76789000 C:\WINDOWS\system32\SHFOLDER.dll
0x6ee40000 - 0x6ee46000 D:\Program Files\TortoiseSVN\iconv\_tbl_simple.so
0x6e900000 - 0x6e923000 D:\Program Files\TortoiseSVN\iconv\cp936.so
0x6ed50000 - 0x6ed56000 D:\Program Files\TortoiseSVN\iconv\utf-8.so
0x77a20000 - 0x77a74000 C:\WINDOWS\System32\cscui.dll
0x76600000 - 0x7661d000 C:\WINDOWS\System32\CSCDLL.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x76380000 - 0x76385000 C:\WINDOWS\system32\msimg32.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
VM Arguments:
jvm_args: -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -XX:MaxPermSize=256M
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=D:\Program Files\Java\jdk1.5.0_09
CLASSPATH=.;D:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;D:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip;E:\eclipse_ee\workspace\Thumper\postgresql-8.2-508.jdbc3.jar
PATH=D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin\client;D:\Program Files\Java\jdk1.5.0_09\bin\..\jre\bin;D:\Program Files\Java\jdk1.5.0_09\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Apache Software Foundation\Maven 1.1-beta-3\bin;D:\Program Files\Apache Software Foundation\apache-ant-1.7.0\bin;D:\Program Files\Python25;D:\cygwin;D:\Program Files\SecureCRT\;D:\Program Files\IDM Computer Solutions\UltraEdit-32;D:\Program Files\jython2.2.1;D:\Program Files\Tencent\QQ;D:\Program Files\net-snmp\usr\bin;D:\Program Files\Apache Software Foundation\apache-maven-2.0.9\bin;D:\Program Files\MySQL\MySQL Server 5.0\bin;E:\dev_tools\svn\svn-win32-1.4.3\bin;D:\Program Files\Tivoli\TSM\baclient;E:\open source project\android\android-sdk_m5-rc15_windows\tools;D:\cygwin\bin
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (cores per cpu 2, threads per core 1) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 2052648k(1391420k free), swap 3990772k(3260776k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b01) for windows-x86, built on Sep 7 2006 13:59:31 by "java_re" with MS VC++ 6.0Looking into the stack trace, this seems to be related to mylyn plugin. Try to remove it (remove it from the plugins dir and restart eclipse) and see if this is still happening
-
Hi are there some who can help i am trying to update my programs in app store
hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ???hi are there some who can help i am trying to update garageband ,iphoto and iMovie on my iMac, but it´s not my apple id it will use to the update, so i dont now the email and the password for the email used, and i cant change it to my apple id
my problem started after i updated to maverick
i hope there are someone who can help ??? -
HI THERE IS THERE ANYONE WHO CAN HELP ME?I UPGRADE MY IPHONE 3GS TO IOS5 AND NOW IT WONT ACTIVATE AND SAYS THE SIM CARD IS NOT SUPPORTED I CHANGE FOR ANEW SIM ALREADY BUT STILL WONT ACTIVATE.PLEASE HELP
you're responding to a post that's almost 2 months old. Time to post your own thread.
-
Hi anybody there who can help me ha..? My phone 5s was stolen 1 month ago..Find my phone is no a big deal bcz it seems to be wiped out all data including settings. it might be in use somewhere turning new fresh Gadget. How can i know whether my phone is in use??
You would know for a fact if the device is in use, but if you go back to the find my iPhone app in iCloud.com, you can either select to erase it, or place it in lost mode, in which case, once the device makes a connection to the internet, it will automatically go into that mode.
-
All dates in my emails (on all my 4 apple computers) are on May 5 , when older than 2 days. Is there anyone who can help me out of this very annoying problem please?
I saw simmilar questions from people in 2008 but no answers.
Thanks in advance.solved
-
i hope someone gets this who can help me. i don't find anything helpful in the help section of icloud. i'm using my 4th generation itouch for about 3 weeks with the ical. but today when i tried to edit an event or add an event a window would pop up and say "event can't be saved" or "no calendar chosen" or something like "this event doesn't belong with this calendar" and stuff like that.
can you please help me fix this?You could repartition your drive to have a different OS X with the older iTunes there, and the newer iTunes on the existing partition. Back up everything beforehand. See Kappy's advice in this thread. Partitioning my Hard Drive
-
A problem of aglet who can help me?
This is my program,but error throw when i run.
import com.ibm.aglet.*;
import java.net.*;
import com.ibm.aglet.system.Aglets;
public class simpleaglet{
AgletProxy proxy;
public static void main(String [] args){
System.out.println("test is start");
try{
AgletProxy proxy=Aglets.createAglet("atp://"+InetAddress.getLocalHost().getHostAddress()+":4434",null,"DisplayAglet",null);
catch(Exception e) {}
System.out.println("test is end");
the error information:
Exception in thread "main" java.lang.NoClassDefFoundError
at com.ibm.aglet.system.Aglets.createAglet(Unknown Source)
at simpleaglet.main(simpleaglet.java:17)
who can help me mail my email [email protected] youIf you are having trouble creating the aglets, you should make sure you're doing it correctly in the first place.
Make sure you open Thaiti and can create the aglet in there. Then once you have one aglet, that aglet should use it's AgletContext to create a new aglet. Don't use the static creator method. So you would use Tahiti to load "MyAgent", which would immediately spawn another aglet.
public class MyAgent extends Aglet {
public MyAgent() {
makeAgent(getAgletContext(),getCodeBase());
public void makeAgent(AgletContext context, URL codeBase) {
try {
context.createAglet(codeBase, "com.agents.BuyerAgent", null);
catch (Exception e) {
System.out.println("ERROR: Exception in makeAgent!");
e.printStackTrace();
} -
I have recently upgraded my MacBook to OSX Lion. Now I cannot get access to my windows-partition. I cannot choose booting from OSX Lion or Windows. Who can help???
I believe that Lion and Mountian Lion use BootCamp 4.0 and earlier versions used 3.0. I don't use BootCamp but from reading The link below you need to get new drivers, burn a cd and install. Check out #20 on this page.
http://support.apple.com/kb/HT4818#19 -
First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help! I am not a technical person, I just want to be able to use Photoshop Elements and get on with it. I bought Photoshop Elements via Amazon some months ago and it worked fine. I then got a message that advised that the trial version would expire, which it subsequently has (I have been trawling your site for weeks and weeks trying to find an email or phone contact to get some assistance). Relucltantly, I am now typing this - and I suspect it will not help in the slightest! I bought the FULL not TRIAL edition of Photoshop Elements and I have contacted Amazon who confirmed this, but say I need to contact you. Can you please let me know how I can resolve this? Louise A Fraser
Hi Louise, sorry to hear of your problems. This is not Adobe. We are mainly support volunteers, other users like you, trying to help one another. You need to contact Adobe directly for activation and licencing issues. Click the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
1. Adobe Photoshop Elements
2. Adobe ID, and signing-in
3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on. Don’t let them pass the buck. Stay connected and ask to speak with a supervisor if necessary.
Click here to get help now Contact Customer Care -
My Canon Pixma MP 540 does not scan any longer after update mountain lion. MP Navigator EX 2.0 starts and immediatley stops and comes with this message:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSImageCell loadingState]: unrecognized selector sent to instance 0x825c0f0'
Printer works normally. Who can help.
Thank you
PeterPan52Hi
Did you find a solution to this ? I amhaving same problem
Thanks -
Who can help me :)--a problem with java program(reset problem in java )
I do not know how to make the button reset,my program only could reset diagram but button.If any one who could help me to solve this problem.The problem is When the reset button is pressed, the image should immediately revert to the black square, and the 4 widgets listed above should show values that
correspond to the black square.The code like this,first one is shapes:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class shapes extends JFrame {
private JPanel buttonPanel; // panel for buttons
private DrawPanel myPanel; // panel for shapes
private JButton resetButton;
private JComboBox colorComboBox;
private JRadioButton circleButton, squareButton;
private ButtonGroup radioGroup;
private JCheckBox filledButton;
private JSlider sizeSlider;
private boolean isShow;
private int shape;
private boolean isFill=true;
private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
"green", "lightgray", "magenta", "orange",
"pink", "red", "white", "yellow"}; // color names list in ComboBox
private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
Color.gray, Color.green, Color.lightGray, Color.magenta,
Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
public shapes() {
super("Draw Shapes");
// creat custom drawing panel
myPanel = new DrawPanel(); // instantiate a DrawPanel object
myPanel.setBackground(Color.white);
// set up resetButton
// register an event handler for resetButton's ActionEvent
resetButton = new JButton ("reset");
resetButton.addActionListener(
// anonymous inner class to handle resetButton events
new ActionListener() {
// draw a black filled square shape after clicking resetButton
public void actionPerformed (ActionEvent event) {
// call DrawPanel method setShowStatus and pass an parameter
// to decide if show the shape
myPanel.setShowStatus(true);
isShow = myPanel.getShowStatus();
shape = DrawPanel.SQUARE;
// call DrawPanel method setShape to indicate shape to draw
myPanel.setShape(shape);
// call DrawPanel method setFill to indicate to draw a filled shape
myPanel.setFill(true);
// call DrawPanel method draw
myPanel.draw();
myPanel.setFill(true);
myPanel.setForeground(Color.black);
}// end anonymous inner class
);// end call to addActionListener
// set up colorComboBox
// register event handlers for colorComboBox's ItemEvent
colorComboBox = new JComboBox(colorNames);
colorComboBox.setMaximumRowCount(5);
colorComboBox.addItemListener(
// anonymous inner class to handle colorComboBox events
new ItemListener() {
// select shape's color
public void itemStateChanged(ItemEvent event) {
if(event.getStateChange() == ItemEvent.SELECTED)
// call DrawPanel method setForeground
// and pass an element value of colors array
myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
myPanel.draw();
}// end anonymous inner class
); // end call to addItemListener
// set up a pair of RadioButtons
// register an event handler for RadioButtons' ItemEvent
squareButton = new JRadioButton ("Square", true);
circleButton = new JRadioButton ("Circle", false);
radioGroup = new ButtonGroup();
radioGroup.add(squareButton);
radioGroup.add(circleButton);
squareButton.addItemListener(
// anonymous inner class to handle squareButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.SQUARE;
myPanel.setShape(shape);
myPanel.draw();
}// end anonymous inner class
);// end call to addItemListener
circleButton.addItemListener(
// anonymous inner class to handle circleButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
shape = DrawPanel.CIRCLE;
myPanel.setShape(shape);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up filledButton
// register an event handler for filledButton's ItemEvent
filledButton = new JCheckBox("Filled", true);
filledButton.addItemListener(
// anonymous inner class to handle filledButton events
new ItemListener() {
public void itemStateChanged (ItemEvent event) {
if (isShow==true) {
if (event.getStateChange() == ItemEvent.SELECTED) {
isFill=true;
myPanel.setFill(isFill);
myPanel.draw();
else {
isFill=false;
myPanel.setFill(isFill);
myPanel.draw();
else
System.out.println("Please click Reset button first");
}// end anonymous inner class
);// end call to addItemListener
// set up sizeSlider
// register an event handler for sizeSlider's ChangeEvent
sizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 300, 100);
sizeSlider.setMajorTickSpacing(10);
sizeSlider.setPaintTicks(true);
sizeSlider.addChangeListener(
// anonymous inner class to handle sizeSlider events
new ChangeListener() {
public void stateChanged(ChangeEvent event) {
myPanel.setShapeSize(sizeSlider.getValue());
myPanel.draw();
}// end anonymous inner class
);// end call to addChangeListener
// set up panel containing buttons
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
buttonPanel.add(resetButton);
buttonPanel.add(filledButton);
buttonPanel.add(colorComboBox);
JPanel radioButtonPanel = new JPanel();
radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
radioButtonPanel.add(squareButton);
radioButtonPanel.add(circleButton);
buttonPanel.add(radioButtonPanel);
// attach button panel & draw panel to content panel
Container container = getContentPane();
container.setLayout(new BorderLayout(10,10));
container.add(myPanel, BorderLayout.CENTER);
container.add(buttonPanel, BorderLayout.EAST);
container.add(sizeSlider, BorderLayout.SOUTH);
setSize(500, 400);
setVisible(true);
public static void main(String args[]) {
shapes application = new shapes();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}second one is drawpanel:
import java.awt.*;
import javax.swing.*;
public class DrawPanel extends JPanel {
public final static int CIRCLE = 1, SQUARE = 2;
private int shape;
private boolean fill;
private boolean showStatus;
private int shapeSize = 100;
private Color foreground;
// draw a specified shape
public void paintComponent (Graphics g){
super.paintComponent(g);
// find center
int x=(getSize().width-shapeSize)/2;
int y=(getSize().height-shapeSize)/2;
if (shape == CIRCLE) {
if (fill == true){
g.setColor(foreground);
g.fillOval(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawOval(x, y, shapeSize, shapeSize);
else if (shape == SQUARE){
if (fill == true){
g.setColor(foreground);
g.fillRect(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawRect(x, y, shapeSize, shapeSize);
// set showStatus value
public void setShowStatus (boolean s) {
showStatus = s;
// return showstatus value
public boolean getShowStatus () {
return showStatus;
// set fill value
public void setFill(boolean isFill) {
fill = isFill;
// set shape value
public void setShape(int shapeToDraw) {
shape = shapeToDraw;
// set shapeSize value
public void setShapeSize(int newShapeSize) {
shapeSize = newShapeSize;
// set foreground value
public void setForeground(Color newColor) {
foreground = newColor;
// repaint DrawPanel
public void draw (){
if(showStatus == true)
repaint();
}If any kind people who can help me.
many thanks to you!4 widgets???
maybe this is what you mean.
add this inside your actionPerformed method for the reset action
squareButton.setSelected(true);
colorComboBox.setSelectedIndex(0);
if not be more clear in your post. -
Who can help me with my ORDER?!
I had made an online order for my iphone 5s on 11/15 online. It showed that will be delivery by 11/19. I had recived the email with conformation # as quickly, but it always show "being processed, check it back tomorrow" in my order status. I have checked the local store, and they have the device in stock. So, I may want to cancel the order and get it in local store.
However, I called to the customer serving for all day. They always told me to transfer me to another department. The only time, they said it would not cancelled during the status was being processed and also do a transfer to another deparmenrt. but There is always being No Agents Avilable for each time!!
The chat live will not help you to do anything, except provide a phone number and let you call them.
Now, my status still not changing, and I have no idea to who i can communited with this issue.
Who can help me ?? How can I cancel it or to know anything about my order without only waste time for waiting and calling.>Post deleted to remove personal info<
MODERATOR COMMENT: This is a public peer to peer (customer to customer) Community.
Please call 800-922-0204 concerning your order
Sent via the Samsung Galaxy Note® II, an AT&T 4G LTE smartphone
Message was edited by: Verizon Moderator><
Maybe you are looking for
-
Shopping Cart - Process Controlled Workflow - replace standard task
Hallo, I am on SRM 7.0 SAPKIBKV09 using NWBC. I use Process Controlled Workflow for Shopping Cart, and in the process schema definition, I replaced the standard workflow task 40007952, (with name - SRM Shopping Cart Completion), with a copy of task 4
-
Vendor return excise invoice cancellation
Dear all, How to cancel vendor return excise invoice, which has been created using J1IS/J1IV T-code. When I try to cancel the excise invoice for vedor return in t- code J1IH, system is giving the below error Excise modvat accounts not defined for CEI
-
Please keep in mind that I do not have my mixer yet so I can not do the test of discovery for myself yet. Our new ( yet to arrive) FIELD MIXER (Azden FMX-42a) outputs 1khz tone @ +4dBu. What does that correspond to on the camera (Panasonic AF102) met
-
Logic v9.1.7: problems in renaming busses
has anyone a solution when busses cannot be renamed in Logic? After renaming them in the Label I/O area a restart brings back the old names. There is no file in Application support anymore that held this data, so I am stuck what to do here. Any serio
-
When I want to create a new project the view screen on the right is blank ? Since creating a new project, when almost done something happens