J Slater

Greenhorn
+ Follow
since Jun 26, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by J Slater

Hi,

I have a very simple deployment on wildfly both 8.2 and 10.1. My file has a header like:



and so on. During the startup, I see the default jsf 2.2 library get loaded:

[javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 58) Initializing Mojarra 2.2.13.SP1 20160303-1204 for context


Once I try to load the page, I get this:

Caused by: org.xml.sax.SAXException: JBWEB004081: No tag "head" defined in tag library associated with uri "http://java.sun.com/jsf/html"
at org.apache.jasper.compiler.JspDocumentParser.parseCustomAction(JspDocumentParser.java:1189)
at org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:431)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)


Any ideas?

Thank you!
7 years ago
Can anyone share insight into performance questions with log4j? Specifically, I have code with various levels of logging running under jboss5. Lots of info, debug, and trace.

If I set a category limit to TRACE like this:

<category name="com.mydomain">
<priority value="TRACE"/>
</category>

But under my appender I have this threshold:

<param name="Threshold" value="DEBUG"/>

Will I still have the performance hit of my TRACE statements going through the logger routines but just not being printed? In other words, would it be less load if I set my category to DEBUG like:

<category name="com.mydomain">
<priority value="DEBUG"/>
</category>


The downside of this is that if I ask my customer to enable TRACE, they would have to change it in two places. But if it's a big performance hit, then we'll consider it.

Thank you!
The getname and setname are just standard getter/setter. Name is a java String.

public void setName(String name) {
this.name = name;
}

Does that ignore an empty string behind the scenes?

The only reason we created a new object instead of setting the name on the existing object was just for testing. When I debug in eclipse right when it throws the NPE, both name values show a value, but are the empty string. They were not null in eclipse.

That's what is so strange. All values have a value in eclipse, yet it throws an NPE.

Any other ideas why? We can use a space to work-around this, but really curious why a NPE comes.

Thank you all for your help!
11 years ago
I have the below code in a comparator and it throws an NPE at the return line when it does the comparison. The idea in the preceding lines was to put a blank character string in the name parameter if it's null. But it throws an NPE.

If instead a setName(" ") with a space instead of double quotes, it does not NPE.

Can anyone share why this is? This same logic worked fine elsewhere in my code when it's just Object->getString(). In this case it's Object->getObject->getString() and does not work.

Thanks!
Jim


11 years ago
Hi,

I have used several versions of eclipse and wtp, and all have the same behavior. We set up a jsf page and link it to the bean with faces-config. Everything works fine until we try to do code-complete on the bean methods (e.g. value="#{ hit ctrl-space)

It finds the bean very quickly, but when we hit ctrl-space after the . after we populate the bean, eclipse takes up 100% cpu for at least 10-15 seconds before showing the results. It always happens. It's like it won't cache the results or something.

Does anyone have a clue of what to check? The beans have many variables but not really that big.

Thoughts?

Thanks!