Java EE SDK :: Weblogic Not Displaying Apache Logs

Apr 16, 2013

I keep getting an error in my browser:

    java.lang.IllegalArgumentException: argument type mismatch
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)

[Code] .....

I see the file "myApache.log" got created but there's no info in it when i re-test the error, I have other existing appenders and categories in this same file which do give output so I know it has nothing to do with the file or the path itself.

View Replies


ADVERTISEMENT

Java EE SDK :: WebLogic - How To Get List Of Installed JCA Adapters From App

Aug 1, 2011

I would like to know how I can get the list of installed JCA adapters from my application which deployed onto WebLogic server. Is there any WebLogic api available for that?

View Replies View Related

Java Program Using Apache POI Giving Exceptions

May 13, 2015

I am having some serious difficulty getting my project off the ground. I have the following code:

FileInputStream file = new FileInputStream(new File("src/retestchecker/test_sheet.xlsx"));
//Get the workbook instance for XLS file
XSSFWorkbook workbook = new XSSFWorkbook(file);
//Get first sheet from the workbook
XSSFSheet sheet = workbook.getSheetAt(0);
Row row = sheet.getRow(0);
Cell x = row.getCell(3);
System.out.println(x);

Everything is properly imported, etc etc.. But I am getting this error and I am not sure what it means:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at retestchecker.RetestChecker.main(RetestChecker.java:23)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)

[Code] .....

Java Result: 1

I am using Netbeans and the latest version of Apache POI that was released May 11, 2015.

The line 23 that the error refers to is this line:

XSSFWorkbook workbook = new XSSFWorkbook(file);

View Replies View Related

Emailing Error Logs

Feb 2, 2014

I've been working on a lesson in logging in Java, formatting in XML. I'm trying to add an appender to e-mail the error log, but can't seem to get it to work. Is there a piece I'm missing? The rest of my appenders are working fine. The error I get is that it cannot create an appender of this type. The console also seems to think that I defined the appender after I call for it, but it is above. Here is what I put together:

<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender" >
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<SMTPHost>${smtpHost}</SMTPHost>

[code]....

View Replies View Related

Logger Logs Old Messages

Mar 4, 2014

I have the following code that comes directly from the book Core Java vol 1. The last two statements are mine but when I change the last statement's String the message being logged doesn't change. For that manner when I change the level of the last statement the file doesn't update to the correct log level. What am I doing wrong?

Java Code:

public class LogTester
{
public static void main(String[] args)
{
if (System.getProperty("java.util.logging.config.class") == null
&& System.getProperty("java.util.config.file") == null)

[code]....

Forgot to say the file also only logs the old message and level from a previous recompilation

View Replies View Related

Garbage Collection Logs In Application

Nov 26, 2013

In my applications garbage collection logs, I see below line.

2013-11-26T10:35:45.050-0500: 5195.298: [GC 5195.298: [DefNew: 17430K->456K(19136K), 0.0102408 secs] 796185K->779211K(2668480K), 0.0103687 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
2013-11-26T10:36:10.593-0500: 5220.840: [GC 5220.840: [DefNew: 17480K->398K(19136K), 0.0100548 secs] 796235K->779153K(2668480K), 0.0101835 secs]

The last line seems half cut. Does that indicate that there is memory leak in my application? I have not seen the app throwing the out of memory error.

View Replies View Related

I/O / Streams :: Parsing Logs Using Regular Expression

Dec 1, 2014

I am new to java coding. so, reading the log file using java code.

1) I wish to parse a file, and find a value for variable e.g. [StorageVersion].
2) After finding the value, it will be pushed to database.

Following is the code that i have written till now.

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.*;
import java.lang.*;
import java.util.*;
import java.util.regex.*;

[code]....

1) I don't know what regular expression can i use.
2) I want a line to check that preceding line should have //StorageVersion .
3) n then i will check any string between := K[' and '];. From above log file "'706146.0.22106932'" is the value that i am looking for.

View Replies View Related

Lost Session In Weblogic

Aug 20, 2014

