java,performance,jsf,componentsRelated issues-Collection of common programming errors
BrainStone
debian java error ram
I am currently having some issues running Java. It won’t start because of heap issues. But I have more than 9 GB Ram free (or even 16 GB if you assumed the cache would be empty). This is the error I get (and the free command)root@server: ~ # java Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.root@server: ~ # freetotal used free sha
Nicolas Marchildon
java xml-parsing
I need to seek into a huge XML file, start reading XML data from a byte position, basically reading a chunk. I’m creating an XMLStreamReader like this:final XMLInputFactory factory = XMLInputFactory.newInstance(); reader = factory.createXMLStreamReader(inputStream);This reader can start reading at any position in the stream, but I want it to skip stuff until it finds the start of a tag. I do not want it to validate anything.For example, it could start reading this, in the middle of firstAttr:rst
Ripon Al Wasim
java xml hadoop xmldocument
Getting Fatal Error while running bin/hadoop namenode -formatUsing Windows 7 operating system, Under C:\cygwin\usr\local\hadoop-0.20.203.0\conf edited hadoop-env.sh file,#export JAVA_HOME=C:/Program Files/Java/jdk1.6.0_24 export JAVA_HOME=C:/jdk1.6.0_24.I have my Java class path set to C:/jdk1.6.0_24.Fatal Error] hdfs-site.xml:5:2: The markup in the document followingthe root element must be well-formed.enter code here$ bin/hadoop namenode -format 12/02/24 07:15:38 INFO namenode.NameNode: STARTU
Metropolis
java ssl java-7 webmethod java-6
Updated my application from Java6 to Java7 and I am getting the below exception for SSL,pool-2-thread-1, RECV TLSv1 ALERT: fatal, unexpected_message pool-2-thread-1, called closeSocket() pool-2-thread-1, handling exception: javax.net.ssl.SSLException: Received fatal alert: unexpected_message pool-2-thread-1, called close()But I am getting this error continuously. I am able to see some success also. What is causing this?
user3313192
java android json android-asynctask nullpointerexception
I’m getting a FATAL EXCEPTION with a NullPointerException in line 275 of mainActivity ( Log.d(“Create Response”, json.toString());) I have referenced the object before as JSONObject json = new JSONObject(); and I’m still getting null pointer. My log cat and java code is below. Log cat :02-19 08:56:34.101: E/AndroidRuntime(1913): FATAL EXCEPTION: AsyncTask #1 02-19 08:56:34.101: E/AndroidRuntime(1913): Process: com.example.newjudoapp, PID: 1913 02-19 08:56:34.101: E/AndroidRuntime(1913): java.
William Brun
java android exception
I am working on a simple android project but have encountered a dreaded FATAL EXCEPTION, and don’t really have the know-how to determine if I am doing something off limits in the world of Android…I have this code:private OnClickListener butonList_start = new OnClickListener(){public void onClick(View v){Toast.makeText(getBaseContext(), “Good Luck.”, Toast.LENGTH_LONG).show();otherBtn_1.setOnClickListener(otherListener_1);otherBtn_2.setOnClickListener(otherListener_2);aTextView.setTextSize(30);
Apple Grinder
java xml
I have an XML file which I want to parse(below). I used an example on mykong to learn – http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/comment-page-2/#comment-125087 But I got an error “[Fatal Error] flight.xml:3:15: Open quote is expected for attribute “{1}” associated with an element type “id”.”<?xml version=”1.0″ encoding=”utf-8″?> <root xmlns:android=”www.google.com”> <passenger id=001> <name>Tom Cruise</name> </passenger> <passen
codeMagic
java android android-intent
I am trying to make the Endurance button on the Exercise List Page launch Endurance list. The Warmups button works fine. But, the endurance button makes the app crash when clicked. Here is the Exercise List Java:package com.example.chopbuilderfordrums;import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button;public class ExerciseList extends Activity implements View.OnClickListener {Button button1;Button button
Mohammad Hassany
java mysql
I have developed a GUI java application. It has login page for user authentication. It use mysql as back-end. I have wrapped my application using Jar2Exe 1.0 (Regexlab.com) to a 32bit windows .exe file.not the problem is that when i run the application :the database connection is OK; the login windows is OK.When I click on submit button to login into application, most of time, it works and the application continue to work. But sometimes, the application exit without any message and generate a er
Peter Mortensen
windows java
I have been trying to log into a work presentation for three days. The site keeps prompting me to download Java 7u6, but when I follow the prompts it comes up with an error message reading:Installation Failed: The wizard was interrupted before Java 7 Update 6 could be completely installed. To complete installation at another time, please run setup again.I have uninstalled Java so many times, but it keeps showing up Java 7u4 in the program list – it won’t go away even though I have uninstalled it
Diogo
windows-7 performance prefetch
I found some information about the /prefetch:1 argument on some applications, such as Microsoft Word and Excel. You add this argument to a shortcut that points to these apps.If I add that to the shortcuts for some non-Microsoft programs, will I get the same benefits (like startup optimization generated by prefetches)? Can Windows interpret this option for any shortcut?
Robolisk
performance alienware
I’ve purchased an Alienware m14x laptop but I am experiencing performance issues – It’s slow. Quite slow actually. My other laptop that has a Celeron CPU is going faster than this and that computer is running Windows XP and while the new one is running Windows 7 Home. I’m not sure if it’s just me or the laptop? The specification is as follows;Intel Core i7 -2630m, 6GB RAM, 750GB 7200 rpm, Nvidia 555mThere aren’t a load of programs starting up at boot, but there are some and they are small pro
jpic
linux performance postgresql kernel shmmax
I’ve used the documentation from PostgreSQL to set it for example this config:>>> cat /proc/meminfo MemTotal: 16345480 kB MemFree: 1770128 kB Buffers: 382184 kB Cached: 10432632 kB SwapCached: 0 kB Active: 9228324 kB Inactive: 4621264 kB Active(anon): 7019996 kB Inactive(anon): 548528 kB Active(file): 2208328 kB Inactive(file): 4072736 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 k
mathieu
performance website optimization traffic
Suppose you have this fancy new site, with lots of data (like big images), and you’re about to put it online. If you do “too much” publicity, during the first days, the site will be overwhelmed with requests.How can I mitigate this risk ?I’ve thought ofgoing live gradually, like SO and SF : “private” beta, public beta, public allow X connections sessions concurrently, so the connected user still have good experience of the site, and the others have a nice apology messageI can’t :buy more servers
Phil.Wheeler
performance employment job-definition
As part of a review of all job descriptions, my company has decided to include the following as a key output:website development completed ontime, within specification and errorfreeGiven that specifications regularly change, there is no formal change control process and environments are, shall we say, a little unpredictable, how realistic and reasonable is this KPI?
espero
6 database performance
For a few weeks now, I’ve been getting an error when saving certain changes. This error, in Chrome, is Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.After I click the save button, the page seems to load for a while (10 seconds or more), then directs to that Chrome error page. But, if I reload the page manually, the changes I’ve added have actually been saved. I’ve noticed this happening when: adding a new content type, adding a new field, saving c
kiamlaluno
performance
What causes the following message on a Drupal 6 site with no other information?Site off-lineThe site is currently not available due to technical problems. Please try again later. Thank you for your understanding.If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider’s database server is running. For more help, see the handbook, or contact your hosting provider.I think it means that the database did not respond in
mvp
performance postgresql memory
I’ve been fortunate enough to have the use of a 20GB Linode instance running Ubuntu 64 bit. I want to try to optimize PostGres for this service, but I don’t know what I should prioritize changing.I have several datasets of 20,000 or so rows and the calculations that are being performed are memory intensive queries (spatial analyses) with a small number of rows being written after each request. The total number of users is very small (10 – 50).I’ve read through this article on the Postgresql site
lillq
postgresql performance postgresql-9.1
I am having an issue where my postgres database which run on a dedicated machine is getting hammered with kernal level cpu usage. This essentially takes down the web service that run on this database.This is a dual 6 core machine with 128 GB of ram.max_connections = 609 shared_buffers = 23923MB work_mem = 78MB maintenance_work_mem = 4784MB wal_buffers = 16MB checkpoint_segments = 10 effective_cache_size = 71769MBI have hit a wall in debugging this issue trying to correlate this with any cron ta
lorgartzor
postgresql performance optimization
We’ve been experiencing some issues with our database server during peak hours. In our Nginx error-log we can see that a lot of requests get timed out. The requests are also very slow. We have had this issue for a couple of weeks. At first we got problems like FATAL: remaining connection slots are reserved for non-replication superuser connectionsBut after optimising the code by using memcached to let of some of the load from postgres as well as making som smarter queries, we got rid of this pro
Catfish
java jsf tomcat
When I start tomcat in my IDE with this specific project in there (adminapp), it just keeps restarting and restarting. here is my stack trace. if I walk away from my computer, I would see this hundreds of times.What would cause an app to keep doing this?Nov 11, 2011 3:25:36 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\
maple_shaft
jsf coldfusion glassfish
I want to invoke a jsf file(*.xhtml) from a coldfusion application. The application server is glassfish. I made the follwing my web.xml<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”> <web-app id=”adobe_coldfusion”><display-name>Adobe ColdFusion 9</display-name><description>Adobe ColdFusion 9</description><context-param id=”coldfusion_c
Volker
jsf jsf-2 seam icefaces
UpdateI’m currently over at the ICEfaces forums to get my problem solved – sadly, none of the provided options led to a solution now, but they indeed gave me some more insight into the whole JSF topic (credits go to BalusC for that, as often :-)).I will try to keep this thread up to date and post an answer if the problem is finally solved to help others which may encounter it.My findings so far are:Disabling the Seam Multipart Filter is required because it prevents the fileEntry-component from w
user2967758
jsf tomcat cdi omnifaces weld
running on: Apache Tomcat 7.0.47 OmniFaces 1.6.3 JSF Mojarra 2.1.26 CDI Weld 2.1.0.FinalThrere is an RuntimeException on Apache Tomcat 7.0.47 by accessing JNDI “java:comp/BeanManager”. The CDI BenManager is bound to “java:comp/env/BeanManager” vut not reached in your BeanManager Class./*** Perform automatic initialization whereby the bean manager is looked up from the JNDI. If the bean manager is* found, then invoke {@link #init(Object)} with the found bean manager.*/private void init() {if (!in
Felipe Reis
jsf jboss7.x cdi activiti wildfly
I have a webapp which deploys a simple Activiti process,some JSF pages and CDI Beans.Everything works on JBOSS AS 7.1.1 + JSF 2.1.7. However I need to use JSF 2.2, so I tried to configure it on AS 7, but I stumbled on some errors described in this jboss forum post. Bottomline: AS 7 and JSF 2.2 do not work together very well. So I tried to get my app up and running with Wildfly.The startup went on without any relevant errors or warnings. However, upon navigating to a specific jsf page I got an ul
COD3BOY
java jsf
Ive been trying to debug this for hours but I was unable to get why it’s happening. I have an assumption that the map returned is null? not sure really. Here is the code:FormBean Managed Bean:package core.smd.classes;import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import java.util.Date; import org.joda.time.DateTime; import java.util.List;import java.util.ArrayList;@ManagedBean @SessionScoped public class FormBean {/** Creates a new instance of FormBean */int counter=
ikrambo
java spring hibernate jsf spring-mvc
I´m trying to configure spring + hibernate + jsf in my web application with a glassfish 4.0 server. I use Hibernate in the persistence layer, spring for the business layer and jsf for the web layer. I have configured the hibernate and jsf layers properly. But while I´m trying to configure the spring layer, it doesn´t work.For configuring the database, I have use MySQL Workbench, and I have connected the hibernate layer with the database properly, all the POJOS are properly created.But now Im t
Natalia Zoń
jsf primefaces nullpointerexception requestcontext
I’m developing an app using Primefaces tag library.So far I’ve copied some examples from their official website and all seems to work except for anything that uses the RequestContext.getCurrentInstance() method. It either returns null every time, causing Tomcat to throw a NullPointer exception or hangs forever, never returning anything.Here’s my code (the case where it hangs):GlobalCounterBean.javapackage org.primefaces.examples.view;import java.io.Serializable; import org.primefaces.context.Req
Nazar Sobchuk
java spring hibernate jsf dependency-injection
I have a Facelets/ JSF Managed Beans/ Hibernate application. Right now I am trying to implement DI into my beans via annotations. I have 2 of them: LoginBean, RegistrationBean (each responsible for the appropriate page). The problem is that whenever I try to autowire the property inside the RegistrationBean, i end up with NPE. But if I place the same class fields into LoginBean – they are autowired with no problem! Below are my ManagedBeans, applicationContext.xml (db settings are ok, so I won’t
Tapas Bose
java jsf file-upload jsf-1.2 swfupload
I have seen that we can upload multiple files by flash file upload. Like SWFUpload or YUI Uploader. Is it possible to integrate these upload component with JSF?What I want is to choose multiple file at once. Primefaces file uploader has this feature, but that don’t work in IE7 as IE7 don’t have any support for HTML5. I need to create a Form with various fields, like dropdown menu, text input etc and also need to add a file uploader for choosing multiple file. When the JSF submit button will be c
Senthil
joomla components upgrade
My client set auto-upgrade for a component “Smart form golder’ component. After the auto upgrade, Akeeba components stop working.It throws fatal error in administrator component page – Fatal error: Access level to AkeebasubsToolbar::renderSubmenu() must be public (as in class FOFToolbar) in /public_html/administrator/components/com_akeebasubs/toolbar.php on line 358But the front end working fine, when I checked with Akeeba support forum, they said that it requires upgrade. I customize the compon
Quintin Robinson
android components
I am trying to draw custom shapes in my Android application. I used this http://bestsiteinthemultiverse.com/2008/11/android-graphics-example/ example and I can get it working with my application if the only thing that I have is this component. However, I need to use custom shapes AND 2 TextViews and 2 Buttons. Whenever I try to create this component within my application with Buttons and TextViews the App fails.<?xml version=”1.0″ encoding=”utf-8″?> <ScrollView xmlns:android=”http://sch
Diego
c# ssis components
I am trying to add some more native error handling to an SSIS C# Script Component (in Data-Flow). Right now I force it to crash the component with 1/0 which works but is hackish.My script does some jazz on input data, but I would like to validate it at several steps and fail the component if any validations fail. The source is a select, so i don’t need to roll back any transactions etc… but I would like the component to fail the dataflow so the dataflow component will fail and follow the er
us2012
monotouch mono components xamarin .net-assembly
I am trying to build a xamarin component. I have a created a SomeLibrary.dll from a Binding project. Using this SomeLibrary.dll and the Component Template(https://components.xamarin.com/guidelines ), I have generated a SomeLibrary-1.0.xam component.I executed this command to install the SomeLibrary component onto Xamarin Studio(so I can test the component before submitting it to the store):mono xamarin-component.exe install /Users/somedeveloper/Desktop/XamarinComponent/component-template-master/
Robert Harvey
components soa code-reuse
A couple of years ago the media was rife with all sorts of articles on how the idea of code reuse was a simple way to improve productivity and code quality.From the blogs and sites I check on a regular basis it seems as though the idea of “code reuse” has gone out of fashion. Perhaps the ‘code reuse’ advocates have all joined the SOA crowd instead? :-)Interestingly enough, when you search for ‘code reuse’ in Google the second result is titled:”Internal Code Reuse Considered Dangerous”!To me the
Frank van Puffelen
components tridion updates multimedia
I am trying to update the metadata on the multimedia image in C# using Tridion’s TOM.NET API like thiscomponentMM.LoadXML(localComponent.GetXML(XMLReadFilter.XMLReadALL));// make changes to the component mm multimedia text;localComponent.UpdateXML(componentMM.InnerXML);localComponent.Save(True)While this works for other components, it is failing for Multimedia images. <?xml version=”1.0″?> <tcm:Error xmlns:tcm=”http://www.tridion.com/ContentManager/5.0″ ErrorCode=”80040345″ Category=”19
joorva
session object components tapestry
During my battle with tapestry 5 I created some setup which does not work, and I don’t know why. I found few work-arounds, but still I would like to know why initial idea failed.I have parent abstract page class with application-wide auth procedure:public abstract class AuthPage {@SessionStateprotected UserAuth user;public Object onActivate(){if(user==null)return LoginForm.class;else if(user.getLoggedIn().equals(Boolean.FALSE))return LoginForm.class;elsereturn null;} }Then I have index page clas
SeeNoWeevil
deployment components software-design
A common goal of software design seems to be to structure an application so that changes impact a minimal amount of components (i.e compiled assemblies) which can then be published individually. Dependency Inversion Principle is applied so stable components don’t depend on volatile ones, classes are packaged in a way again to limit a deployment to a minimal set of components. So my question is, what is wrong with publishing an entire application in its entirety for each change? Especially if a p
lkessler
delphi replace components
In a Delphi Form, I would like to replace one visual component with another. Example: I want to replace a Panel component with an ElPanel from a 3rd party package. I would like all identical properties and events of the first component to be transferred to the new one, and all the components that belong to the first component (e.g. Toolbars, memos,status bars, etc.) to end up placed on the new component exactly where they were on the first one.Is there a best/easiest way to do this other than ad
bouvard
mvc model view controller components
Question number three in my quest to properly understand MVC before I implement it:I have two cases in mind:The primary application window needs to launch the preferences window. (One View invoking another View.) The primary Model for an application needs to access a property in the preferences Model. (One Model accessing another Model.)These questions are related in that they both involve communication across Model-View-Controller triplets, a topic that I haven’t found much discussion of in my
Web site is in building