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 { 

               Hashtable<String, CIPushClass> allCustomers = new
Hashtable<String, CIPushClass>();

               ArrayList<String> pushCustomerFilter = new
ArrayList<String>();

               ArrayList<CIPushClass> pushCustomers = new
ArrayList<CIPushClass>();

               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 < 700000"      

                                              + " 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));

 
customer.setCustname(rsMako.getString(3));

 
customer.setAddress1(rsMako.getString(4));

 
customer.setAddress2(rsMako.getString(5));

 
customer.setAddressx(rsMako.getString(6));

                               customer.setCity(rsMako.getString(7));

                               customer.setState(rsMako.getString(8));

                               customer.setZipcode(rsMako.getString(9));

                               customer.setRegnnum(rsMako.getInt(10));

                               customer.setTerrnum(rsMako.getInt(11));

                               customer.setSrepnum(rsMako.getInt(12));

 
customer.setForcedesc(rsMako.getString(13));

 
customer.setRegdesc(rsMako.getString(14));

 
customer.setTerrname(rsMako.getString(15));

 
customer.setSrepname(rsMako.getString(16));

                               allCustomers.put(customer.getCustnum() +
"-" + customer.getShipnum(), customer);

                       }

                       while (rsRock.next()) {

 
pushCustomerFilter.add(rsRock.getString(1));

                       }

                       psMako.close();

                       rsMako.close();

                       psRock.close();

                       rsRock.close();

               } catch (SQLException e) {

                       e.printStackTrace();

               }

               for (String key: pushCustomerFilter) {

                       _log.info("***Adding customers to push");

                       customer = allCustomers.get(key);

                       pushCustomers.add(customer);

                       _log.info("Customer" +
allCustomers.get(key).toString());

               }

               _log.info("***Attempting to push " + pushCustomers.size()
+ " customers");

               for (CIPushClass pushCustomer : pushCustomers) {

                       try {

                               URL wsdlURL = new
URL("http://cmf000276.leibus.strykercorp.com:8080/CIPushEPService/CIPush
EP?wsdl");

                               QName SERVICE_NAME = new
QName("http://cipushep.cmf.stryker.com/"; , "CIPushEPService");

                               Service service = Service.create(wsdlURL,
SERVICE_NAME);

                              CIPushEP client =
service.getPort(CIPushEP.class);

                               client.pushReceive("blah", pushCustomer);

                       } 

                       catch (MalformedURLException e) 

                       { 

                               //TODO stack trace

                               e.printStackTrace();      

                       } 

               }

 

               _log.info("***Customer Push Complete, pushed " + result +
" accounts.");

               ConnectionFactoryWrapper.close(connMako);

               ConnectionFactoryWrapper.close(connRock);

        }

 

}

 

 

 

Tony Mattas

IS Intern

 

Stryker Craniomaxillofacial

750 Trade Centre Way

Suite 200

Portage, MI 49002

 

p: 269.324.5346 x 4306

e: [EMAIL PROTECTED]

MySharepoint
<http://mysharepoint.stryker.com/Person.aspx?accountname=LEIBINGER%5FUS%
5Ctony%2Emattas> 

 

Reply via email to