Re: Stacktrace, Why?

2007-10-11 Thread Glen Mazza
In addition, it can help to reduce your source code to the most minimum
that replicates the error.  Less for the reader to wade through / easier
to spot errors that way.

Glen

Am Dienstag, den 09.10.2007, 09:41 -0400 schrieb Daniel Kulp:
 That stack trace points to you using the the Sun reference implementation 
 of JAX-WS thats built into JDK 6.   You aren't hitting CXF code at all.
 
 The classes:
 com.sun.xml.internal.ws.* 
 are the JAX-WS stuff in JDK 6.
 
 Double check that CXF is properly on the classpath.
 
 
 Dan
 
 
 
 On Tuesday 09 October 2007, Mattas, Tony wrote:
  Can someone give me a clue as to why I'm getting this stack trace, I
  don't reference a class by that name ever.
 
 




Stacktrace, Why?

2007-10-09 Thread Mattas, Tony
Can someone give me a clue as to why I'm getting this stack trace, I
don't reference a class by that name ever.

 

 

class: com.stryker.cmf.cipushep.jaxws.PushReceive could not be found

at
com.sun.xml.internal.ws.modeler.RuntimeModeler.getClass(RuntimeModeler.j
ava:271)

at
com.sun.xml.internal.ws.modeler.RuntimeModeler.processDocWrappedMethod(R
untimeModeler.java:562)

at
com.sun.xml.internal.ws.modeler.RuntimeModeler.processMethod(RuntimeMode
ler.java:509)

at
com.sun.xml.internal.ws.modeler.RuntimeModeler.processClass(RuntimeModel
er.java:355)

at
com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(Runtime
Modeler.java:251)

at
com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(
ServiceContextBuilder.java:119)

at
com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceCont
ext(ServiceContextBuilder.java:87)

at
com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(W
SServiceDelegate.java:136)

at
com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBasePro
xy(WSServiceDelegate.java:288)

at
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelega
te.java:184)

at javax.xml.ws.Service.getPort(Service.java:120)

at
com.stryker.cmf.cipush.CIPushBean.execute(CIPushBean.java:100)

at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java
:529)

 

 

 

package com.stryker.cmf.cipush;

import java.net.MalformedURLException;

import java.net.URL;

import java.sql.Connection;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.sql.SQLException;

import java.util.ArrayList;

import java.util.Hashtable;

import java.util.logging.Logger;

 

import javax.xml.namespace.QName;

import javax.xml.ws.Service;

 

import org.quartz.Job;

import org.quartz.JobExecutionContext;

import org.quartz.JobExecutionException;

 

import com.stryker.cmf.cipushep.CIPushEP;

import com.stryker.leibinger.db.ConnectionFactoryWrapper;

 

