[Performance Tuning] - jboss profiler 1 (CR4) - not getting any results
by brettcave
I have set up jboss-profiler on JbossAS 4.2.2 (compiled my own libjbossAgent.so and libjbossInspector.so using the provided compile.sh scripts) on Centos. JVM startup params have been updated.
"-XrunjbossInspector:/tmp/profiler/runtime,include=com.mycompany,ignore=* -agentlib:jbossAgent"
Start up jboss, go to the mbean via jmx-console and activate profiling. Log files appear in /tmp/profiler/runtime (serverspy files). Access my application - which is extremely slow - a few minutes to load up sometimes. The log files grow. I then go to the mbean and stop the profiler collection.
Go to /jboss-profiler web application, click on runtime profiler link, select the pid and leave all options selected, click submit. See all log files being processed, but on the next screen, i dont get any results :(
seems to be doing everything except getting the results, am I doing anything wrong? How can i verify what is / isnt working?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250344#4250344
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250344
16 years, 10 months
[Beginners Corner] - JBoss Portal Crash after deploying portlet
by BobBuilder
I am using jboss-portal-2.7.2 and have created an new Portal (i am very new to jboss!)
Everything worked fine until i deployed the email-portlet. After i got it working in the portal i confiured it for an mail-server. the next thing that happened was that the portlet didnt work anymore. after i restarted the portal the portal itself didnt work anymore.
after login it shows this error message
exception
|
| javax.servlet.ServletException: java.lang.NullPointerException
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
as solution i tried the following:
- undeploy the email-portlet
- deleting folders under jboss-portal-2.7.2\server\default except conf, deploy and lib
but the error message still appears. anyone an idea how i can solve such a problem?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250341#4250341
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250341
16 years, 10 months
[JBoss jBPM] - Re: Confusing regarding unit test
by npirard
I tried the your code, got the same result and got confused a bit
but then I tried :
| ProcessInstance processInstance = executionService.startProcessInstanceByKey("task_types"/*, variables*/);
| Execution execution = processInstance.findActiveExecutionIn("state1");
| assertNotNull(execution);
| String executionId = execution.getId();
| executionService.signalExecutionById(executionId);
| Set<String> activities = processInstance.findActiveActivityNames();
| System.out.println(activities.toString());
|
| //reload
| processInstance = executionService.findProcessInstanceById(executionId);
| activities = processInstance.findActiveActivityNames();
| System.out.println(activities.toString());
|
and here the log :
| 12:03:26,545 FIN | [ProcessDefinitionImpl] creating new execution for process 'task_types'
| 12:03:26,561 FIN | [DefaultIdGenerator] generated execution id task_types.226
| 12:03:26,561 FIN | [ExecuteActivity] executing activity(start1)
| 12:03:26,561 FIN | [ExecuteActivity] executing activity(state1)
| 12:03:26,576 FIN | [Signal] signalling activity(state1), signalName=null
| 12:03:26,592 FIN | [ExecuteActivity] executing activity(java1)
| JavaClass.printMessage() - Hallo !!
| 12:03:26,592 FIN | [ExecuteActivity] executing activity(task1)
| [state1]
| [task1]
|
it looks like the ProcessInstance object has to be reloaded by our means
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250338#4250338
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250338
16 years, 10 months
[JBoss Portal] - adding the upload file option in Identity portal
by rashmi_ceru1
Hi All ,
I am using jboss AS 4.2+portal 2.7 . i am want to add the upload file option in the registration page . i am using the identity portal for registration page . i have added the bellow code . but when submit the form , form is not getting submited . if i use in the form tag
enctype="multipart/form-data .
in the portlet . xml i am using javax.portlet.faces.GenericFacesPortlet class .
can any one please help me on this . thanks in advance .
This is the code i have added .
I have configured the extension filter in the web.xml
<!-- Extensions Filter -->
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</init-param>
<!--
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
Set the path where the intermediary files will be
stored.
</init-param>
-->
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.xhtml</url-pattern>
</filter-mapping>
form is properly encoded and add the t:inputFileUpload
<h:form enctype="multipart/form-data" id="myForm" name="myForm">
<t:inputFileUpload
id="myUploadedFile"
storage="file" accept="image/*"
styleClass="myStyle"
value="#{myBackingBean.myUploadedFile}"/>
</h:form>
UploadedFile instance variable and setter/getter to backing bean
import org.apache.myfaces.custom.fileupload.UploadedFile;
public class MyBackingBean {
private UploadedFile myUploadedFile;
public UploadedFile getMyUploadedFile() {
return myUploadedFile;
}
public void setMyUploadedFile(UploadedFile myUploadedFile) {
this.myUploadedFile = myUploadedFile;
}
}
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250332#4250332
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250332
16 years, 10 months