<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Custom element error logs</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8529571" />
  <subtitle>Custom element error logs</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8529571</id>
  <updated>2013-06-19T21:38:32Z</updated>
  <dc:date>2013-06-19T21:38:32Z</dc:date>
  <entry>
    <title>RE: New Message from Asher Schweigart in Customer Voice Portal (CVP) - Gene</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533461" />
    <author>
      <name>Asher Schweigart</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533461</id>
    <updated>2012-11-13T19:39:18Z</updated>
    <published>2012-11-13T19:37:08Z</published>
    <summary type="html">Yeah, I looked into it more, and what happended was just a stupid mistake on my part. 
I was unfamiliar with how java compiled classes.
I had my ant build file set to auto copy the class file into call studio, and when I started adding subclasses to the main class, I did not realize that the subclasses would be in seperate files. 
I figured that since they were part of the main class, they would be in the same class file. Oops.</summary>
    <dc:creator>Asher Schweigart</dc:creator>
    <dc:date>2012-11-13T19:37:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Asher Schweigart in Customer Voice Portal (CVP) - Gene</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534368" />
    <author>
      <name>Hemal Mehta</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8534368</id>
    <updated>2012-11-13T19:31:48Z</updated>
    <published>2012-11-13T19:31:48Z</published>
    <summary type="html">I have seen cases where it does not show with class and works with jar.  Good it worked for you.
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, November 13, 2012 1:17 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Asher Schweigart in Customer Voice Portal (CVP) - General Discussion - All Versions: RE: Custom element error logs

Asher Schweigart has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Thank you both, both ways showed the info I needed. Error was caused because it could not find my custom classes, which I wrote as subclasses of the element class.
I was using the compiled class file, i switched to using a jar, and that fixed it. Seems I need to work on my ant build file to get this working right!
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/8533271 or simply reply to this email.</summary>
    <dc:creator>Hemal Mehta</dc:creator>
    <dc:date>2012-11-13T19:31:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Custom element error logs</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533271" />
    <author>
      <name>Asher Schweigart</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8533271</id>
    <updated>2012-11-13T19:17:05Z</updated>
    <published>2012-11-13T19:17:05Z</published>
    <summary type="html">Thank you both, both ways showed the info I needed. Error was caused because it could not find my custom classes, which I wrote as subclasses of the element class. 
I was using the compiled class file, i switched to using a jar, and that fixed it. Seems I need to work on my ant build file to get this working right!</summary>
    <dc:creator>Asher Schweigart</dc:creator>
    <dc:date>2012-11-13T19:17:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: Custom element error logs</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8532743" />
    <author>
      <name>Janine Graves</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8532743</id>
    <updated>2012-11-13T18:38:08Z</updated>
    <published>2012-11-13T18:38:08Z</published>
    <summary type="html">Asher, If the element doesn't show up in studio, you should be able to go to Window &gt; Show View &gt; Call Studio Error Log.
 </summary>
    <dc:creator>Janine Graves</dc:creator>
    <dc:date>2012-11-13T18:38:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Asher Schweigart in Customer Voice Portal (CVP) - Gene</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8530772" />
    <author>
      <name>Hemal Mehta</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8530772</id>
    <updated>2012-11-13T17:47:48Z</updated>
    <published>2012-11-13T17:47:48Z</published>
    <summary type="html">Are you adding this as a class file or bundling it a jar and then adding it  ?
Do one thing, call this code from action element within studio and see what if it give you an error.
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, November 13, 2012 11:33 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Asher Schweigart in Customer Voice Portal (CVP) - General Discussion - All Versions: Custom element error logs

Asher Schweigart has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- I have a custom element that I can't get to load in call studio. I have found the issue in the element, it is a single line fo code that it must not like, because when I comment it out the element loads fine.
Is there a place I can look to see what error is causing the element not to load? I checked workspace/.metadata/.log, but I'm not seeing anything in there, and I don't know where else to look.

Here is the offending code in case anyone can help on that end:
    URL url = new URL(&lt;http://someXmlFile.xml);

    URLConnection conn = url.openConnection();
    conn.setRequestProperty("Authorization", "Basic "+cred);
    conn.connect();
    InputStream sn = conn.getInputStream();

    SaxTicketReader ticketReader = new SaxTicketReader();
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
        SAXParser parser = factory.newSAXParser();
        parser.parse(new InputSource(sn), ticketReader);  &lt;------- this is the line that is causing the issue.
    } catch....


This code works fine when I test it outside of call studio.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/8529570 or simply reply to this email.</summary>
    <dc:creator>Hemal Mehta</dc:creator>
    <dc:date>2012-11-13T17:47:48Z</dc:date>
  </entry>
  <entry>
    <title>Custom element error logs</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8529570" />
    <author>
      <name>Asher Schweigart</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8529570</id>
    <updated>2012-11-13T17:33:17Z</updated>
    <published>2012-11-13T17:00:50Z</published>
    <summary type="html">[color=#525252]I have a custom element that I can't get to load in call studio. I have found the issue in the element, it is a single line fo code that it must not like, because when I comment it out the element loads fine. [/color]
[color=#525252]Is there a place I can look to see what error is causing the element not to load? I checked workspace/.metadata/.log, but I'm not seeing anything in there, and I don't know where else to look.[/color]
[color=#525252] [/color]
[color=#525252]Here is the offending code in case anyone can help on that end:[/color]
[color=#525252]    URL url = new URL(&lt;http://someXmlFile.xml);[/color]
[color=#525252] [/color]
[color=#525252]    URLConnection conn = url.openConnection();[/color]
[color=#525252]    conn.setRequestProperty("Authorization", "Basic "+cred);[/color]
[color=#525252]    conn.connect();[/color]
[color=#525252]    InputStream sn = conn.getInputStream();[/color]
[color=#525252] [/color]
[color=#525252]    SaxTicketReader ticketReader = new SaxTicketReader();[/color]
[color=#525252]    SAXParserFactory factory = SAXParserFactory.newInstance();[/color]
[color=#525252]    try {[/color]
[color=#525252]        SAXParser parser = factory.newSAXParser();[/color]
[color=#525252]        parser.parse(new InputSource(sn), ticketReader);  &lt;------- this is the line that is causing the issue.[/color]
[color=#525252]    } catch....[/color]
[color=#525252] [/color]
[color=#525252] [/color]
[color=#525252]This code works fine when I test it outside of call studio.[/color]</summary>
    <dc:creator>Asher Schweigart</dc:creator>
    <dc:date>2012-11-13T17:00:50Z</dc:date>
  </entry>
</feed>