public class CIPushBean implements Job {

 

Logger _log = Logger.getLogger(CIPush);

private Connection connMako, connRock;

 

public void execute(JobExecutionContext context) throws
JobExecutionException { 

   HashtableString, CIPushClass allCustomers = new
HashtableString, CIPushClass();

   ArrayListString pushCustomerFilter = new
ArrayListString();

   ArrayListCIPushClass pushCustomers = new
ArrayListCIPushClass();

   CIPushClass customer;

   String queryMako, queryRock;

   PreparedStatement psMako, psRock;

   ResultSet rsMako, rsRock;

   int result = 0;

   _log.info(***Starting CIPush Job);

   connMako =
ConnectionFactoryWrapper.getConnection(mako);

   connRock =
ConnectionFactoryWrapper.getConnection(sqlServer);

   queryMako = SELECT c.custnum, c.shipnum, c.custname,
c.address1, c.address2, c.addressx,

  +  c.city, c.state,
c.zipcode, c.regnnum, c.terrnum, c.srepnum, f.forcedesc, 

  +  r.regndesc,
t.terrname, t.srepname

  +  FROM sislib.macmt100
c

  +  JOIN sislib.sfcrt100 f
ON c.compnum = f.compnum AND c.regnnum = f.regnnum

  +  JOIN sislib.margt100 r
ON c.compnum = r.compnum AND c.divnnum = r.divnnum

  +  AND c.regnnum =
r.regnnum 

  +  JOIN sislib.matrt100 t
ON c.compnum = t.compnum AND c.divnnum = t.divnnum

  +  AND c.regnnum =
t.regnnum AND c.terrnum = t.terrnum AND c.srepnum = t.srepnum

  +  WHERE c.compnum = 18
AND c.divnnum = c.compnum AND c.active = '1'

  +  AND c.regnnum NOT IN
(0, 96, 97, 99) AND c.custnum  70  

  +  ORDER BY c.regnnum,
c.custnum, c.shipnum;

   queryRock = SELECT * FROM ciPush;

   try {

   _log.info(***Fetching Database information);

   psMako = connMako.prepareStatement(queryMako);

   psRock = connRock.prepareStatement(queryRock);

   rsMako = psMako.executeQuery();

   rsRock = psRock.executeQuery();

   while (rsMako.next()) {

   customer = new CIPushClass();

   customer.setCustnum(rsMako.getInt(1));

   customer.setShipnum(rsMako.getInt(2));

 

Re: Stacktrace, Why?

2007-10-09 Thread Daniel Kulp

That stack trace points to you using the the Sun reference implementation 
of JAX-WS thats built into JDK 6.   You aren't hitting CXF code at all.

The classes:
com.sun.xml.internal.ws.* 
are the JAX-WS stuff in JDK 6.

Double check that CXF is properly on the classpath.


Dan



On Tuesday 09 October 2007, Mattas, Tony wrote:
 Can someone give me a clue as to why I'm getting this stack trace, I
 don't reference a class by that name ever.





 class: com.stryker.cmf.cipushep.jaxws.PushReceive could not be found

 at
 com.sun.xml.internal.ws.modeler.RuntimeModeler.getClass(RuntimeModeler
.j ava:271)

 at
 com.sun.xml.internal.ws.modeler.RuntimeModeler.processDocWrappedMethod
(R untimeModeler.java:562)

 at
 com.sun.xml.internal.ws.modeler.RuntimeModeler.processMethod(RuntimeMo
de ler.java:509)

 at
 com.sun.xml.internal.ws.modeler.RuntimeModeler.processClass(RuntimeMod
el er.java:355)

 at
 com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(Runti
me Modeler.java:251)

 at
 com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotation
s( ServiceContextBuilder.java:119)

 at
 com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceCo
nt ext(ServiceContextBuilder.java:87)

 at
 com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext
(W SServiceDelegate.java:136)

 at
 com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseP
ro xy(WSServiceDelegate.java:288)

 at
 com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDele
ga te.java:184)

 at javax.xml.ws.Service.getPort(Service.java:120)

 at
 com.stryker.cmf.cipush.CIPushBean.execute(CIPushBean.java:100)

 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

 at
 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.ja
va

 :529)

 package com.stryker.cmf.cipush;

 import java.net.MalformedURLException;

 import java.net.URL;

 import java.sql.Connection;

 import java.sql.PreparedStatement;

 import java.sql.ResultSet;

 import java.sql.SQLException;

 import java.util.ArrayList;

 import java.util.Hashtable;

 import java.util.logging.Logger;



 import javax.xml.namespace.QName;

 import javax.xml.ws.Service;



 import org.quartz.Job;

 import org.quartz.JobExecutionContext;

 import org.quartz.JobExecutionException;



 import com.stryker.cmf.cipushep.CIPushEP;

 import com.stryker.leibinger.db.ConnectionFactoryWrapper;



 public class CIPushBean implements Job {



 Logger _log = Logger.getLogger(CIPush);

 private Connection connMako, connRock;



 public void execute(JobExecutionContext context) throws
 JobExecutionException {

HashtableString, CIPushClass allCustomers = new
 HashtableString, CIPushClass();

ArrayListString pushCustomerFilter = new
 ArrayListString();

ArrayListCIPushClass pushCustomers = new
 ArrayListCIPushClass();

CIPushClass customer;

String queryMako, queryRock;

PreparedStatement psMako, psRock;

ResultSet rsMako, rsRock;

int result = 0;

_log.info(***Starting CIPush Job);

connMako =
 ConnectionFactoryWrapper.getConnection(mako);

connRock =
 ConnectionFactoryWrapper.getConnection(sqlServer);

queryMako = SELECT c.custnum, c.shipnum, c.custname,
 c.address1, c.address2, c.addressx,

   +  c.city, c.state,
 c.zipcode, c.regnnum, c.terrnum, c.srepnum, f.forcedesc,

   +  r.regndesc,
 t.terrname, t.srepname

   +  FROM sislib.macmt100
 c

   +  JOIN sislib.sfcrt100
 f ON c.compnum = f.compnum AND c.regnnum = f.regnnum

   +  JOIN sislib.margt100
 r ON c.compnum = r.compnum AND c.divnnum = r.divnnum

   +  AND c.regnnum =
 r.regnnum

   +  JOIN sislib.matrt100
 t ON c.compnum = t.compnum AND c.divnnum = t.divnnum

   +  AND c.regnnum =
 t.regnnum AND c.terrnum = t.terrnum AND c.srepnum = t.srepnum

   +  WHERE c.compnum = 18
 AND c.divnnum = c.compnum AND c.active = '1'

   +  AND c.regnnum NOT IN
 (0, 96, 97, 99) AND c.custnum  70

   +  ORDER BY c.regnnum,
 c.custnum, c.shipnum;

queryRock = SELECT * FROM ciPush;

try {

_log.info(***Fetching Database information);

psMako = connMako.prepareStatement(queryMako);

psRock =