We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › OSCP5 import lib makes error!!
Page Index Toggle Pages: 1
OSCP5 import lib makes error!! (Read 460 times)
OSCP5 import lib makes error!!
May 24th, 2008, 8:11pm
 
hai
i have coded a simple patch in processing.org

it runs correctly.

if i write:
"import oscP5;"
this exception is thown:

[error]
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1444)
at processing.app.Sketch.build(Sketch.java:1601)
at processing.app.Sketch.handleRun(Sketch.java:1319)
at processing.app.Editor.handleRun(Editor.java:1109)
at processing.app.Editor$15.actionPerformed(Editor.java:553)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.ja
va:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
at javax.swing.AbstractButton.doClick(AbstractButton.java:269)
at javax.swing.plaf.basic.BasicMenuItemUI$ClickAction.actionPerformed(BasicMenuItem
UI.java:1073)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1535)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2470)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:658)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:666)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:666)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:642)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:253)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:240)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2547)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2539)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2433)
at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1637)
at java.awt.Component.processEvent(Component.java:4975)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManage
r.java:627)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusMan
ager.java:831)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusMan
ager.java:741)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.j
ava:592)
at java.awt.Component.dispatchEventImpl(Component.java:3572)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
34)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
[/error]

why???

i don't understand.. with other more simpler patches oscP5 runs correctly..
Re: OSCP5 import lib makes error!!
Reply #1 - May 25th, 2008, 4:38am
 
yep, sometimes its the little things, try

Code:

import oscP5.*;
Re: OSCP5 import lib makes error!!
Reply #2 - May 26th, 2008, 5:31pm
 
ok!

thanks a lot sojamo
Page Index Toggle Pages: 1