I have two different web apps (let's name them A and B) running on Tomcat (v5). At some point, one of A's JSPs invokes one of B's through an iFrame that contains a form. Then, B does its bussiness and sends an answer to another one of A's JSPs, which now can continue doing its stuff.

As I said, this runs on Tomcat with zero problems.

But recently I tried to deploy both apps on Weblogic (v9.2) and found one big problem: just when B has sent the answer, A loses the session and has to stop.

What could be the cause to this?

View Replies View Related

JSP / JSTL :: Session Does Not Work - Previous Page Can Be Seen Even After User Logs Out

Feb 1, 2013

Previous page can be seen even after user logs out from the JSP page.

My code is:

Logout.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
<head>
<title>JSP Page</title>

[Code] ....

how to resolve this?

View Replies View Related

How To Install Apache POI

Jan 19, 2015

I'm trying to learn how to read from, and write to, Excel files. I'm looking at this link : [URL] ....

It seems like there are some Apache dependencies. So, I go here : [URL] .....

I downloaded the zipped file from the first link. Now what? I don't see any .exe file, or any way of installing it. How do I install it, or run it, or whatever? What is the next step here?

View Replies View Related

Cannot Find File Apache POI

Sep 2, 2014

I'm trying to read a .xlsx file using Apache Poi on Eclipse and store the data into an ArrayList.

My code :

import org.apache.poi.ss.usermodel.*;
import java.io.*;
import java.util.*; 
public class parseReadFiles
{
public static void main(String[] args) {

[Code] ....

I keep getting a FileNotFoundException: Users/Divjot/Desktop/first.xlsx (No such file or directory). I've tried different combinations of file names and paths but can't get the program to find it. Should the file be stored in a special place or should the class path be different?

View Replies View Related

Importing Apache Commons?

Feb 18, 2014

I've got this annoying error message when trying to import:

import org.apache.commons.codec.binary.Hex.encodeHex;

"Import org.apache.commons.codec cannot be resolved", which after searching seems to be a somewhat common problem. The solution being to go to: FileUpload - Home and download some jar file and add it to the /web-inf/lib folder. yet the error persists even after adding the jar file in "add external jar files" and restarting eclipse.

The jar file I added is called "commons-fileupload-1.3.1.jar" which is the only one I could find in the zip file. I've searched around looking at numerous threads about the issue, several of them sadly several years old, with no success.Surely installing a library to eclipse shouldn't be this complicated?

View Replies View Related

Apache POI Method Returning Wrong Value

May 20, 2014

I'm using apache POI to input data from a excel database. I have a method that is supposed to count the number of rows containing data so I can use that number to initialize an object array. It's returning one more than the actual number of rows and I can't figure out why.

public int getDataRange() throws IOException{
int rowCount = 0;
Iterator<Row> rows = sheet.rowIterator();
while(rows.hasNext()){
HSSFRow row = (HSSFRow) rows.next();
rowCount++;

[Code] .....

I get an array index out of bounds exception at the highlighted line.

View Replies View Related

JSP :: Apache Tomcat 6 - Data Not Retrieved

Feb 19, 2014

I am developing an dashboard application in Java, JSTL, MySql, Apache Tomcat 6.I have the below files

1. Dashboard.java (model)
2. DashboardDAO.java (dao)
3. DashboardController.java (Controller)
//Source
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
String forward = "";
forward = LIST_DASHBOARD;
HttpSession session = req.getSession(true);
session.setAttribute("dboard", dao.getAlldashboard(req));
setMasterInfo(req);
RequestDispatcher view = req.getRequestDispatcher(forward);
view.forward(req, res);

[code]....

It works in the first time. But, after sometime the data is not retrieved and display empty screen. Once, i stop and start the server again, the data is getting retrieved again. But, later when we refresh the empty page is getting displayed again.

View Replies View Related

EJB / EE :: Port Asynchronous Bean Support In App Servers Like Weblogic And Jboss

Dec 26, 2013

I need to port asynchronous bean (provided by websphere) support in App servers like weblogic and jboss. Is this feature already part of J2EE specification? Or should I use some other external package to get this feature?If so what are those async bean like features for weblogic and jboss?

View Replies View Related

EJB / EE :: Unable To Access Session Deployed In Weblogic Server From JBOSS

Jan 13, 2009

I am currently trying to access an EJB Session deployed in a Weblogic server from JBOSS.

The client code looks like this :

Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "weblogic.jndi.factories");
environment.put(Context.PROVIDER_URL, "t3://<ip>:<port>");
InitialContext context = new InitialContext(environment);
ServiceHome home = (ServiceHome)context.lookup("ejb/Service");

When I run this code from a standalone java program it executes ok, but when I try to run it from an application deployed in JBOSS, the line (5) which creates the InitialContext object throws this Exception :

java.lang.ThreadDeath
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:696)
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:742)

[Code]....

In order to be able to use weblogic naming factory I put the archive weblogic-8.1.6.0.jar in jboss's /server/default/lib directory. But I think it has to do with JNDI conflicts between JBOSS and weblogic.

View Replies View Related

Enterprise JavaBeans :: Deploy Sample Application To WebLogic Server

Jul 5, 2014

Deploy sample J2EE app to WebLogic server

A getting started app is fine, need to understand of deploying a sample application to WebLogic server. Any particular configuration during WLS install?

View Replies View Related

Enterprise JavaBeans :: No Connection Left In WebLogic Database Pool

Jun 19, 2014

We have a J2EE business web application that runs in WebLogic. We noticed in application log files errors messages that seems like  "No resource available in db pool", it means all the connection objects (to Oracle database) are used. Then the application is unstable and unseable.

I think the maximum number of  connections configured in Weblogic pool has been reached due to an increase of users and activity. But when the workload decreases the application is still out of service. It seems connections objects are not relased to the pool. What can be the explanation for this issue ? Normally it is managed by the container (EJB3 for the business tier).

Once the limit of the pool is reached it is necessary to restart the server to solve this kind of error ?

View Replies View Related

Enterprise JavaBeans :: Weblogic JNDI Lookup Fails Via Spring

Feb 24, 2014

There is a weblogic server running at remote place and i need to access the API's in that remote method using JNDI lookup. My application is configured in Spring Tool Suite IDE with java 6 and tomcat 7 and I have used Spring to perform the jndi lookup of weblogic server. In spring i have used simpleremotestatelesssessionproxyfactorybean class to lookup a weblogic server using jndi and get the remote object. But somehow on doing it i'm getting the following error.
 
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)
       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.sendWithoutLock(Unknown Source)
       at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendFragment(Unknown Source)

[Code] ....

The exception is been thrown at com.sun.corba.se.impl.encoding.CDROutputObject method when calling writeTo(). Why I'm getting this error and can I do anything to remediate it. Irrespective of java this error occurs, i tried with java 5, 6 and 7 but still getting the same error.

View Replies View Related

Importing External Libraries Such As Apache Commons?

Dec 10, 2014

I'm currently using TextPad or command prompt to compile and run my programs, and as usual I am not having any luck importing external libraries, in particular apache commons.

I couldn't see any particularly obvious settings in TextPad to set a library or class path (which is annoying as I really like the program), so I jumped back to cmd prompt to run it from there. Aaaaaand i don't understand .

This is my file structure at present:

/mainProject //includes .java and .class files, and where I've successfully placed .jar files before.

The apache commons zip file was extracted here, making:

/mainProject/commons-lang3/apidocs/orgs/apache/commons/<folders> //the commons-lang3 folder contains the jars I'm navigating to the /mainProject folder in cmd prompt and typing (amongst many other things) javac -cp /mainProject/commons-lang3 MonsterGame.java //with the -cp being pointed at the folder the .jar is in i've tried pointing it at the root folder where the import statement begins in the code (ie mainProject/commons-lang3/apidocs), tried moving the .jar files to the mainProject folder (pointing -cp at it) and more. No luck.

it seems everytime i try to import a new library something goes wrong..... its become a bit of a stumbling block to be honest. I seem to spend most of my time dealing with the 'administrative' side of coding (that was the politest way i could put it ), am I not doing it right?

I've read I'm supposed to include the .jar in the classpath, not just the directory. is this correct? (it still doesn't work...!)

View Replies View Related

Excel To Html Conversion Using Apache Poi Library

Mar 17, 2012

i am getting the following errors.

Exception in thread "main" java.lang.NullPointerException

at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at ToHtml.printStyles(ToHtml.java:215)
at ToHtml.printInlineStyle(ToHtml.java:199)

[code]...

View Replies View Related

Apache Poi To Create Excel File From JTable

Sep 17, 2014

I'm using Apache Poi to create an Excel file from a JTable.

I want to open the file directly in Excel, rather than first write it to disk and then open it from the disk.

FileOutputStream output = new FileOutputStream( StolleExcel.xls" );
workBook.write( output );
Desktop dt = Desktop.getDesktop();
dt.open( new File( "StolleExcel.xls" ) );

output.close();

Is there a temporary way of saving the Excel object then just opening it with Excel, so the user can save or edit whatever they want?

View Replies View Related

Java GUI Displaying Image Icon

Dec 2, 2014

how to display a jpg image on a through a Jlabel. I am sure it is a simple error but I am still new to GUI's. line 31 to 35 you can see the ImageIcon and file wrapped in the JLabel. I verified its in the correct location and file name, but usually fails (i thought) when it is not correct.

Java Code:

import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

[code]....

View Replies View Related

Swing/AWT/SWT :: Java Browser Not Displaying Google

Jul 28, 2014

my web browser isn't displaying any web page. When I create the method editorPane.setPage(), it takes forever (about 20 seconds) to show nothing. It'll load the web browser after the 20 seconds of waiting. Here is my code:

public class Browser extends JInternalFrame {

/**
*
*/
private static final long serialVersionUID = 4589041456161585394L;
public Browser() {
super("Browser", true, true);
this.setLayout(new BorderLayout());
this.setVisible(true);
this.setSize(Desktop.getSingletonInstance().getWidth(), Desktop.getSingletonInstance().getHeight());

[code]....

View Replies View Related

Java Block Breaking Game - GUI Is Not Displaying

Dec 7, 2014

I get no errors but the gui is not displaying

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package part1;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import javax.swing.*;
class brick {

[Code] ....

View Replies View Related

Java Applet - Displaying Output With Text?

Feb 24, 2014

my java applet - displaying output with text

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved